Package mods.railcraft.common.fluids

Examples of mods.railcraft.common.fluids.TankManager


        return 0;
    }

    @Override
    public FluidStack drain(ForgeDirection from, int maxDrain, boolean doDrain) {
        TankManager tMan = getTankManager();
        if (tMan != null) return tMan.drain(TANK_WATER, maxDrain, doDrain);
        return null;
    }
View Full Code Here


        return null;
    }

    @Override
    public FluidTankInfo[] getTankInfo(ForgeDirection side) {
        TankManager tMan = getTankManager();
        if (tMan != null) return tMan.getTankInfo();
        return FakeTank.INFO;
    }
View Full Code Here

                if (clock % FluidHelper.BUCKET_FILL_TIME == 0)
                    FluidHelper.processContainers(tankManager.get(0), this, SLOT_INPUT, SLOT_OUTPUT);
            }

            TankManager tMan = getTankManager();
            if (tMan != null)
                tMan.outputLiquid(tileCache, LIQUID_OUTPUT_FILTER, LIQUID_OUTPUTS, 0, OUTPUT_RATE);
        }
    }
View Full Code Here

    public ContainerSteamOven(InventoryPlayer invPlayer, TileSteamOven tile) {
        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

    }

    @Override
    public void detectAndSendChanges() {
        super.detectAndSendChanges();
        TankManager tMan = tile.getTankManager();
        if (tMan != null) {
            tMan.updateGuiData(this, crafters, 0);
        }

        int cookTime = tile.cookTime;

        for (int i = 0; i < crafters.size(); i++) {
View Full Code Here

    }

    @Override
    public void addCraftingToCrafters(ICrafting icrafting) {
        super.addCraftingToCrafters(icrafting);
        TankManager tMan = tile.getTankManager();
        if (tMan != null) {
            tMan.initGuiData(this, icrafting, 0);
        }
        icrafting.sendProgressBarUpdate(this, 10, tile.cookTime);
    }
View Full Code Here

        icrafting.sendProgressBarUpdate(this, 10, tile.cookTime);
    }

    @Override
    public void updateProgressBar(int id, int value) {
        TankManager tMan = tile.getTankManager();
        if (tMan != null) {
            tMan.processGuiUpdate(id, value);
        }
        switch (id) {
            case 10:
                tile.cookTime = value;
                break;
View Full Code Here

        return 0;
    }

    @Override
    public FluidStack drain(ForgeDirection from, int maxDrain, boolean doDrain) {
        TankManager tMan = getTankManager();
        if (tMan != null)
            return tMan.drain(0, maxDrain, doDrain);
        return null;
    }
View Full Code Here

        return fluid == null || Fluids.CREOSOTE.is(fluid);
    }

    @Override
    public FluidTankInfo[] getTankInfo(ForgeDirection dir) {
        TankManager tMan = getTankManager();
        if (tMan != null)
            return tMan.getTankInfo();
        return FakeTank.INFO;
    }
View Full Code Here

        }
    }

    @Override
    protected void onMasterChanged() {
        TankManager tMan = getTankManager();
        if (tMan != null)
            tMan.get(0).setFluid(null);
    }
View Full Code Here

TOP

Related Classes of mods.railcraft.common.fluids.TankManager

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.