Record Class CheckExtensibleEnums.ExtensionData
java.lang.Object
java.lang.Record
net.neoforged.neoforge.network.configuration.CheckExtensibleEnums.ExtensionData
- Enclosing class:
CheckExtensibleEnums
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theentriesrecord component.static final StreamCodec<io.netty.buffer.ByteBuf, CheckExtensibleEnums.ExtensionData> private final intThe field for thetotalCountrecord component.private final intThe field for thevanillaCountrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionExtensionData(int vanillaCount, int totalCount, List<String> entries) Creates an instance of aExtensionDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionentries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalCountrecord component.intReturns the value of thevanillaCountrecord component.
-
Field Details
-
vanillaCount
private final int vanillaCountThe field for thevanillaCountrecord component. -
totalCount
private final int totalCountThe field for thetotalCountrecord component. -
entries
The field for theentriesrecord component. -
STREAM_CODEC
public static final StreamCodec<io.netty.buffer.ByteBuf,CheckExtensibleEnums.ExtensionData> STREAM_CODEC
-
-
Constructor Details
-
ExtensionData
Creates an instance of aExtensionDatarecord class.- Parameters:
vanillaCount- the value for thevanillaCountrecord componenttotalCount- the value for thetotalCountrecord componententries- the value for theentriesrecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
vanillaCount
public int vanillaCount()Returns the value of thevanillaCountrecord component.- Returns:
- the value of the
vanillaCountrecord component
-
totalCount
public int totalCount()Returns the value of thetotalCountrecord component.- Returns:
- the value of the
totalCountrecord component
-
entries
Returns the value of theentriesrecord component.- Returns:
- the value of the
entriesrecord component
-