Class Config
java.lang.Object
org.spongepowered.asm.mixin.transformer.Config
public class Config
extends java.lang.Object
Handle for marshalling mixin configs outside of the transformer package
-
Constructor Summary
Constructors Constructor Description Config(org.spongepowered.asm.mixin.transformer.MixinConfig config) -
Method Summary
Modifier and Type Method Description static Configcreate(java.lang.String configFile)Factory method, create a config from the specified config resourcestatic Configcreate(java.lang.String configFile, MixinEnvironment outer)Deprecated.booleanequals(java.lang.Object obj)IMixinConfiggetConfig()Get API-level config viewMixinEnvironmentgetEnvironment()Get environment for the configjava.lang.StringgetName()ConfiggetParent()Get the the config's parentinthashCode()booleanisVisited()Get whether config has been visitedjava.lang.StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
Config
public Config(org.spongepowered.asm.mixin.transformer.MixinConfig config)
-
-
Method Details
-
getName
public java.lang.String 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
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
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
Factory method, create a config from the specified config resource- Parameters:
configFile- config resource- Returns:
- new config or null if invalid config version
-