Class EntityPositionS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.EntityPositionS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class EntityPositionS2CPacket extends Object implements Packet<ClientPlayPacketListener>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description EntityPositionS2CPacket()EntityPositionS2CPacket(Entity entity) -
Method Summary
Modifier and Type Method Description voidapply(ClientPlayPacketListener clientPlayPacketListener)intgetId()bytegetPitch()doublegetX()doublegetY()bytegetYaw()doublegetZ()booleanisOnGround()voidread(PacketByteBuf buf)voidwrite(PacketByteBuf buf)
-
Field Details
-
Constructor Details
-
EntityPositionS2CPacket
public EntityPositionS2CPacket() -
EntityPositionS2CPacket
-
-
Method Details
-
read
- Specified by:
readin interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>
-
getId
@Environment(CLIENT) public int getId() -
getX
@Environment(CLIENT) public double getX() -
getY
@Environment(CLIENT) public double getY() -
getZ
@Environment(CLIENT) public double getZ() -
getYaw
@Environment(CLIENT) public byte getYaw() -
getPitch
@Environment(CLIENT) public byte getPitch() -
isOnGround
@Environment(CLIENT) public boolean isOnGround()
-