Record Class ClientboundMoveEntityPosRotPacket.DeltaStep
java.lang.Object
java.lang.Record
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.entity.ClientboundMoveEntityPosRotPacket.DeltaStep
- Enclosing class:
ClientboundMoveEntityPosRotPacket
public static record ClientboundMoveEntityPosRotPacket.DeltaStep(int ticks, double moveX, double moveY, double moveZ)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDeltaStep(int ticks, double moveX, double moveY, double moveZ) Creates an instance of aDeltaSteprecord 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.doublemoveX()Returns the value of themoveXrecord component.doublemoveY()Returns the value of themoveYrecord component.doublemoveZ()Returns the value of themoveZrecord component.intticks()Returns the value of theticksrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DeltaStep
public DeltaStep(int ticks, double moveX, double moveY, double moveZ) Creates an instance of aDeltaSteprecord class.- Parameters:
ticks- the value for theticksrecord componentmoveX- the value for themoveXrecord componentmoveY- the value for themoveYrecord componentmoveZ- the value for themoveZrecord 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 with '=='. -
ticks
public int ticks()Returns the value of theticksrecord component.- Returns:
- the value of the
ticksrecord component
-
moveX
public double moveX()Returns the value of themoveXrecord component.- Returns:
- the value of the
moveXrecord component
-
moveY
public double moveY()Returns the value of themoveYrecord component.- Returns:
- the value of the
moveYrecord component
-
moveZ
public double moveZ()Returns the value of themoveZrecord component.- Returns:
- the value of the
moveZrecord component
-