/** * Displays the GUI for interacting with a chest inventory. Args: chestInventory */ public void displayGUIChest(IInventory chestInventory) { String s = chestInventory instanceof IInteractionObject ? ((IInteractionObject) chestInventory).getGuiID() : "minecraft:container"; if ("minecraft:chest".equals(s)) { this.mc.displayGuiScreen(new GuiChest(this.inventory, chestInventory)); } else if ("minecraft:hopper".equals(s)) { this.mc.displayGuiScreen(new GuiHopper(this.inventory, chestInventory)); } else if ("minecraft:furnace".equals(s)) { this.mc.displayGuiScreen(new GuiFurnace(this.inventory, chestInventory)); } else if ("minecraft:brewing_stand".equals(s)) { this.mc.displayGuiScreen(new GuiBrewingStand(this.inventory, chestInventory)); } else if ("minecraft:beacon".equals(s)) { this.mc.displayGuiScreen(new GuiBeacon(this.inventory, chestInventory)); } else if (!"minecraft:dispenser".equals(s) && !"minecraft:dropper".equals(s)) { this.mc.displayGuiScreen(new GuiChest(this.inventory, chestInventory)); } else { this.mc.displayGuiScreen(new GuiDispenser(this.inventory, chestInventory)); } }
/** * Displays the GUI for interacting with a chest inventory. Args: chestInventory */ public void displayGUIChest(IInventory chestInventory) { String s = chestInventory instanceof IInteractionObject ? ((IInteractionObject)chestInventory).getGuiID() : "minecraft:container"; if ("minecraft:chest".equals(s)) { this.mc.displayGuiScreen(new GuiChest(this.inventory, chestInventory)); } else if ("minecraft:hopper".equals(s)) { this.mc.displayGuiScreen(new GuiHopper(this.inventory, chestInventory)); } else if ("minecraft:furnace".equals(s)) { this.mc.displayGuiScreen(new GuiFurnace(this.inventory, chestInventory)); } else if ("minecraft:brewing_stand".equals(s)) { this.mc.displayGuiScreen(new GuiBrewingStand(this.inventory, chestInventory)); } else if ("minecraft:beacon".equals(s)) { this.mc.displayGuiScreen(new GuiBeacon(this.inventory, chestInventory)); } else if (!"minecraft:dispenser".equals(s) && !"minecraft:dropper".equals(s)) { this.mc.displayGuiScreen(new GuiChest(this.inventory, chestInventory)); } else { this.mc.displayGuiScreen(new GuiDispenser(this.inventory, chestInventory)); } }
/** * Displays the GUI for interacting with a chest inventory. */ public void displayGUIChest(IInventory chestInventory) { String s = chestInventory instanceof IInteractionObject ? ((IInteractionObject)chestInventory).getGuiID() : "minecraft:container"; if ("minecraft:chest".equals(s)) { this.mc.displayGuiScreen(new GuiChest(this.inventory, chestInventory)); } else if ("minecraft:hopper".equals(s)) { this.mc.displayGuiScreen(new GuiHopper(this.inventory, chestInventory)); } else if ("minecraft:furnace".equals(s)) { this.mc.displayGuiScreen(new GuiFurnace(this.inventory, chestInventory)); } else if ("minecraft:brewing_stand".equals(s)) { this.mc.displayGuiScreen(new GuiBrewingStand(this.inventory, chestInventory)); } else if ("minecraft:beacon".equals(s)) { this.mc.displayGuiScreen(new GuiBeacon(this.inventory, chestInventory)); } else if (!"minecraft:dispenser".equals(s) && !"minecraft:dropper".equals(s)) { this.mc.displayGuiScreen(new GuiChest(this.inventory, chestInventory)); } else { this.mc.displayGuiScreen(new GuiDispenser(this.inventory, chestInventory)); } }
@Override public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { if(ID == MINI_CHEST) { return new GuiMiniChest(player.inventory, (TileEntityMiniChest) world.getTileEntity(new BlockPos(x, y, z))); } if(ID == COPPER_FURNACE) { return new GuiFurnace(player.inventory, (TileEntityCopperFurnace) world.getTileEntity(new BlockPos(x, y, z))); } return null; }
/** * Displays the GUI for interacting with a chest inventory. */ public void displayGUIChest(IInventory chestInventory) { String s = chestInventory instanceof IInteractionObject ? ((IInteractionObject)chestInventory).getGuiID() : "minecraft:container"; if ("minecraft:chest".equals(s)) { this.mc.displayGuiScreen(new GuiChest(this.inventory, chestInventory)); } else if ("minecraft:hopper".equals(s)) { this.mc.displayGuiScreen(new GuiHopper(this.inventory, chestInventory)); } else if ("minecraft:furnace".equals(s)) { this.mc.displayGuiScreen(new GuiFurnace(this.inventory, chestInventory)); } else if ("minecraft:brewing_stand".equals(s)) { this.mc.displayGuiScreen(new GuiBrewingStand(this.inventory, chestInventory)); } else if ("minecraft:beacon".equals(s)) { this.mc.displayGuiScreen(new GuiBeacon(this.inventory, chestInventory)); } else if (!"minecraft:dispenser".equals(s) && !"minecraft:dropper".equals(s)) { if ("minecraft:shulker_box".equals(s)) { this.mc.displayGuiScreen(new GuiShulkerBox(this.inventory, chestInventory)); } else { this.mc.displayGuiScreen(new GuiChest(this.inventory, chestInventory)); } } else { this.mc.displayGuiScreen(new GuiDispenser(this.inventory, chestInventory)); } }
@Override public Class<? extends GuiContainer> getGuiClass() { return GuiFurnace.class; }
public void func_146101_a(TileEntityFurnace p_146101_1_) { this.mc.displayGuiScreen(new GuiFurnace(this.inventory, p_146101_1_)); }
public void func_71042_a(TileEntityFurnace p_71042_1_) { this.field_71159_c.func_71373_a(new GuiFurnace(this.field_71071_by, p_71042_1_)); }
/** * Displays the furnace GUI for the passed in furnace entity. Args: tileEntityFurnace */ public void displayGUIFurnace(TileEntityFurnace par1TileEntityFurnace) { this.mc.displayGuiScreen(new GuiFurnace(this.inventory, par1TileEntityFurnace)); }