public class ClientCommandC2SPacket extends Object implements Packet<ServerPlayPacketListener>
Modifier and Type | Class and Description |
---|---|
static class |
ClientCommandC2SPacket.Mode |
Modifier and Type | Field and Description |
---|---|
private int |
entityId |
private ClientCommandC2SPacket.Mode |
mode |
private int |
mountJumpHeight |
Constructor and Description |
---|
ClientCommandC2SPacket() |
ClientCommandC2SPacket(Entity entity,
ClientCommandC2SPacket.Mode mode) |
ClientCommandC2SPacket(Entity entity,
ClientCommandC2SPacket.Mode mode,
int mountJumpHeight) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ServerPlayPacketListener serverPlayPacketListener) |
ClientCommandC2SPacket.Mode |
getMode() |
int |
getMountJumpHeight() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private int entityId
private ClientCommandC2SPacket.Mode mode
private int mountJumpHeight
public ClientCommandC2SPacket()
@Environment(value=CLIENT) public ClientCommandC2SPacket(Entity entity, ClientCommandC2SPacket.Mode mode)
@Environment(value=CLIENT) public ClientCommandC2SPacket(Entity entity, ClientCommandC2SPacket.Mode mode, int mountJumpHeight)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ServerPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ServerPlayPacketListener>
IOException
public void apply(ServerPlayPacketListener serverPlayPacketListener)
apply
in interface Packet<ServerPlayPacketListener>
public ClientCommandC2SPacket.Mode getMode()
public int getMountJumpHeight()