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
ConstructorsModifierConstructorDescriptionServerboundKeepAlivePacket(long p_294123_) privateServerboundKeepAlivePacket(FriendlyByteBuf p_294566_) -
Method Summary
Modifier and TypeMethodDescriptionlonggetId()voidhandle(ServerCommonPacketListener p_295223_) type()private voidwrite(FriendlyByteBuf p_295504_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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_294123_) -
ServerboundKeepAlivePacket
-
-
Method Details
-
write
-
type
- Specified by:
typein interfacePacket<ServerCommonPacketListener>
-
handle
- Specified by:
handlein interfacePacket<ServerCommonPacketListener>
-
getId
public long getId()
-