
net.minecraft.server.PacketPlayInSetCreativeSlot Maven / Gradle / Ivy
package net.minecraft.server;
import java.io.IOException;
public class PacketPlayInSetCreativeSlot implements Packet {
private int slot;
private ItemStack b;
public PacketPlayInSetCreativeSlot() {
}
public void a(PacketListenerPlayIn packetlistenerplayin) {
packetlistenerplayin.a(this);
}
public void a(PacketDataSerializer packetdataserializer) throws IOException {
this.slot = packetdataserializer.readShort();
this.b = packetdataserializer.i();
}
public void b(PacketDataSerializer packetdataserializer) throws IOException {
packetdataserializer.writeShort(this.slot);
packetdataserializer.a(this.b);
}
public int a() {
return this.slot;
}
public ItemStack getItemStack() {
return this.b;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy