Record Class PackConfig
java.lang.Object
java.lang.Record
kr.toxicity.model.api.config.PackConfig
- Record Components:
generateModernModel- generate modern modelgenerateLegacyModel- generate legacy modeluseObfuscation- use obfuscation
public record PackConfig(boolean generateModernModel, boolean generateLegacyModel, boolean useObfuscation)
extends Record
Pack config
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPackConfig(boolean generateModernModel, boolean generateLegacyModel, boolean useObfuscation) Creates an instance of aPackConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static @NotNull PackConfigCreates config from YAMLbooleanReturns the value of thegenerateLegacyModelrecord component.booleanReturns the value of thegenerateModernModelrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theuseObfuscationrecord component.
-
Field Details
-
DEFAULT
Default config
-
-
Constructor Details
-
PackConfig
public PackConfig(boolean generateModernModel, boolean generateLegacyModel, boolean useObfuscation) Creates an instance of aPackConfigrecord class.- Parameters:
generateModernModel- the value for thegenerateModernModelrecord componentgenerateLegacyModel- the value for thegenerateLegacyModelrecord componentuseObfuscation- the value for theuseObfuscationrecord component
-
-
Method Details
-
from
Creates config from YAML- Parameters:
predicate- predicate- Returns:
- config
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
generateModernModel
public boolean generateModernModel()Returns the value of thegenerateModernModelrecord component.- Returns:
- the value of the
generateModernModelrecord component
-
generateLegacyModel
public boolean generateLegacyModel()Returns the value of thegenerateLegacyModelrecord component.- Returns:
- the value of the
generateLegacyModelrecord component
-
useObfuscation
public boolean useObfuscation()Returns the value of theuseObfuscationrecord component.- Returns:
- the value of the
useObfuscationrecord component
-