public class ClientStatusC2SPacket extends Object implements Packet<ServerPlayPacketListener>
| Modifier and Type | Class and Description |
|---|---|
static class |
ClientStatusC2SPacket.Mode |
| Modifier and Type | Field and Description |
|---|---|
private ClientStatusC2SPacket.Mode |
mode |
| Constructor and Description |
|---|
ClientStatusC2SPacket() |
ClientStatusC2SPacket(ClientStatusC2SPacket.Mode mode) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(ServerPlayPacketListener serverPlayPacketListener) |
ClientStatusC2SPacket.Mode |
getMode() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisWritingErrorSkippableprivate ClientStatusC2SPacket.Mode mode
public ClientStatusC2SPacket()
public ClientStatusC2SPacket(ClientStatusC2SPacket.Mode mode)
public void read(PacketByteBuf buf) throws IOException
read in interface Packet<ServerPlayPacketListener>IOExceptionpublic void write(PacketByteBuf buf) throws IOException
write in interface Packet<ServerPlayPacketListener>IOExceptionpublic void apply(ServerPlayPacketListener serverPlayPacketListener)
apply in interface Packet<ServerPlayPacketListener>public ClientStatusC2SPacket.Mode getMode()