Record Class CustomRenderOffsets.Offset
java.lang.Object
java.lang.Record
org.geysermc.geyser.api.item.custom.CustomRenderOffsets.Offset
- Enclosing class:
CustomRenderOffsets
public static record CustomRenderOffsets.Offset(@Nullable CustomRenderOffsets.OffsetXYZ position, @Nullable CustomRenderOffsets.OffsetXYZ rotation, @Nullable CustomRenderOffsets.OffsetXYZ scale)
extends Record
The offset of the item.
-
Constructor Summary
ConstructorsConstructorDescriptionOffset(@Nullable CustomRenderOffsets.OffsetXYZ position, @Nullable CustomRenderOffsets.OffsetXYZ rotation, @Nullable CustomRenderOffsets.OffsetXYZ scale) Creates an instance of aOffsetrecord 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.@Nullable CustomRenderOffsets.OffsetXYZposition()Returns the value of thepositionrecord component.@Nullable CustomRenderOffsets.OffsetXYZrotation()Returns the value of therotationrecord component.@Nullable CustomRenderOffsets.OffsetXYZscale()Returns the value of thescalerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Offset
public Offset(@Nullable CustomRenderOffsets.OffsetXYZ position, @Nullable CustomRenderOffsets.OffsetXYZ rotation, @Nullable CustomRenderOffsets.OffsetXYZ scale) Creates an instance of aOffsetrecord class.- Parameters:
position- the value for thepositionrecord componentrotation- the value for therotationrecord componentscale- the value for thescalerecord 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). -
position
Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
rotation
Returns the value of therotationrecord component.- Returns:
- the value of the
rotationrecord component
-
scale
Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-