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
Modifier and TypeFieldDescriptionprivate final long
static final StreamCodec
<FriendlyByteBuf, ClientboundKeepAlivePacket> -
Constructor Summary
ModifierConstructorDescriptionClientboundKeepAlivePacket
(long p_300888_) private
ClientboundKeepAlivePacket
(FriendlyByteBuf p_300278_) -
Method Summary
Modifier and TypeMethodDescriptionlong
getId()
void
handle
(ClientCommonPacketListener p_297897_) type()
private void
write
(FriendlyByteBuf p_299560_) 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 p_300888_) -
ClientboundKeepAlivePacket
-
-
Method Details
-
write
-
type
- Specified by:
type
in interfacePacket<ClientCommonPacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ClientCommonPacketListener>
-
getId
public long getId()
-