Class KeepAliveC2SPacket
java.lang.Object
net.minecraft.network.packet.c2s.play.KeepAliveC2SPacket
- All Implemented Interfaces:
Packet<ServerPlayPacketListener>
public class KeepAliveC2SPacket extends Object implements Packet<ServerPlayPacketListener>
-
Field Summary
Fields Modifier and Type Field Description private longid -
Constructor Summary
Constructors Constructor Description KeepAliveC2SPacket()KeepAliveC2SPacket(long id) -
Method Summary
Modifier and Type Method Description voidapply(ServerPlayPacketListener serverPlayPacketListener)longgetId()voidread(PacketByteBuf buf)voidwrite(PacketByteBuf buf)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
id
private long id
-
-
Constructor Details
-
KeepAliveC2SPacket
public KeepAliveC2SPacket() -
KeepAliveC2SPacket
@Environment(CLIENT) public KeepAliveC2SPacket(long id)
-
-
Method Details
-
apply
- Specified by:
applyin interfacePacket<ServerPlayPacketListener>
-
read
- Specified by:
readin interfacePacket<ServerPlayPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ServerPlayPacketListener>- Throws:
IOException
-
getId
public long getId()
-