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 long
static final StreamCodec
<FriendlyByteBuf, ClientboundKeepAlivePacket> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
getId()
void
handle
(ClientCommonPacketListener p_296005_) Passes this Packet on to the PacketListener for processing.type()
private void
write
(FriendlyByteBuf pBuffer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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 pId) -
ClientboundKeepAlivePacket
-
-
Method Details
-
write
-
type
- Specified by:
type
in interfacePacket<ClientCommonPacketListener>
-
handle
Description copied from interface:Packet
Passes this Packet on to the PacketListener for processing.- Specified by:
handle
in interfacePacket<ClientCommonPacketListener>
-
getId
public long getId()
-