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); }
/** Displays the GUI for interacting with a brewing stand. */ public void displayGUIBrewingStand(TileEntityBrewingStand par1TileEntityBrewingStand) { this.incrementWindowID(); this.playerNetServerHandler.sendPacketToPlayer( new Packet100OpenWindow( this.currentWindowId, 5, par1TileEntityBrewingStand.getInvName(), par1TileEntityBrewingStand.getSizeInventory(), par1TileEntityBrewingStand.isInvNameLocalized())); this.openContainer = new ContainerBrewingStand(this.inventory, par1TileEntityBrewingStand); this.openContainer.windowId = this.currentWindowId; this.openContainer.addCraftingToCrafters(this); }