Record Class ClientboundEntityPositionSyncPacket.PositionStep
java.lang.Object
java.lang.Record
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.entity.ClientboundEntityPositionSyncPacket.PositionStep
- Enclosing class:
ClientboundEntityPositionSyncPacket
public static record ClientboundEntityPositionSyncPacket.PositionStep(org.cloudburstmc.math.vector.Vector3d position, int tickOffset)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPositionStep(org.cloudburstmc.math.vector.Vector3d position, int tickOffset) Creates an instance of aPositionSteprecord 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.cloudburstmc.math.vector.Vector3dposition()Returns the value of thepositionrecord component.intReturns the value of thetickOffsetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PositionStep
public PositionStep(org.cloudburstmc.math.vector.Vector3d position, int tickOffset) Creates an instance of aPositionSteprecord class.- Parameters:
position- the value for thepositionrecord componenttickOffset- the value for thetickOffsetrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
position
public org.cloudburstmc.math.vector.Vector3d position()Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
tickOffset
public int tickOffset()Returns the value of thetickOffsetrecord component.- Returns:
- the value of the
tickOffsetrecord component
-