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, waitisWritingErrorSkippableprivate 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>IOExceptionpublic void write(PacketByteBuf buf) throws IOException
write in interface Packet<ClientQueryPacketListener>IOExceptionpublic void apply(ClientQueryPacketListener clientQueryPacketListener)
apply in interface Packet<ClientQueryPacketListener>@Environment(value=CLIENT) public ServerMetadata getServerMetadata()