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
FieldsModifier and TypeFieldDescriptionprivate final longstatic final StreamCodec<FriendlyByteBuf, ServerboundKeepAlivePacket> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetId()voidhandle(ServerCommonPacketListener listener) Passes this Packet on to the PacketListener for processing.type()private voidwrite(FriendlyByteBuf output) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Packet
isSkippable, isTerminal
-
Field Details
-
STREAM_CODEC
-
id
private final long id
-
-
Constructor Details
-
ServerboundKeepAlivePacket
public ServerboundKeepAlivePacket(long id) -
ServerboundKeepAlivePacket
-
-
Method Details
-
write
-
type
- Specified by:
typein interfacePacket<ServerCommonPacketListener>
-
handle
Description copied from interface:PacketPasses this Packet on to the PacketListener for processing.- Specified by:
handlein interfacePacket<ServerCommonPacketListener>
-
getId
public long getId()
-