use of net.minecraft.network.protocol.game.PacketPlayOutSetSlot in project wordle by HypoxTeam.
the class PacketHandler1_17_1_R0_1 method setFakeItem.
@Override
public void setFakeItem(Player player, byte windowID, int slot, ItemStack item) {
CraftPlayer craftPlayer = (CraftPlayer) player;
EntityPlayer entityHuman = craftPlayer.getHandle();
PacketPlayOutSetSlot packet = new PacketPlayOutSetSlot(windowID, entityHuman.bV.getStateId(), slot, CraftItemStack.asNMSCopy(item));
entityHuman.b.sendPacket(packet);
}
Aggregations