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
-
Constructor Summary
ConstructorDescriptionServerboundKeepAlivePacket
(long p_300615_) ServerboundKeepAlivePacket
(FriendlyByteBuf p_299677_) -
Method Summary
Modifier and TypeMethodDescriptionlong
getId()
void
handle
(ServerCommonPacketListener p_297247_) 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, nextProtocol
-
Field Details
-
id
private final long id
-
-
Constructor Details
-
ServerboundKeepAlivePacket
public ServerboundKeepAlivePacket(long p_300615_) -
ServerboundKeepAlivePacket
-
-
Method Details
-
handle
- Specified by:
handle
in interfacePacket<ServerCommonPacketListener>
-
write
- Specified by:
write
in interfacePacket<ServerCommonPacketListener>
-
getId
public long getId()
-