Record Class AttributeList
java.lang.Object
java.lang.Record
net.minestom.server.item.component.AttributeList
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Codec
<AttributeList> static final AttributeList
static final NetworkBuffer.Type
<AttributeList> -
Constructor Summary
ConstructorsConstructorDescriptionAttributeList
(@NotNull List<AttributeList.Modifier> modifiers) Creates an instance of aAttributeList
record class.AttributeList
(@NotNull AttributeList.Modifier modifier) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@NotNull List
<AttributeList.Modifier> Returns the value of themodifiers
record component.@NotNull AttributeList
remove
(@NotNull AttributeList.Modifier modifier) final String
toString()
Returns a string representation of this record class.@NotNull AttributeList
with
(@NotNull AttributeList.Modifier modifier)
-
Field Details
-
EMPTY
-
NETWORK_TYPE
-
CODEC
-
-
Constructor Details
-
AttributeList
Creates an instance of aAttributeList
record class.- Parameters:
modifiers
- the value for themodifiers
record 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 themodifiers
record component.- Returns:
- the value of the
modifiers
record component
-