/** * Handles the placement of a specified ItemStack in a specified container/inventory slot */ public void handleWindowItems(S30PacketWindowItems packetIn) { PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController); EntityPlayer entityplayer = this.gameController.thePlayer; if (packetIn.func_148911_c() == 0) { entityplayer.inventoryContainer.putStacksInSlots(packetIn.getItemStacks()); } else if (packetIn.func_148911_c() == entityplayer.openContainer.windowId) { entityplayer.openContainer.putStacksInSlots(packetIn.getItemStacks()); } }
/** * Handles the placement of a specified ItemStack in a specified * container/inventory slot */ public void handleWindowItems(S30PacketWindowItems packetIn) { PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController); EntityPlayer entityplayer = this.gameController.thePlayer; if (packetIn.func_148911_c() == 0) { entityplayer.inventoryContainer.putStacksInSlots(packetIn.getItemStacks()); } else if (packetIn.func_148911_c() == entityplayer.openContainer.windowId) { entityplayer.openContainer.putStacksInSlots(packetIn.getItemStacks()); } }
/** * Handles the placement of a specified ItemStack in a specified container/inventory slot */ public void handleWindowItems(S30PacketWindowItems p_147241_1_) { EntityClientPlayerMP var2 = this.gameController.thePlayer; if (p_147241_1_.func_148911_c() == 0) { var2.inventoryContainer.putStacksInSlots(p_147241_1_.func_148910_d()); } else if (p_147241_1_.func_148911_c() == var2.openContainer.windowId) { var2.openContainer.putStacksInSlots(p_147241_1_.func_148910_d()); } }
public void sendContainerAndContentsToPlayer(Container p_71110_1_, List p_71110_2_) { this.playerNetServerHandler.sendPacket(new S30PacketWindowItems(p_71110_1_.windowId, p_71110_2_)); this.playerNetServerHandler.sendPacket(new S2FPacketSetSlot(-1, -1, this.inventory.getItemStack())); if (p_71110_1_.getBukkitView() == null) return; // Cauldron - allow vanilla mods to bypass // CraftBukkit start - Send a Set Slot to update the crafting result slot if (java.util.EnumSet.of(InventoryType.CRAFTING, InventoryType.WORKBENCH).contains(p_71110_1_.getBukkitView().getType())) { this.playerNetServerHandler.sendPacket(new S2FPacketSetSlot(p_71110_1_.windowId, 0, p_71110_1_.getSlot(0).getStack())); } // CraftBukkit end }
public void handleWindowItems(S30PacketWindowItems p_147241_1_) { EntityClientPlayerMP entityclientplayermp = this.gameController.thePlayer; if (p_147241_1_.func_148911_c() == 0) { entityclientplayermp.inventoryContainer.putStacksInSlots(p_147241_1_.func_148910_d()); } else if (p_147241_1_.func_148911_c() == entityclientplayermp.openContainer.windowId) { entityclientplayermp.openContainer.putStacksInSlots(p_147241_1_.func_148910_d()); } }
/** * update the crafting window inventory with the items in the list */ public void updateCraftingInventory(Container containerToSend, List<ItemStack> itemsList) { this.playerNetServerHandler.sendPacket(new S30PacketWindowItems(containerToSend.windowId, itemsList)); this.playerNetServerHandler.sendPacket(new S2FPacketSetSlot(-1, -1, this.inventory.getItemStack())); }
public void sendContainerAndContentsToPlayer(Container par1Container, List par2List) { this.playerNetServerHandler.sendPacket(new S30PacketWindowItems(par1Container.windowId, par2List)); this.playerNetServerHandler.sendPacket(new S2FPacketSetSlot(-1, -1, this.inventory.getItemStack())); }
public void sendContainerAndContentsToPlayer(Container p_71110_1_, List p_71110_2_) { this.playerNetServerHandler.sendPacket(new S30PacketWindowItems(p_71110_1_.windowId, p_71110_2_)); this.playerNetServerHandler.sendPacket(new S2FPacketSetSlot(-1, -1, this.inventory.getItemStack())); }
/** * Handles the placement of a specified ItemStack in a specified container/inventory slot */ void handleWindowItems(S30PacketWindowItems packetIn);
/** * Handles the placement of a specified ItemStack in a specified container/inventory slot */ void handleWindowItems(S30PacketWindowItems var1);
void handleWindowItems(S30PacketWindowItems p_147241_1_);