Record Class PackConfig
java.lang.Object
java.lang.Record
kr.toxicity.model.api.config.PackConfig
- Record Components:
useObfuscation- use obfuscation
Pack config
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPackConfig(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 YAMLfinal 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 useObfuscation) Creates an instance of aPackConfigrecord class.- Parameters:
useObfuscation- 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. -
useObfuscation
public boolean useObfuscation()Returns the value of theuseObfuscationrecord component.- Returns:
- the value of the
useObfuscationrecord component
-