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 AttributeListstatic final NetworkBuffer.Type<AttributeList> -
Constructor Summary
ConstructorsConstructorDescriptionAttributeList(@NotNull List<AttributeList.Modifier> modifiers) Creates an instance of aAttributeListrecord class.AttributeList(@NotNull 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.@NotNull List<AttributeList.Modifier> Returns the value of themodifiersrecord component.@NotNull AttributeListremove(@NotNull AttributeList.Modifier modifier) final StringtoString()Returns a string representation of this record class.@NotNull AttributeListwith(@NotNull 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
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 themodifiersrecord component.- Returns:
- the value of the
modifiersrecord component
-