Examples of StackAtPosition


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

Examples of buildcraft.core.StackAtPosition

    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

Examples of buildcraft.core.StackAtPosition

  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
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.