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
FieldsModifier and TypeFieldDescriptionstatic final StreamCodec
<io.netty.buffer.ByteBuf, ServerboundPingRequestPacket> private final long
-
Constructor Summary
ConstructorsModifierConstructorDescriptionServerboundPingRequestPacket
(long pTime) private
ServerboundPingRequestPacket
(io.netty.buffer.ByteBuf pBuffer) -
Method Summary
Modifier and TypeMethodDescriptionlong
getTime()
void
handle
(ServerPingPacketListener p_320053_) Passes this Packet on to the PacketListener for processing.type()
private void
write
(io.netty.buffer.ByteBuf pBuffer) 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 pTime) -
ServerboundPingRequestPacket
private ServerboundPingRequestPacket(io.netty.buffer.ByteBuf pBuffer)
-
-
Method Details
-
write
private void write(io.netty.buffer.ByteBuf pBuffer) -
type
- Specified by:
type
in interfacePacket<ServerPingPacketListener>
-
handle
Description copied from interface:Packet
Passes this Packet on to the PacketListener for processing.- Specified by:
handle
in interfacePacket<ServerPingPacketListener>
-
getTime
public long getTime()
-