Record Class CustomRenderOffsets.Hand
java.lang.Object
java.lang.Record
org.geysermc.geyser.api.item.custom.CustomRenderOffsets.Hand
- Enclosing class:
CustomRenderOffsets
public static record CustomRenderOffsets.Hand(@Nullable CustomRenderOffsets.Offset firstPerson, @Nullable CustomRenderOffsets.Offset thirdPerson)
extends Record
The hand that is used for the offset.
-
Constructor Summary
ConstructorsConstructorDescriptionHand(@Nullable CustomRenderOffsets.Offset firstPerson, @Nullable CustomRenderOffsets.Offset thirdPerson) Creates an instance of aHandrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@Nullable CustomRenderOffsets.OffsetReturns the value of thefirstPersonrecord component.final inthashCode()Returns a hash code value for this object.@Nullable CustomRenderOffsets.OffsetReturns the value of thethirdPersonrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Hand
public Hand(@Nullable CustomRenderOffsets.Offset firstPerson, @Nullable CustomRenderOffsets.Offset thirdPerson) Creates an instance of aHandrecord class.- Parameters:
firstPerson- the value for thefirstPersonrecord componentthirdPerson- the value for thethirdPersonrecord 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). -
firstPerson
Returns the value of thefirstPersonrecord component.- Returns:
- the value of the
firstPersonrecord component
-
thirdPerson
Returns the value of thethirdPersonrecord component.- Returns:
- the value of the
thirdPersonrecord component
-