@Override public void initialiseClient() { this.setTitle(Machine.getMachine(this.getInventory()).getPackage().getDisplayName()); ControlPlayerInventory playerInventory = new ControlPlayerInventory(this); final ControlSlotArray.Builder slot = new ControlSlotArray.Builder(this, 43, 30, 5, 1); slot.create(AlvearyHatchery.SLOT_LARVAE); }
@Override @SideOnly(Side.CLIENT) public void initialiseClient() { this.setTitle(Machine.getMachine(this.getInventory()).getPackage().getDisplayName()); for (int i = 0; i < 36; ++i) { final int x = i % 12; final int y = i / 12; new ControlTankSlot(this, 16 + x * 18, 32 + y * 18, i); } new ControlPlayerInventory(this); } }
@Override public void initialiseClient() { this.setTitle(Machine.getMachine(this.getInventory()).getPackage().getDisplayName()); new ControlPlayerInventory(this); new ControlSlot.Builder(this, 79, 30).assign(0); }
@Override public void initialiseClient() { this.setTitle(Machine.getMachine(this.getInventory()).getPackage().getDisplayName()); new ControlPlayerInventory(this); new ControlSlot.Builder(this, 79, 30).assign(0); new ControlText(this, new Area(0, 52, getWidth(), 16), "Possible Mutagens:", TextJustification.MIDDLE_CENTER).setColor(5592405); final int size = AlvearyMutationHandler.getMutagens().size(); final int w = size * 18; NumberFormat numberFormat = NumberFormat.getNumberInstance(MinecraftForgeClient.getLocale()); if (size > 0) { int x = (getWidth() - w) / 2; for (final Pair<ItemStack, Float> mutagen : AlvearyMutationHandler.getMutagens()) { final ControlItemDisplay display = new ControlItemDisplay(this, x, 66); display.setItemStack(mutagen.getKey()); display.setTooltip(); Float multiplier = mutagen.getValue(); String format = numberFormat.format(multiplier); display.addTooltip(TextFormatting.GRAY + "Multiplier: " + format + "x"); x += 18; } } }
@Override @SideOnly(Side.CLIENT) public void initialiseClient() { this.setTitle(Machine.getMachine(this.getInventory()).getPackage().getDisplayName()); int x = 16; new ControlLiquidTank(this, x, 35, DistilleryMachine.TANK_INPUT); x += 34; new ControlDistilleryProgress(this, x, 32); x += 64; new ControlLiquidTank(this, x, 35, DistilleryMachine.TANK_OUTPUT); x += 34; new ControlEnergyBar(this, x, 36, 60, 16, Alignment.LEFT); new ControlPlayerInventory(this); new ControlErrorState(this, x + 21, 62); }
@Override @SideOnly(Side.CLIENT) public void initialiseClient() { this.setTitle(Machine.getMachine(this.getInventory()).getPackage().getDisplayName()); new ControlSlot.Builder(this, 24, 52).assign(FruitPressMachine.SLOT_FRUIT); new ControlLiquidTank(this, 99, 32, FruitPressMachine.TANK_OUTPUT); new ControlEnergyBar(this, 154, 32, 16, 60, Alignment.BOTTOM); new ControlPlayerInventory(this); new ControlErrorState(this, 128, 54); new ControlFruitPressProgress(this, 62, 24); ((Window) this.getTopParent()).getContainer().createClientSlot(InventoryType.MACHINE, FruitPressMachine.SLOT_CURRENT); }
@Override @SideOnly(Side.CLIENT) public void initialiseClient() { this.setTitle(Machine.getMachine(this.getInventory()).getPackage().getDisplayName()); new ControlSlot.Builder(this, 42, 43).assign(LumbermillMachine.SLOT_LOG); new ControlSlot.Builder(this, 148, 43).assign(LumbermillMachine.SLOT_PLANKS); new ControlSlot.Builder(this, 172, 28).assign(LumbermillMachine.SLOT_BARK); new ControlSlot.Builder(this, 172, 58).assign(LumbermillMachine.SLOT_SAWDUST); new ControlLumbermillProgress(this, 70, 43); new ControlLiquidTank(this, 16, 32, LumbermillMachine.TANK_WATER); new ControlEnergyBar(this, 8, 112, 16, 60, Alignment.BOTTOM); new ControlPlayerInventory(this); new ControlErrorState(this, 95, 73); } }
@Override @SideOnly(Side.CLIENT) public void initialiseClient() { this.setTitle(Machine.getMachine(this.getInventory()).getPackage().getDisplayName()); new ControlSlotArray.Builder(this, 42, 32, 1, 3).create(BreweryMachine.SLOT_RECIPE_GRAINS); new ControlSlot.Builder(this, 16, 41).assign(BreweryMachine.SLOT_RECIPE_INPUT); new ControlSlot.Builder(this, 105, 77).assign(BreweryMachine.SLOT_YEAST); new ControlLiquidTank(this, 76, 32, BreweryMachine.TANK_INPUT); new ControlLiquidTank(this, 162, 32, BreweryMachine.TANK_OUTPUT); new ControlEnergyBar(this, 196, 32, 16, 60, Alignment.BOTTOM); new ControlBreweryProgress(this, 110, 32); new ControlSlotArray.Builder(this, this.getSize().xPos() / 2 - 81, 104, 9, 1).create(BreweryMachine.SLOTS_INVENTORY); new ControlPlayerInventory(this); new ControlErrorState(this, 133, 79); } }
@Override @SideOnly(Side.CLIENT) public void initialiseClient() { this.setTitle(Machine.getMachine(this.getInventory()).getPackage().getDisplayName()); new ControlText(this, new Area(190, 36, 114, 10), I18N.localise(new ResourceLocation(Constants.DESIGN_MOD_ID, "gui.design")), TextJustification.TOP_CENTER).setColor(4473924); new Panel(this, 188, 48, 118, 126, MinecraftGUI.PanelType.GRAY); this.textEdit = new ControlTextEdit(this, 188, 178, 118, 12); final ControlScrollableContent scroll = new ControlScrollableContent(this, 190, 50, 114, 122, 12); scroll.setScrollableContent(this.tileSelect = new ControlTileSelect(scroll, 0, 0)); new ControlPlayerInventory(this).setPosition(new Point(14, 96)); new ControlErrorState(this, 76, 65); if (this.getInventory() != null) { new ControlSlot.Builder(this, 22, 34).assign(DesignerSlots.DESIGN_SLOT_1); new ControlSlot.Builder(this, 62, 34).assign(DesignerSlots.DESIGN_SLOT_2); new ControlSlot.Builder(this, 42, 64).assign(DesignerSlots.ADHESIVE_SLOT); new ControlRecipeSlot(this, 112, 34); } }
IInventory inventory = this.getInventory(); IMachine machine = Machine.getMachine(inventory); MachinePackage machinePackage = machine.getPackage(); this.setTitle(machinePackage.getDisplayName()); int x = 16;