public class EntityVelocityUpdateS2CPacket extends Object implements Packet<ClientPlayPacketListener>
| Modifier and Type | Field and Description |
|---|---|
private int |
id |
private int |
velocityX |
private int |
velocityY |
private int |
velocityZ |
| Constructor and Description |
|---|
EntityVelocityUpdateS2CPacket() |
EntityVelocityUpdateS2CPacket(Entity entity) |
EntityVelocityUpdateS2CPacket(int id,
Vec3d velocity) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
int |
getId() |
int |
getVelocityX() |
int |
getVelocityY() |
int |
getVelocityZ() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisWritingErrorSkippableprivate int id
private int velocityX
private int velocityY
private int velocityZ
public EntityVelocityUpdateS2CPacket()
public EntityVelocityUpdateS2CPacket(Entity entity)
public EntityVelocityUpdateS2CPacket(int id,
Vec3d velocity)
public void read(PacketByteBuf buf) throws IOException
read in interface Packet<ClientPlayPacketListener>IOExceptionpublic void write(PacketByteBuf buf) throws IOException
write in interface Packet<ClientPlayPacketListener>IOExceptionpublic void apply(ClientPlayPacketListener clientPlayPacketListener)
apply in interface Packet<ClientPlayPacketListener>@Environment(value=CLIENT) public int getId()
@Environment(value=CLIENT) public int getVelocityX()
@Environment(value=CLIENT) public int getVelocityY()
@Environment(value=CLIENT) public int getVelocityZ()