Interface IMixinConfig
public interface IMixinConfig
Interface for loaded mixin configurations
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_PRIORITYDefault priority for mixin configs and mixins -
Method Summary
Modifier and Type Method Description MixinEnvironmentgetEnvironment()Get the parent environment of this configjava.lang.StringgetMixinPackage()Get the package containing all mixin classesjava.lang.StringgetName()Get the name of the file from which this configuration object was initialisedIMixinConfigPlugingetPlugin()Get the companion plugin, if availableintgetPriority()Get the priorityjava.util.Set<java.lang.String>getTargets()Get targets for this configurationbooleanisRequired()True if this mixin is required (failure to apply a defined mixin is an error condition).
-
Field Details
-
DEFAULT_PRIORITY
static final int DEFAULT_PRIORITYDefault priority for mixin configs and mixins- See Also:
- Constant Field Values
-
-
Method Details
-
getEnvironment
MixinEnvironment getEnvironment()Get the parent environment of this config- Returns:
- the parent environment
-
getName
java.lang.String getName()Get the name of the file from which this configuration object was initialised- Returns:
- the config filename (resource name)
-
getMixinPackage
java.lang.String getMixinPackage()Get the package containing all mixin classes- Returns:
- the base package name for this config
-
getPriority
int getPriority()Get the priority- Returns:
- the priority
-
getPlugin
IMixinConfigPlugin getPlugin()Get the companion plugin, if available- Returns:
- the companion plugin instance or null if no plugin
-
isRequired
boolean isRequired()True if this mixin is required (failure to apply a defined mixin is an error condition).- Returns:
- true if this config is marked as required
-
getTargets
java.util.Set<java.lang.String> getTargets()Get targets for this configuration- Returns:
- target classes of mixins in this config
-