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 theentries
record component.static final net.minecraft.network.codec.StreamCodec
<io.netty.buffer.ByteBuf, CheckExtensibleEnums.ExtensionData> private final int
The field for thetotalCount
record component.private final int
The field for thevanillaCount
record component. -
Constructor Summary
ConstructorsConstructorDescriptionExtensionData
(int vanillaCount, int totalCount, List<String> entries) Creates an instance of aExtensionData
record class. -
Method Summary
Modifier and TypeMethodDescriptionentries()
Returns the value of theentries
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.int
Returns the value of thetotalCount
record component.int
Returns the value of thevanillaCount
record component.
-
Field Details
-
vanillaCount
private final int vanillaCountThe field for thevanillaCount
record component. -
totalCount
private final int totalCountThe field for thetotalCount
record component. -
entries
The field for theentries
record component. -
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,CheckExtensibleEnums.ExtensionData> STREAM_CODEC
-
-
Constructor Details
-
ExtensionData
Creates an instance of aExtensionData
record class.- Parameters:
vanillaCount
- the value for thevanillaCount
record componenttotalCount
- the value for thetotalCount
record componententries
- the value for theentries
record 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 thevanillaCount
record component.- Returns:
- the value of the
vanillaCount
record component
-
totalCount
public int totalCount()Returns the value of thetotalCount
record component.- Returns:
- the value of the
totalCount
record component
-
entries
Returns the value of theentries
record component.- Returns:
- the value of the
entries
record component
-