public class KeepAliveC2SPacket extends Object implements Packet<ServerPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private long |
id |
Constructor and Description |
---|
KeepAliveC2SPacket() |
KeepAliveC2SPacket(long id) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ServerPlayPacketListener serverPlayPacketListener) |
long |
getId() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
public KeepAliveC2SPacket()
@Environment(value=CLIENT) public KeepAliveC2SPacket(long id)
public void apply(ServerPlayPacketListener serverPlayPacketListener)
apply
in interface Packet<ServerPlayPacketListener>
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 long getId()