Package org.spout.vanilla.inventory.window.block

Examples of org.spout.vanilla.inventory.window.block.CraftingTableWindow


    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:
        player.get(WindowHolder.class).openWindow(new FurnaceWindow(player, null, new FurnaceInventory()));
        break;
      case DISPENSER:
View Full Code Here


      case CHEST:
        ChestInventory inventory = new ChestInventory(message.getSlots());
        player.get(WindowHolder.class).openWindow(new ChestWindow(player, inventory, title));
        break;
      case CRAFTING_TABLE:
        player.get(WindowHolder.class).openWindow(new CraftingTableWindow(player, title));
        break;
      case FURNACE:
        player.get(WindowHolder.class).openWindow(new FurnaceWindow(player, new FurnaceInventory(), title));
        break;
      case DISPENSER:
View Full Code Here

  public void onInteractBy(Entity entity, Block block, Action action, BlockFace face) {
    if (action == Action.RIGHT_CLICK) {
      if (!(entity instanceof Player)) {
        return;
      }
      entity.get(WindowHolder.class).openWindow(new CraftingTableWindow((Player) entity));
    }
  }
View Full Code Here

TOP

Related Classes of org.spout.vanilla.inventory.window.block.CraftingTableWindow

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.