Package buildcraft.core.inventory

Examples of buildcraft.core.inventory.SimpleInventory


    super (i);
  }

  @Override
  public void rotateLeft(SchematicTile slot, IBuilderContext context) {
    SimpleInventory inv = new SimpleInventory(54, "Filters", 1);
    SimpleInventory newInv = new SimpleInventory(54, "Filters", 1);
    inv.readFromNBT(slot.tileNBT);

    for (int dir = 0; dir <= 5; ++dir) {
      ForgeDirection r = ForgeDirection.values()[dir].getRotation(ForgeDirection.UP);

      for (int s = 0; s < 9; ++s) {
        newInv.setInventorySlotContents(r.ordinal() * 9 + s, inv.getStackInSlot(dir * 9 + s));
      }
    }

    newInv.writeToNBT(slot.tileNBT);
  }
View Full Code Here


public abstract class TileEngineWithInventory extends TileEngine implements IInventory {

  private final SimpleInventory inv;

  public TileEngineWithInventory(int invSize) {
    inv = new SimpleInventory(invSize, "Engine", 64);
  }
View Full Code Here

TOP

Related Classes of buildcraft.core.inventory.SimpleInventory

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.