Class ServerboundKeepAlivePacket
java.lang.Object
net.minecraft.network.protocol.common.ServerboundKeepAlivePacket
- All Implemented Interfaces:
Packet<ServerCommonPacketListener>
public class ServerboundKeepAlivePacket
extends Object
implements Packet<ServerCommonPacketListener>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final long
static final StreamCodec
<FriendlyByteBuf, ServerboundKeepAlivePacket> -
Constructor Summary
ModifierConstructorDescriptionServerboundKeepAlivePacket
(long p_300615_) private
ServerboundKeepAlivePacket
(FriendlyByteBuf p_299677_) -
Method Summary
Modifier and TypeMethodDescriptionlong
getId()
void
handle
(ServerCommonPacketListener p_297247_) type()
private void
write
(FriendlyByteBuf p_299172_) 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
-
ServerboundKeepAlivePacket
public ServerboundKeepAlivePacket(long p_300615_) -
ServerboundKeepAlivePacket
-
-
Method Details
-
write
-
type
- Specified by:
type
in interfacePacket<ServerCommonPacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ServerCommonPacketListener>
-
getId
public long getId()
-