public void displayGUIEnchantment(int i, int j, int k) { getNextWidowId(); playerNetServerHandler.sendPacket(new Packet100OpenWindow(currentWindowId, 4, "Enchanting", 9)); currentCraftingInventory = new ContainerEnchantment(inventory, worldObj, i, j, k); currentCraftingInventory.windowId = currentWindowId; currentCraftingInventory.onCraftGuiOpened(this); }
public void displayGUIChest(IInventory iinventory) { getNextWidowId(); playerNetServerHandler.sendPacket( new Packet100OpenWindow( currentWindowId, 0, iinventory.getInvName(), iinventory.getSizeInventory())); currentCraftingInventory = new ContainerChest(inventory, iinventory); currentCraftingInventory.windowId = currentWindowId; currentCraftingInventory.onCraftGuiOpened(this); }
public void displayGUIBrewingStand(TileEntityBrewingStand tileentitybrewingstand) { getNextWidowId(); playerNetServerHandler.sendPacket( new Packet100OpenWindow( currentWindowId, 5, tileentitybrewingstand.getInvName(), tileentitybrewingstand.getSizeInventory())); currentCraftingInventory = new ContainerBrewingStand(inventory, tileentitybrewingstand); currentCraftingInventory.windowId = currentWindowId; currentCraftingInventory.onCraftGuiOpened(this); }
public void displayGUIDispenser(TileEntityDispenser tileentitydispenser) { getNextWidowId(); playerNetServerHandler.sendPacket( new Packet100OpenWindow( currentWindowId, 3, tileentitydispenser.getInvName(), tileentitydispenser.getSizeInventory())); currentCraftingInventory = new ContainerDispenser(inventory, tileentitydispenser); currentCraftingInventory.windowId = currentWindowId; currentCraftingInventory.onCraftGuiOpened(this); }
public void displayGUIFurnace(TileEntityFurnace tileentityfurnace) { getNextWidowId(); playerNetServerHandler.sendPacket( new Packet100OpenWindow( currentWindowId, 2, tileentityfurnace.getInvName(), tileentityfurnace.getSizeInventory())); currentCraftingInventory = new ContainerFurnace(inventory, tileentityfurnace); currentCraftingInventory.windowId = currentWindowId; currentCraftingInventory.onCraftGuiOpened(this); }