public class QueryResponseS2CPacket extends Object implements Packet<ClientQueryPacketListener>
Modifier and Type | Field and Description |
---|---|
private static Gson |
GSON |
private ServerMetadata |
metadata |
Constructor and Description |
---|
QueryResponseS2CPacket() |
QueryResponseS2CPacket(ServerMetadata metadata) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientQueryPacketListener clientQueryPacketListener) |
ServerMetadata |
getServerMetadata() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private static final Gson GSON
private ServerMetadata metadata
public QueryResponseS2CPacket()
public QueryResponseS2CPacket(ServerMetadata metadata)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ClientQueryPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ClientQueryPacketListener>
IOException
public void apply(ClientQueryPacketListener clientQueryPacketListener)
apply
in interface Packet<ClientQueryPacketListener>
@Environment(value=CLIENT) public ServerMetadata getServerMetadata()