Class ClientboundKeepAlivePacket
java.lang.Object
net.minecraft.network.protocol.common.ClientboundKeepAlivePacket
- All Implemented Interfaces:
Packet<ClientCommonPacketListener>
public class ClientboundKeepAlivePacket
extends Object
implements Packet<ClientCommonPacketListener>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longstatic final StreamCodec<FriendlyByteBuf, ClientboundKeepAlivePacket> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetId()voidhandle(ClientCommonPacketListener handler) Passes this Packet on to the PacketListener for processing.type()private voidwrite(FriendlyByteBuf buffer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.Packet
isSkippable, isTerminal
-
Field Details
-
STREAM_CODEC
-
id
private final long id
-
-
Constructor Details
-
ClientboundKeepAlivePacket
public ClientboundKeepAlivePacket(long id) -
ClientboundKeepAlivePacket
-
-
Method Details
-
write
-
type
- Specified by:
typein interfacePacket<ClientCommonPacketListener>
-
handle
Passes this Packet on to the PacketListener for processing.- Specified by:
handlein interfacePacket<ClientCommonPacketListener>
-
getId
public long getId()
-