Package org.spout.api.inventory

Examples of org.spout.api.inventory.Inventory


  @Override
  public boolean onDestroy(Block block, Cause<?> cause) {
    BrewingStand brewingStand = block.get(BrewingStand.class);
    // Drop items
    Inventory inventory = brewingStand.getInventory();
    Point position = block.getPosition();
    for (ItemStack item : inventory) {
      if (item == null) {
        continue;
      }
View Full Code Here


   *
   * @param itemstack Contains the item to drop.
   * @return The current component.
   */
  public DeathDrops addDrop(ItemStack itemstack) {
    Inventory dropInventory = getOwner().getData().get(VanillaData.DROP_INVENTORY);
    dropInventory.add(itemstack);
    return this;
  }
View Full Code Here

TOP

Related Classes of org.spout.api.inventory.Inventory

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.