33 lines
797 B
Java
33 lines
797 B
Java
package net.minecraft.server;
|
|
|
|
import java.io.IOException;
|
|
|
|
public class PacketPlayOutCloseWindow implements Packet<PacketListenerPlayOut> {
|
|
|
|
private int a;
|
|
|
|
public PacketPlayOutCloseWindow() {}
|
|
|
|
public PacketPlayOutCloseWindow(int i) {
|
|
this.a = i;
|
|
}
|
|
|
|
public void a(PacketListenerPlayOut packetlistenerplayout) {
|
|
packetlistenerplayout.a(this);
|
|
}
|
|
|
|
public void a(PacketDataSerializer packetdataserializer) throws IOException {
|
|
this.a = packetdataserializer.readUnsignedByte();
|
|
}
|
|
|
|
public void b(PacketDataSerializer packetdataserializer) throws IOException {
|
|
packetdataserializer.writeByte(this.a);
|
|
}
|
|
// Akarin start
|
|
@Override
|
|
public boolean canDispatchImmediately() {
|
|
return true;
|
|
}
|
|
// Akarin end
|
|
}
|