Package mods.railcraft.common.util.inventory

Examples of mods.railcraft.common.util.inventory.StandaloneInventory


    protected final StandaloneInventory inv;
    private final String guiTag;

    public TileMultiBlockInventory(String guiTag, int invSize, List<? extends MultiBlockPattern> patterns) {
        super(patterns);
        inv = new StandaloneInventory(invSize, (IInventory) this);
        this.guiTag = guiTag;
    }
View Full Code Here


public abstract class TileMachineItem extends TileMachineBase implements IInventory {

    private StandaloneInventory inv;

    protected TileMachineItem() {
        inv = new StandaloneInventory(0, (IInventory) this);
    }
View Full Code Here

    protected TileMachineItem() {
        inv = new StandaloneInventory(0, (IInventory) this);
    }

    protected TileMachineItem(int invSize) {
        inv = new StandaloneInventory(invSize, (IInventory) this);
    }
View Full Code Here

    protected TileMachineItem(int invSize) {
        inv = new StandaloneInventory(invSize, (IInventory) this);
    }

    protected void setInventorySize(int invSize) {
        this.inv = new StandaloneInventory(invSize, (IInventory) this);
    }
View Full Code Here

        addValidItem(BlockRailcraftSlab.getItem(EnumBlockMaterial.ICE));
        addValidItem(Items.snowball);
    }

    public void compactInventory(ItemStack backpack) {
        StandaloneInventory inv = new StandaloneInventory(45);
        NBTTagCompound data = backpack.getTagCompound();
        if (data == null) return;
        InvTools.readInvFromNBT(inv, INV_TAG, data);
        int numSnowballs = InvTools.countItems(inv, SNOWBALL);
        if (numSnowballs >= 16) {
View Full Code Here

    protected IInventory invWaterInput = new InventoryMapper(this, SLOT_LIQUID_INPUT, 1);
    protected IInventory invWaterOutput = new InventoryMapper(this, SLOT_LIQUID_OUTPUT, 1, false);

    protected TileBoilerFirebox(int invSize) {
        super();
        inventory = new StandaloneInventory(invSize, (IInventory) this);
        boiler = new SteamBoiler(tankWater, tankSteam);
        boiler.setTile(this);
    }
View Full Code Here

    private final StandaloneInventory inv;
    private EnumColor color = EnumColor.WHITE;

    protected TileTankBase() {
        super(patterns);
        inv = new StandaloneInventory(2, "gui.tank.iron", this);
        tankManager.add(tank);
    }
View Full Code Here

TOP

Related Classes of mods.railcraft.common.util.inventory.StandaloneInventory

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.