Examples of TankManager


Examples of forestry.core.fluids.TankManager

  public MachineGenerator() {
    setHints(Config.hints.get("generator"));

    resourceTank = new FilteredTank(Defaults.PROCESSOR_TANK_CAPACITY, FuelManager.generatorFuel.keySet());
    tankManager = new TankManager(resourceTank);

    if (PluginIC2.instance.isAvailable()) {
      ic2EnergySource = new BasicSource(this, maxEnergy, 1);
    }
  }
View Full Code Here

Examples of forestry.core.fluids.TankManager

  private ItemStack pendingProduct;

  public MachineMoistener() {
    setHints(Config.hints.get("moistener"));
    resourceTank = new FilteredTank(Defaults.PROCESSOR_TANK_CAPACITY, FluidRegistry.WATER);
    tankManager = new TankManager(resourceTank);
  }
View Full Code Here

Examples of forestry.core.fluids.TankManager

    Fluid water = LiquidHelper.getFluid(Defaults.LIQUID_WATER);
    Fluid lava = LiquidHelper.getFluid(Defaults.LIQUID_LAVA);
    Fluid liquidIce = LiquidHelper.getFluid(Defaults.LIQUID_ICE);

    liquidTank = new FilteredTank(Defaults.PROCESSOR_TANK_CAPACITY, water, lava, liquidIce);
    tankManager = new TankManager(liquidTank);

    recipes = new HygroregulatorRecipe[] { new HygroregulatorRecipe(new FluidStack(water, 1), 1, 0.01f, -0.005f),
        new HygroregulatorRecipe(new FluidStack(lava, 1), 10, -0.01f, +0.005f),
        new HygroregulatorRecipe(new FluidStack(liquidIce, 1), 10, 0.02f, -0.01f) };
  }
View Full Code Here

Examples of mods.railcraft.common.fluids.TankManager

        int height = getTankHeight(ironTank);
        float yOffset = height / 2f;
        float vScale = height - 2;
        float hScale = ironTank.getPattern().getPatternWidthX() - 2;

        TankManager tankManager = ironTank.getTankManager();
        if (tankManager == null)
            return;
        StandardTank tank = tankManager.get(0);
        if (tank == null)
            return;

        FluidStack fluidStack = tank.getFluid();
        if (fluidStack != null && fluidStack.amount > 0 && fluidStack.getFluid() != null) {
View Full Code Here

Examples of mods.railcraft.common.fluids.TankManager

    }

    @Override
    protected void entityInit() {
        super.entityInit();
        tankManager = new TankManager();

        tankWater = new FilteredTank(FluidHelper.BUCKET_VOLUME * 6, Fluids.WATER.get());
        tankSteam = new FilteredTank(FluidHelper.BUCKET_VOLUME * 16, Fluids.STEAM.get());

        tankManager.add(tankWater);
View Full Code Here

Examples of mods.railcraft.common.fluids.TankManager

    }

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

        icrafting.sendProgressBarUpdate(this, 10, (int) Math.round(tile.boiler.burnTime));
        icrafting.sendProgressBarUpdate(this, 11, (int) Math.round(tile.boiler.currentItemBurnTime));
        icrafting.sendProgressBarUpdate(this, 12, (int) Math.round(tile.boiler.getHeat()));
View Full Code Here

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);
        }

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

Examples of mods.railcraft.common.fluids.TankManager

    }

    @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

Examples of mods.railcraft.common.fluids.TankManager

        return new SlotLiquidContainer(inv, id, x, y);
    }

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

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(from, maxDrain, doDrain);
        }
        return null;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.