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 { public static final ServerboundStatusRequestPacket INSTANCE = new ServerboundStatusRequestPacket(); public static final StreamCodec STREAM_CODEC = StreamCodec.unit(INSTANCE); private ServerboundStatusRequestPacket() { } @Override public PacketType type() { return StatusPacketTypes.SERVERBOUND_STATUS_REQUEST; } /** * Passes this Packet on to the NetHandler for processing. */ public void handle(ServerStatusPacketListener handler) { handler.handleStatusRequest(this); } }