Record Class AttributeList.Display.Override
java.lang.Object
java.lang.Record
net.minestom.server.item.component.AttributeList.Display.Override
- All Implemented Interfaces:
AttributeList.Display
- Enclosing interface:
AttributeList.Display
public static record AttributeList.Display.Override(Component component)
extends Record
implements AttributeList.Display
-
Nested Class Summary
Nested classes/interfaces inherited from interface AttributeList.Display
AttributeList.Display.Default, AttributeList.Display.Hidden, AttributeList.Display.Override, AttributeList.Display.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StructCodec<AttributeList.Display.Override> static final NetworkBuffer.Type<AttributeList.Display.Override> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomponentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
NETWORK_TYPE
-
CODEC
-
-
Constructor Details
-
Override
Creates an instance of aOverriderecord class.- Parameters:
component- the value for thecomponentrecord 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). -
component
Returns the value of thecomponentrecord component.- Returns:
- the value of the
componentrecord component
-