Record Class AttributeList
java.lang.Object
java.lang.Record
net.minestom.server.item.component.AttributeList
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Codec<AttributeList> static final AttributeListstatic final NetworkBuffer.Type<AttributeList> -
Constructor Summary
ConstructorsConstructorDescriptionAttributeList(List<AttributeList.Modifier> modifiers) Creates an instance of aAttributeListrecord class.AttributeList(AttributeList.Modifier modifier) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themodifiersrecord component.remove(AttributeList.Modifier modifier) final StringtoString()Returns a string representation of this record class.with(AttributeList.Modifier modifier)
-
Field Details
-
EMPTY
-
NETWORK_TYPE
-
CODEC
-
-
Constructor Details
-
AttributeList
Creates an instance of aAttributeListrecord class.- Parameters:
modifiers- the value for themodifiersrecord component
-
AttributeList
-
-
Method Details
-
with
-
remove
-
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). -
modifiers
Returns the value of themodifiersrecord component.- Returns:
- the value of the
modifiersrecord component
-