Package kr.toxicity.model.api.pack
Record Class PackConfig
java.lang.Object
java.lang.Record
kr.toxicity.model.api.pack.PackConfig
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPackConfig(boolean generateModernModel, boolean generateLegacyModel) Creates an instance of aPackConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static @NotNull PackConfigfrom(@NotNull org.bukkit.configuration.ConfigurationSection section) booleanReturns 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.
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
PackConfig
public PackConfig(boolean generateModernModel, boolean generateLegacyModel) Creates an instance of aPackConfigrecord class.- Parameters:
generateModernModel- the value for thegenerateModernModelrecord componentgenerateLegacyModel- the value for thegenerateLegacyModelrecord component
-
-
Method Details
-
from
@NotNull public static @NotNull PackConfig from(@NotNull @NotNull org.bukkit.configuration.ConfigurationSection section) -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
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
-