Package org.spout.vanilla.component.block.material.chest

Examples of org.spout.vanilla.component.block.material.chest.Chest


    WindowType type = args.popEnumValue("type", WindowType.class);
    args.assertCompletelyParsed();

    switch (type) {
      case CHEST:
        player.get(WindowHolder.class).openWindow(new ChestWindow(player, new Chest()));
        break;
      case CRAFTING_TABLE:
        player.get(WindowHolder.class).openWindow(new CraftingTableWindow(player));
        break;
      case FURNACE:
View Full Code Here


    return getOtherHalf(block) != null;
  }

  @Override
  public boolean onDestroy(Block block, Cause<?> cause) {
    Chest c = block.get(Chest.class);
    Inventory inventory;
    if (c != null) {
      inventory = c.getInventory();
    } else {
      return false;
    }
    boolean shouldD = super.onDestroy(block, cause);
    if (shouldD) {
View Full Code Here

TOP

Related Classes of org.spout.vanilla.component.block.material.chest.Chest

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.