Package org.spout.vanilla.inventory.block

Examples of org.spout.vanilla.inventory.block.DispenserInventory


        break;
      case FURNACE:
        player.get(WindowHolder.class).openWindow(new FurnaceWindow(player, null, new FurnaceInventory()));
        break;
      case DISPENSER:
        player.get(WindowHolder.class).openWindow(new DispenserWindow(player, new DispenserInventory()));
        break;
      case ENCHANTMENT_TABLE:
        player.get(WindowHolder.class).openWindow(new EnchantmentTableWindow(player, null, new EnchantmentTableInventory()));
        break;
      case BREWING_STAND:
View Full Code Here


    // Place another loot chest
    placeObject(9, -3, 10, chestObject);
  }

  private void fillDispenser(int xx, int yy, int zz) {
    final DispenserInventory inventory = getBlock(xx, yy, zz).get(Dispenser.class).getInventory();
    final Random random = getRandom();
    inventory.add(random.nextInt(inventory.size()), new ItemStack(VanillaMaterials.ARROW, random.nextInt(8) + 2));
  }
View Full Code Here

        break;
      case FURNACE:
        player.get(WindowHolder.class).openWindow(new FurnaceWindow(player, new FurnaceInventory(), title));
        break;
      case DISPENSER:
        player.get(WindowHolder.class).openWindow(new DispenserWindow(player, new DispenserInventory(), title));
        break;
      case ENCHANTMENT_TABLE:
        player.get(WindowHolder.class).openWindow(new EnchantmentTableWindow(player, new EnchantmentTableInventory(), title));
        break;
      case BREWING_STAND:
View Full Code Here

TOP

Related Classes of org.spout.vanilla.inventory.block.DispenserInventory

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.