Class AccessWidenerModifier
- java.lang.Object
-
- org.spongepowered.gradle.vanilla.internal.repository.modifier.AccessWidenerModifier
-
- All Implemented Interfaces:
ArtifactModifier
public final class AccessWidenerModifier extends java.lang.Object implements ArtifactModifier
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.spongepowered.gradle.vanilla.internal.repository.modifier.ArtifactModifier
ArtifactModifier.TransformerProvider
-
-
Field Summary
-
Fields inherited from interface org.spongepowered.gradle.vanilla.internal.repository.modifier.ArtifactModifier
ENTRY_SEPARATOR, KEY_VALUE_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description AccessWidenerModifier(java.util.Set<java.io.File> wideners)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringkey()A short (1-3 character) identifier for this type of artifact transformation.java.util.concurrent.CompletableFuture<ArtifactModifier.TransformerProvider>providePopulator(MinecraftResolver.Context context)Create a new populator for performing transformations.booleanrequiresLocalStorage()Indicates that the result of this modification should be stored in the project-local storage, rather than global storage.java.lang.StringstateKey()A key indicating the current state of this artifact's inputs.
-
-
-
Method Detail
-
key
public java.lang.String key()
Description copied from interface:ArtifactModifierA short (1-3 character) identifier for this type of artifact transformation.- Specified by:
keyin interfaceArtifactModifier- Returns:
- the type identifier
-
stateKey
public java.lang.String stateKey()
Description copied from interface:ArtifactModifierA key indicating the current state of this artifact's inputs.This value should be cached if it is expensive to calculate.
- Specified by:
stateKeyin interfaceArtifactModifier- Returns:
- a key capturing this transformation's inputs
-
providePopulator
public java.util.concurrent.CompletableFuture<ArtifactModifier.TransformerProvider> providePopulator(MinecraftResolver.Context context)
Description copied from interface:ArtifactModifierCreate 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:
providePopulatorin interfaceArtifactModifier- 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:ArtifactModifierIndicates that the result of this modification should be stored in the project-local storage, rather than global storage.- Specified by:
requiresLocalStoragein interfaceArtifactModifier- Returns:
- whether local storage is required
-
-