Record Class ClientPlayerRotationPacket
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.client.play.ClientPlayerRotationPacket
- All Implemented Interfaces:
ClientPacket
public record ClientPlayerRotationPacket(float yaw, float pitch, byte flags)
extends Record
implements ClientPacket
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClientPlayerRotationPacket(float yaw, float pitch, boolean onGround, boolean horizontalCollision) ClientPlayerRotationPacket(float yaw, float pitch, byte flags) Creates an instance of aClientPlayerRotationPacketrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.byteflags()Returns the value of theflagsrecord component.final inthashCode()Returns a hash code value for this object.booleanbooleanonGround()floatpitch()Returns the value of thepitchrecord component.final StringtoString()Returns a string representation of this record class.floatyaw()Returns the value of theyawrecord component.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
ClientPlayerRotationPacket
public ClientPlayerRotationPacket(float yaw, float pitch, boolean onGround, boolean horizontalCollision) -
ClientPlayerRotationPacket
public ClientPlayerRotationPacket(float yaw, float pitch, byte flags) Creates an instance of aClientPlayerRotationPacketrecord class.- Parameters:
yaw- the value for theyawrecord componentpitch- the value for thepitchrecord componentflags- the value for theflagsrecord component
-
-
Method Details
-
onGround
public boolean onGround() -
horizontalCollision
public boolean horizontalCollision() -
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 with thecomparemethod from their corresponding wrapper classes. -
yaw
public float yaw()Returns the value of theyawrecord component.- Returns:
- the value of the
yawrecord component
-
pitch
public float pitch()Returns the value of thepitchrecord component.- Returns:
- the value of the
pitchrecord component
-
flags
public byte flags()Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-