Class ServerboundPingRequestPacket
java.lang.Object
net.minecraft.network.protocol.ping.ServerboundPingRequestPacket
- All Implemented Interfaces:
Packet<ServerPingPacketListener>
public class ServerboundPingRequestPacket
extends Object
implements Packet<ServerPingPacketListener>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final StreamCodec
<FriendlyByteBuf, ServerboundPingRequestPacket> private final long
-
Constructor Summary
ModifierConstructorDescriptionServerboundPingRequestPacket
(long p_320277_) private
ServerboundPingRequestPacket
(FriendlyByteBuf p_320208_) -
Method Summary
Modifier and TypeMethodDescriptionlong
getTime()
void
handle
(ServerPingPacketListener p_320053_) type()
private void
write
(FriendlyByteBuf p_320674_) 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
-
time
private final long time
-
-
Constructor Details
-
ServerboundPingRequestPacket
public ServerboundPingRequestPacket(long p_320277_) -
ServerboundPingRequestPacket
-
-
Method Details
-
write
-
type
- Specified by:
type
in interfacePacket<ServerPingPacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ServerPingPacketListener>
-
getTime
public long getTime()
-