Package buildcraft.core

Examples of buildcraft.core.StackAtPosition


      vx = dx / maxLifetime;
      vy = dy / maxLifetime;
      vz = dz / maxLifetime;

      if (stacksToDisplay.size() == 0) {
        StackAtPosition sPos = new StackAtPosition();
        sPos.stack = new ItemStack(BuildCraftBuilders.buildToolBlock);
        stacksToDisplay.add(sPos);
      }

      initialized = true;
View Full Code Here


    NBTTagList items = nbt.getTagList("items",
        Constants.NBT.TAG_COMPOUND);

    for (int i = 0; i < items.tagCount(); ++i) {
      StackAtPosition sPos = new StackAtPosition();
      sPos.stack = ItemStack.loadItemStackFromNBT(items
          .getCompoundTagAt(i));
      stacksToDisplay.add(sPos);
    }
View Full Code Here

  public void setStacksToDisplay(LinkedList<ItemStack> stacks) {
    if (stacks != null) {
      for (ItemStack s : stacks) {
        for (int i = 0; i < s.stackSize; ++i) {
          StackAtPosition sPos = new StackAtPosition();
          sPos.stack = s.copy();
          sPos.stack.stackSize = 1;
          stacksToDisplay.add(sPos);
        }
      }
View Full Code Here

TOP

Related Classes of buildcraft.core.StackAtPosition

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.