Class EntitySetHeadYawS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.EntitySetHeadYawS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class EntitySetHeadYawS2CPacket extends Object implements Packet<ClientPlayPacketListener>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description EntitySetHeadYawS2CPacket()
EntitySetHeadYawS2CPacket(Entity entity, byte headYaw)
-
Method Summary
Modifier and Type Method Description void
apply(ClientPlayPacketListener clientPlayPacketListener)
Entity
getEntity(World world)
byte
getHeadYaw()
void
read(PacketByteBuf buf)
void
write(PacketByteBuf buf)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
entity
private int entity -
headYaw
private byte headYaw
-
-
Constructor Details
-
EntitySetHeadYawS2CPacket
public EntitySetHeadYawS2CPacket() -
EntitySetHeadYawS2CPacket
-
-
Method Details
-
read
- Specified by:
read
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
-
write
- Specified by:
write
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
-
apply
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
-
getEntity
-
getHeadYaw
@Environment(CLIENT) public byte getHeadYaw()
-