Class ClientboundPingPacket
java.lang.Object
net.minecraft.network.protocol.common.ClientboundPingPacket
- All Implemented Interfaces:
Packet<ClientCommonPacketListener>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
static final StreamCodec
<FriendlyByteBuf, ClientboundPingPacket> -
Constructor Summary
ModifierConstructorDescriptionClientboundPingPacket
(int p_298858_) private
ClientboundPingPacket
(FriendlyByteBuf p_301364_) -
Method Summary
Modifier and TypeMethodDescriptionint
getId()
void
handle
(ClientCommonPacketListener p_299413_) type()
private void
write
(FriendlyByteBuf p_298056_) 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 int id
-
-
Constructor Details
-
ClientboundPingPacket
public ClientboundPingPacket(int p_298858_) -
ClientboundPingPacket
-
-
Method Details
-
write
-
type
- Specified by:
type
in interfacePacket<ClientCommonPacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ClientCommonPacketListener>
-
getId
public int getId()
-