Class KeepAliveS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.KeepAliveS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class KeepAliveS2CPacket extends Object implements Packet<ClientPlayPacketListener>
-
Field Summary
Fields Modifier and Type Field Description private longid -
Constructor Summary
Constructors Constructor Description KeepAliveS2CPacket()KeepAliveS2CPacket(long id) -
Method Summary
Modifier and Type Method Description voidapply(ClientPlayPacketListener clientPlayPacketListener)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
-
KeepAliveS2CPacket
public KeepAliveS2CPacket() -
KeepAliveS2CPacket
public KeepAliveS2CPacket(long id)
-
-
Method Details
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>
-
read
- Specified by:
readin interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
getId
@Environment(CLIENT) public long getId()
-