Record Class AttributeList
java.lang.Object
java.lang.Record
net.minestom.server.item.component.AttributeList
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static final record
-
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
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. 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
-