Class Config
java.lang.Object
org.spongepowered.asm.mixin.transformer.Config
Handle for marshalling mixin configs outside of the transformer package
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Configcreate(String configFile, IMixinConfigSource source) Factory method, create a config from the specified config resourcestatic Configcreate(String configFile, MixinEnvironment outer) Deprecated.static Configcreate(String configFile, MixinEnvironment outer, IMixinConfigSource source) Deprecated.booleanGet API-level config viewGet environment for the configgetName()Get the the config's parentinthashCode()booleanGet whether config has been visitedtoString()
-
Constructor Details
-
Config
public Config(org.spongepowered.asm.mixin.transformer.MixinConfig config)
-
-
Method Details
-
getName
-
isVisited
public boolean isVisited()Get whether config has been visited -
getConfig
Get API-level config view -
getEnvironment
Get environment for the config -
getParent
Get the the config's parent -
toString
-
equals
-
hashCode
public int hashCode() -
create
Deprecated.Factory method, create a config from the specified config file and fail over to the specified environment if no selector is present in the config- Parameters:
configFile- config resourceouter- failover environment- Returns:
- new config or null if invalid config version
-
create
@Deprecated public static Config create(String configFile, MixinEnvironment outer, IMixinConfigSource source) Deprecated.Factory method, create a config from the specified config file and fail over to the specified environment if no selector is present in the config- Parameters:
configFile- config resourceouter- failover environmentsource- config source- Returns:
- new config or null if invalid config version
-
create
Factory method, create a config from the specified config resource- Parameters:
configFile- config resourcesource- config source- Returns:
- new config or null if invalid config version
-