Package mods.railcraft.common.gui.widgets

Examples of mods.railcraft.common.gui.widgets.FluidGaugeWidget


    public ContainerBoilerSolid(InventoryPlayer inventoryplayer, TileBoilerFireboxSolid tile) {
        super(tile);
        this.tile = tile;

        addWidget(new FluidGaugeWidget(tile.getTankManager().get(0), 116, 23, 176, 0, 16, 47));
        addWidget(new FluidGaugeWidget(tile.getTankManager().get(1), 17, 23, 176, 0, 16, 47));

        addWidget(new IndicatorWidget(tile.boiler.heatIndicator, 40, 25, 176, 61, 6, 43));

        addSlot(input = new SlotWater(tile, 0, 143, 21));
        addSlot(output = new SlotOutput(tile, 1, 143, 56));
View Full Code Here


    public ContainerEngineSteamHobby(InventoryPlayer inventoryplayer, TileEngineSteamHobby tile) {
        super(tile);
        this.tile = tile;

        addWidget(new FluidGaugeWidget(tile.getTankManager().get(0), 17, 23, 176, 0, 16, 47));
        addWidget(new FluidGaugeWidget(tile.getTankManager().get(1), 107, 23, 176, 0, 16, 47));

        addWidget(new IndicatorWidget(tile.boiler.heatIndicator, 40, 25, 176, 61, 6, 43));
        addWidget(new IndicatorWidget(tile.getEnergyIndicator(), 94, 25, 182, 61, 6, 43));

        addSlot(new SlotFuel(tile, 0, 62, 39));
View Full Code Here

    public ContainerBoilerLiquid(InventoryPlayer inventoryplayer, TileBoilerFireboxLiquid tile) {
        super(tile);
        this.tile = tile;

        addWidget(new FluidGaugeWidget(tile.getTankManager().get(0), 116, 23, 176, 0, 16, 47));
        addWidget(new FluidGaugeWidget(tile.getTankManager().get(1), 17, 23, 176, 0, 16, 47));
        addWidget(new FluidGaugeWidget(tile.getTankManager().get(2), 89, 23, 176, 0, 16, 47));

        addWidget(new IndicatorWidget(tile.boiler.heatIndicator, 40, 25, 176, 61, 6, 43));

        addSlot(new SlotLiquidContainerFilled(tile, 0, 143, 21));
        addSlot(new SlotOutput(tile, 1, 143, 56));
View Full Code Here

    public ContainerTankCart(InventoryPlayer inventoryplayer, EntityCartTank cart) {
        super(cart);
        this.tank = cart;

        addWidget(new FluidGaugeWidget(cart.getTankManager().get(0), 35, 23, 176, 0, 16, 47));

        addSlot(new SlotLiquidFilter(cart.getFilter(), 0, 71, 39));
        addSlot(input = new SlotLiquidContainer(cart.getInvLiquids(), 0, 116, 21));
        addSlot(new SlotOutput(cart.getInvLiquids(), 1, 116, 56));
View Full Code Here

    public ContainerLiquidLoader(InventoryPlayer inventoryplayer, TileLiquidLoader tile) {
        super(tile);
        this.tile = tile;

        addWidget(new FluidGaugeWidget(tile.getTankManager().get(0), 17, 23, 176, 0, 16, 47));

        addSlot(new SlotMinecartFilter(tile.getCartFilters(), 0, 62, 39));
        addSlot(new SlotMinecartFilter(tile.getCartFilters(), 1, 80, 39));
        addSlot(input = new SlotLiquidContainerFilled(tile, 0, 134, 21));
        addSlot(output = new SlotOutput(tile, 1, 134, 56));
View Full Code Here

    public ContainerLocomotiveSteamSolid(InventoryPlayer playerInv, EntityLocomotiveSteamSolid loco) {
        super(playerInv, loco, 205);
        this.loco = loco;

        addWidget(new FluidGaugeWidget(loco.getTankManager().get(0), 116, 23, 176, 0, 16, 47));
        addWidget(new FluidGaugeWidget(loco.getTankManager().get(1), 17, 23, 176, 0, 16, 47));

        addWidget(new IndicatorWidget(loco.boiler.heatIndicator, 40, 25, 176, 61, 6, 43));

        addSlot(new SlotWaterLimited(loco, 0, 143, 21));
        addSlot(new SlotOutput(loco, 1, 143, 56));
View Full Code Here

    public ContainerLiquidUnloader(InventoryPlayer inventoryplayer, TileLiquidUnloader tile) {
        super(tile);
        this.tile = tile;

        addWidget(new FluidGaugeWidget(tile.getTankManager().get(0), 17, 23, 176, 0, 16, 47));

        addSlot(new SlotMinecartFilter(tile.getCartFilters(), 0, 44, 39));
        addSlot(new SlotMinecartFilter(tile.getCartFilters(), 1, 62, 39));
        addSlot(new SlotLiquidFilter(tile.getLiquidFilter(), 0, 89, 39));
        addSlot(input = new SlotLiquidContainerEmpty(tile, 0, 134, 21));
View Full Code Here

    public ContainerCokeOven(InventoryPlayer inventoryplayer, TileCokeOven tile) {
        super(tile);
        lastCookTime = 0;
        this.tile = tile;

        addWidget(new FluidGaugeWidget(tile.getTankManager().get(0), 90, 24, 176, 0, 48, 47));

        addSlot(new SlotCokeOven(tile, 0, 16, 43));
        addSlot(new SlotOutput(tile, 1, 62, 43));
        addSlot(new SlotOutput(tile, 2, 149, 57));
        addSlot(new SlotLiquidContainerEmpty(tile, 3, 149, 22));
View Full Code Here

        super(tile.getInventory());
        this.tile = tile;

        StandardTank tank = tile.getTank();
        if (tank != null) {
            addWidget(new FluidGaugeWidget(tank, 35, 23, 176, 0, 48, 47));
        }

        addSlot(input = tile.getInputSlot(tile.getInventory(), 0, 116, 21));
        addSlot(new SlotOutput(tile.getInventory(), 1, 116, 56));
        for (int i = 0; i < 3; i++) {
View Full Code Here

        super(tile);
        this.tile = tile;

        TankManager tMan = tile.getTankManager();
        if (tMan != null) {
            addWidget(new FluidGaugeWidget(tMan.get(0), 94, 20, 176, 0, 16, 47));
        }

        for (int i = 0; i < 3; i++) {
            for (int k = 0; k < 3; k++) {
                addSlot(new SlotSmelting(tile, i * 3 + k, 8 + k * 18, 17 + i * 18));
 
View Full Code Here

TOP

Related Classes of mods.railcraft.common.gui.widgets.FluidGaugeWidget

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.