
net.minecraft.server.PacketPlayOutSetSlot Maven / Gradle / Ivy
package net.minecraft.server;
import java.io.IOException;
public class PacketPlayOutSetSlot implements Packet {
private int a;
private int b;
private ItemStack c;
public PacketPlayOutSetSlot() {
}
public PacketPlayOutSetSlot(int i, int j, ItemStack itemstack) {
this.a = i;
this.b = j;
this.c = itemstack == null ? null : itemstack.cloneItemStack();
}
public void a(PacketListenerPlayOut packetlistenerplayout) {
packetlistenerplayout.a(this);
}
public void a(PacketDataSerializer packetdataserializer) throws IOException {
this.a = packetdataserializer.readByte();
this.b = packetdataserializer.readShort();
this.c = packetdataserializer.i();
}
public void b(PacketDataSerializer packetdataserializer) throws IOException {
packetdataserializer.writeByte(this.a);
packetdataserializer.writeShort(this.b);
packetdataserializer.a(this.c);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy