26 lines
		
	
	
	
		
			884 B
		
	
	
	
		
			Java
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
	
		
			884 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;
 | |
| 	}
 | |
| 
 | |
| 	/**
 | |
| 	 * Passes this Packet on to the NetHandler for processing.
 | |
| 	 */
 | |
| 	public void handle(ServerStatusPacketListener handler) {
 | |
| 		handler.handleStatusRequest(this);
 | |
| 	}
 | |
| }
 |