Class EntityS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.EntityS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
- Direct Known Subclasses:
EntityS2CPacket.MoveRelative,EntityS2CPacket.Rotate,EntityS2CPacket.RotateAndMoveRelative
public class EntityS2CPacket extends Object implements Packet<ClientPlayPacketListener>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEntityS2CPacket.MoveRelativestatic classEntityS2CPacket.Rotatestatic classEntityS2CPacket.RotateAndMoveRelative -
Field Summary
-
Constructor Summary
Constructors Constructor Description EntityS2CPacket()EntityS2CPacket(int entityId) -
Method Summary
Modifier and Type Method Description voidapply(ClientPlayPacketListener clientPlayPacketListener)static Vec3ddecodePacketCoordinates(long x, long y, long z)static longencodePacketCoordinate(double coord)shortgetDeltaXShort()shortgetDeltaYShort()shortgetDeltaZShort()EntitygetEntity(World world)bytegetPitch()bytegetYaw()booleanhasRotation()booleanisOnGround()booleanisPositionChanged()voidread(PacketByteBuf buf)StringtoString()voidwrite(PacketByteBuf buf)
-
Field Details
-
Constructor Details
-
EntityS2CPacket
public EntityS2CPacket() -
EntityS2CPacket
public EntityS2CPacket(int entityId)
-
-
Method Details
-
encodePacketCoordinate
public static long encodePacketCoordinate(double coord) -
decodePacketCoordinates
-
read
- Specified by:
readin interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>
-
toString
-
getEntity
-
getDeltaXShort
@Environment(CLIENT) public short getDeltaXShort() -
getDeltaYShort
@Environment(CLIENT) public short getDeltaYShort() -
getDeltaZShort
@Environment(CLIENT) public short getDeltaZShort() -
getYaw
@Environment(CLIENT) public byte getYaw() -
getPitch
@Environment(CLIENT) public byte getPitch() -
hasRotation
@Environment(CLIENT) public boolean hasRotation() -
isPositionChanged
@Environment(CLIENT) public boolean isPositionChanged() -
isOnGround
@Environment(CLIENT) public boolean isOnGround()
-