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 time) privateServerboundPingRequestPacket(io.netty.buffer.ByteBuf input) -
Method Summary
Modifier and TypeMethodDescriptionlonggetTime()voidhandle(ServerPingPacketListener listener) type()private voidwrite(io.netty.buffer.ByteBuf 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
-
time
private final long time
-
-
Constructor Details
-
ServerboundPingRequestPacket
public ServerboundPingRequestPacket(long time) -
ServerboundPingRequestPacket
private ServerboundPingRequestPacket(io.netty.buffer.ByteBuf input)
-
-
Method Details
-
write
private void write(io.netty.buffer.ByteBuf output) -
type
- Specified by:
typein interfacePacket<ServerPingPacketListener>
-
handle
- Specified by:
handlein interfacePacket<ServerPingPacketListener>
-
getTime
public long getTime()
-