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