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);
 }
Example #2
0
 /** Displays the furnace GUI for the passed in furnace entity. Args: tileEntityFurnace */
 public void displayGUIFurnace(TileEntityFurnace par1TileEntityFurnace) {
   this.incrementWindowID();
   this.playerNetServerHandler.sendPacketToPlayer(
       new Packet100OpenWindow(
           this.currentWindowId,
           2,
           par1TileEntityFurnace.getInvName(),
           par1TileEntityFurnace.getSizeInventory(),
           par1TileEntityFurnace.isInvNameLocalized()));
   this.openContainer = new ContainerFurnace(this.inventory, par1TileEntityFurnace);
   this.openContainer.windowId = this.currentWindowId;
   this.openContainer.addCraftingToCrafters(this);
 }