Package mods.railcraft.common.fluids

Examples of mods.railcraft.common.fluids.TankManager


    }

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

        for (int var1 = 0; var1 < this.crafters.size(); ++var1) {
            ICrafting var2 = (ICrafting) this.crafters.get(var1);
View Full Code Here


    }

    @Override
    @SideOnly(Side.CLIENT)
    public void updateProgressBar(int id, int value) {
        TankManager tMan = tile.getTankManager();
        if (tMan != null)
            tMan.processGuiUpdate(id, value);

        switch (id) {
            case 10:
                tile.boiler.burnTime = value;
                break;
View Full Code Here

    }

    @Override
    public void addCraftingToCrafters(ICrafting icrafting) {
        super.addCraftingToCrafters(icrafting);
        TankManager tMan = loco.getTankManager();
        if (tMan != null) {
            tMan.initGuiData(this, icrafting, 0);
            tMan.initGuiData(this, icrafting, 1);
        }

        icrafting.sendProgressBarUpdate(this, 20, (int) Math.round(loco.boiler.burnTime));
        icrafting.sendProgressBarUpdate(this, 21, (int) Math.round(loco.boiler.currentItemBurnTime));
        icrafting.sendProgressBarUpdate(this, 22, (int) Math.round(loco.boiler.getHeat()));
View Full Code Here

    }

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

        for (int var1 = 0; var1 < this.crafters.size(); ++var1) {
            ICrafting var2 = (ICrafting) this.crafters.get(var1);
View Full Code Here

    @Override
    @SideOnly(Side.CLIENT)
    public void updateProgressBar(int id, int value) {
        super.updateProgressBar(id, value);
        TankManager tMan = loco.getTankManager();
        if (tMan != null)
            tMan.processGuiUpdate(id, value);

        switch (id) {
            case 20:
                loco.boiler.burnTime = value;
                break;
View Full Code Here

    @Override
    public void detectAndSendChanges() {
        super.detectAndSendChanges();

        TankManager tMan = tile.getTankManager();
        if (tMan != null)
            tMan.updateGuiData(this, crafters, 0);

        for (int i = 0; i < crafters.size(); i++) {
            ICrafting icrafting = (ICrafting) crafters.get(i);

            int cookTime = tile.getCookTime();
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.getCookTime());
        icrafting.sendProgressBarUpdate(this, 11, tile.getTotalCookTime());
    }
View Full Code Here

    }

    @Override
    @SideOnly(Side.CLIENT)
    public void updateProgressBar(int id, int data) {
        TankManager tMan = tile.getTankManager();
        if (tMan != null)
            tMan.processGuiUpdate(id, data);

        switch (id) {
            case 10:
                tile.setCookTime(data);
                break;
View Full Code Here

    }

    @Override
    public void detectAndSendChanges() {
        super.detectAndSendChanges();
        TankManager tMan = tile.getTankManager();
        if (tMan != null) {
            tMan.updateGuiData(this, crafters, 0);
        }
    }
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);
        }
    }
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.