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_296274_) private
ClientboundKeepAlivePacket
(FriendlyByteBuf p_296088_) -
Method Summary
Modifier and TypeMethodDescriptionlong
getId()
void
handle
(ClientCommonPacketListener p_296005_) type()
private void
write
(FriendlyByteBuf p_295294_) 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_296274_) -
ClientboundKeepAlivePacket
-
-
Method Details
-
write
-
type
- Specified by:
type
in interfacePacket<ClientCommonPacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ClientCommonPacketListener>
-
getId
public long getId()
-