Record Class SulfurCubeArchetype.AttributeEntry
java.lang.Object
java.lang.Record
net.minestom.server.entity.metadata.cube.SulfurCubeArchetype.AttributeEntry
- Enclosing interface:
SulfurCubeArchetype
public static record SulfurCubeArchetype.AttributeEntry(Attribute attribute, AttributeModifier modifier)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAttributeEntry(Attribute attribute, AttributeModifier modifier) Creates an instance of aAttributeEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.modifier()Returns the value of themodifierrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
AttributeEntry
Creates an instance of aAttributeEntryrecord class.- Parameters:
attribute- the value for theattributerecord componentmodifier- the value for themodifierrecord component
-
-
Method Details
-
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 withObjects::equals(Object,Object). -
attribute
Returns the value of theattributerecord component.- Returns:
- the value of the
attributerecord component
-
modifier
Returns the value of themodifierrecord component.- Returns:
- the value of the
modifierrecord component
-