Record Class ConfigDescription
java.lang.Object
java.lang.Record
johnsmith.configoverhauled.api.data.ConfigDescription
- Record Components:
modId- The target namespace or mod identifier.category- The top-level classification category containing the target group.group- The structural grouping containing the target property.property- The exact registry or resource name of the target property.
public record ConfigDescription(String modId, String category, String group, String property)
extends Record
Defines the precise hierarchical coordinates required to locate, bind, or dynamically construct a configuration property.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ConfigDescription> Standard codec for network transmission and disk serialization of property coordinates. -
Constructor Summary
ConstructorsConstructorDescriptionConfigDescription(String modId, String category, String group, String property) Creates an instance of aConfigDescriptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns the value of thecategoryrecord component.final booleanIndicates whether some other object is "equal to" this one.group()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.modId()Returns the value of themodIdrecord component.property()Returns the value of thepropertyrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
Standard codec for network transmission and disk serialization of property coordinates.
-
-
Constructor Details
-
Method Details
-
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 withObjects::equals(Object,Object). -
modId
Returns the value of themodIdrecord component.- Returns:
- the value of the
modIdrecord component
-
category
Returns the value of thecategoryrecord component.- Returns:
- the value of the
categoryrecord component
-
group
Returns the value of thegrouprecord component.- Returns:
- the value of the
grouprecord component
-
property
Returns the value of thepropertyrecord component.- Returns:
- the value of the
propertyrecord component
-