Class AccessWidenerModifier

    • Constructor Detail

      • AccessWidenerModifier

        public AccessWidenerModifier​(java.util.Set<java.io.File> wideners)
    • Method Detail

      • key

        public java.lang.String key()
        Description copied from interface: ArtifactModifier
        A short (1-3 character) identifier for this type of artifact transformation.
        Specified by:
        key in interface ArtifactModifier
        Returns:
        the type identifier
      • stateKey

        public java.lang.String stateKey()
        Description copied from interface: ArtifactModifier
        A key indicating the current state of this artifact's inputs.

        This value should be cached if it is expensive to calculate.

        Specified by:
        stateKey in interface ArtifactModifier
        Returns:
        a key capturing this transformation's inputs
      • providePopulator

        public java.util.concurrent.CompletableFuture<ArtifactModifier.TransformerProvider> providePopulator​(MinecraftResolver.Context context)
        Description copied from interface: ArtifactModifier
        Create a new populator for performing transformations.

        This will always be called from the thread where resolution is initiated.

        The populator returned must remain valid until it is closed.

        Specified by:
        providePopulator in interface ArtifactModifier
        Parameters:
        context - the context available when preparing a populator, safe to use asynchronously
        Returns:
        a future providing the populator
      • requiresLocalStorage

        public boolean requiresLocalStorage()
        Description copied from interface: ArtifactModifier
        Indicates that the result of this modification should be stored in the project-local storage, rather than global storage.
        Specified by:
        requiresLocalStorage in interface ArtifactModifier
        Returns:
        whether local storage is required