public class QueryPingC2SPacket extends Object implements Packet<ServerQueryPacketListener>
Modifier and Type | Field and Description |
---|---|
private long |
startTime |
Constructor and Description |
---|
QueryPingC2SPacket() |
QueryPingC2SPacket(long startTime) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ServerQueryPacketListener serverQueryPacketListener) |
long |
getStartTime() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
public QueryPingC2SPacket()
@Environment(value=CLIENT) public QueryPingC2SPacket(long startTime)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ServerQueryPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ServerQueryPacketListener>
IOException
public void apply(ServerQueryPacketListener serverQueryPacketListener)
apply
in interface Packet<ServerQueryPacketListener>
public long getStartTime()