Record Class GhostEquipment
java.lang.Object
java.lang.Record
com.iantapply.conflux.api.GhostEquipment
- Record Components:
mainHand- item held in the main hand, or an empty stringoffHand- item held in the offhand, or an empty stringfeet- boots worn by the player, or an empty stringlegs- leggings worn by the player, or an empty stringchest- chestplate worn by the player, or an empty stringhead- helmet worn by the player, or an empty string
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GhostEquipmentEquipment state in which every slot is empty. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchest()Returns the value of thechestrecord component.final booleanIndicates whether some other object is "equal to" this one.feet()Returns the value of thefeetrecord component.final inthashCode()Returns a hash code value for this object.head()Returns the value of theheadrecord component.legs()Returns the value of thelegsrecord component.mainHand()Returns the value of themainHandrecord component.offHand()Returns the value of theoffHandrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
Equipment state in which every slot is empty.
-
-
Constructor Details
-
GhostEquipment
-
-
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). -
mainHand
-
offHand
-
feet
-
legs
-
chest
-
head
-