Record Class JavaEquippableImpl
java.lang.Object
java.lang.Record
org.geysermc.geyser.item.custom.impl.JavaEquippableImpl
- All Implemented Interfaces:
org.geysermc.geyser.api.item.custom.v2.component.java.JavaEquippable
public record JavaEquippableImpl(org.geysermc.geyser.api.item.custom.v2.component.java.JavaEquippable.EquipmentSlot slot)
extends Record
implements org.geysermc.geyser.api.item.custom.v2.component.java.JavaEquippable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.geysermc.geyser.api.item.custom.v2.component.java.JavaEquippable
org.geysermc.geyser.api.item.custom.v2.component.java.JavaEquippable.EquipmentSlot -
Constructor Summary
ConstructorsConstructorDescriptionJavaEquippableImpl(org.geysermc.geyser.api.item.custom.v2.component.java.JavaEquippable.EquipmentSlot slot) Creates an instance of aJavaEquippableImplrecord class. -
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.org.geysermc.geyser.api.item.custom.v2.component.java.JavaEquippable.EquipmentSlotslot()Returns the value of theslotrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JavaEquippableImpl
public JavaEquippableImpl(org.geysermc.geyser.api.item.custom.v2.component.java.JavaEquippable.EquipmentSlot slot) Creates an instance of aJavaEquippableImplrecord class.- Parameters:
slot- the value for theslotrecord component
-
-
Method Details
-
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). -
slot
public org.geysermc.geyser.api.item.custom.v2.component.java.JavaEquippable.EquipmentSlot slot()Returns the value of theslotrecord component.- Specified by:
slotin interfaceorg.geysermc.geyser.api.item.custom.v2.component.java.JavaEquippable- Returns:
- the value of the
slotrecord component
-