Class ClientboundPlayerRotationPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.entity.player.ClientboundPlayerRotationPacket
- All Implemented Interfaces:
Packet, MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundPlayerRotationPacket(float yaw, boolean relativeYaw, float pitch, boolean relativePitch) ClientboundPlayerRotationPacket(io.netty.buffer.ByteBuf in) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanfloatgetPitch()floatgetYaw()inthashCode()booleanbooleanvoidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ClientboundPlayerRotationPacketwithPitch(float pitch) @NonNull ClientboundPlayerRotationPacketwithRelativePitch(boolean relativePitch) @NonNull ClientboundPlayerRotationPacketwithRelativeYaw(boolean relativeYaw) @NonNull ClientboundPlayerRotationPacketwithYaw(float yaw) Methods inherited from interface Packet
isPriority, isTerminal
-
Constructor Details
-
ClientboundPlayerRotationPacket
public ClientboundPlayerRotationPacket(io.netty.buffer.ByteBuf in) -
ClientboundPlayerRotationPacket
public ClientboundPlayerRotationPacket(float yaw, boolean relativeYaw, float pitch, boolean relativePitch)
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - Specified by:
serializein interfaceMinecraftPacket
-
getYaw
public float getYaw() -
isRelativeYaw
public boolean isRelativeYaw() -
getPitch
public float getPitch() -
isRelativePitch
public boolean isRelativePitch() -
equals
-
canEqual
-
hashCode
-
toString
-
withYaw
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withRelativeYaw
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPitch
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withRelativePitch
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-