23 lines
856 B
Java
23 lines
856 B
Java
package net.minecraft.network.protocol.status;
|
|
|
|
import io.netty.buffer.ByteBuf;
|
|
import net.minecraft.network.codec.StreamCodec;
|
|
import net.minecraft.network.protocol.Packet;
|
|
import net.minecraft.network.protocol.PacketType;
|
|
|
|
public class ServerboundStatusRequestPacket implements Packet<ServerStatusPacketListener> {
|
|
public static final ServerboundStatusRequestPacket INSTANCE = new ServerboundStatusRequestPacket();
|
|
public static final StreamCodec<ByteBuf, ServerboundStatusRequestPacket> STREAM_CODEC = StreamCodec.unit(INSTANCE);
|
|
|
|
private ServerboundStatusRequestPacket() {
|
|
}
|
|
|
|
@Override
|
|
public PacketType<ServerboundStatusRequestPacket> type() {
|
|
return StatusPacketTypes.SERVERBOUND_STATUS_REQUEST;
|
|
}
|
|
|
|
public void handle(ServerStatusPacketListener p_135007_) {
|
|
p_135007_.handleStatusRequest(this);
|
|
}
|
|
} |