Package mods.railcraft.common.util.inventory.wrappers

Examples of mods.railcraft.common.util.inventory.wrappers.InventoryMapper


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

        tankManager.add(tankWater);
        tankManager.add(tankSteam);

        invWaterInput = new InventoryMapper(this, SLOT_LIQUID_INPUT, 1);
        invWaterInput.setStackSizeLimit(4);

        boiler = new SteamBoiler(tankWater, tankSteam);
        boiler.setEfficiencyModifier(RailcraftConfig.steamLocomotiveEfficiencyMultiplier());
        boiler.setTicksPerCycle(TICKS_PER_BOILER_CYCLE);
View Full Code Here


    private final InventoryMapper invBuffer;

    public TileItemLoader() {
        super();
        setInventorySize(9);
        invBuffer = new InventoryMapper(this, false);
    }
View Full Code Here

    }, InventorySorter.SIZE_DECENDING);

    public TileItemUnloader() {
        super();
        setInventorySize(9);
        invBuffer = new InventoryMapper(getInventory(), false);
    }
View Full Code Here

                blockMapping.put('H', highPressure ? EnumMachineBeta.BOILER_TANK_HIGH_PRESSURE.ordinal() : EnumMachineBeta.BOILER_TANK_LOW_PRESSURE.ordinal());
                TileEntity tile = pattern.placeStructure(world, x, y, z, RailcraftBlocks.getBlockMachineBeta(), blockMapping);
                if (tile instanceof TileBoilerFireboxSolid) {
                    TileBoilerFireboxSolid master = (TileBoilerFireboxSolid) tile;
                    master.tankWater.setFluid(Fluids.WATER.get(water));
                    IInventory invFuel = new InventoryMapper(master.inventory, SLOT_BURN, 4);
                    for (ItemStack stack : fuel) {
                        InvTools.moveItemStack(stack, invFuel);
                    }
                }
                return;
View Full Code Here

    private final InventoryMapper invOutput;
    protected ForgeDirection direction = ForgeDirection.NORTH;

    public TileTradeStation() {
        setInventorySize(16);
        invInput = new InventoryMapper(this, 0, 10);
        invOutput = new InventoryMapper(this, 10, 6, false);
    }
View Full Code Here

    private final IInventory invStock;

    public TileDispenserTrain() {
        super();
        setInventorySize(BUFFER_SIZE);
        invStock = new InventoryMapper(this);
    }
View Full Code Here

TOP

Related Classes of mods.railcraft.common.util.inventory.wrappers.InventoryMapper

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.