Package net.mcft.copy.betterstorage.inventory

Examples of net.mcft.copy.betterstorage.inventory.InventoryStacks


          backpack.setTagCompound(compound);
        }
       
        if (contents != null) {
          // Add random items to the backpack.
          InventoryStacks inventory = new InventoryStacks(contents);
          // Add normal random backpack loot.
          WeightedRandomChestContent.generateChestContents(
              RandomUtils.random, randomBackpackItems, inventory, 20);
          // With a chance of 10%, add some random dungeon loot.
          if (RandomUtils.getDouble() < 0.1) {
View Full Code Here


    else if (backpackData.contents.length != size) {
      ItemStack[] newContents = new ItemStack[size];
      System.arraycopy(backpackData.contents, 0, newContents, 0, Math.min(size, backpackData.contents.length));
      backpackData.contents = newContents;
    }
    return new InventoryStacks(getBackpackName(), backpackData.contents);
  }
View Full Code Here

TOP

Related Classes of net.mcft.copy.betterstorage.inventory.InventoryStacks

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.