Package org.spout.vanilla.event.inventory

Examples of org.spout.vanilla.event.inventory.AnvilOpenEvent


      return;
    }

    Player player = (Player) entity;
    AnvilInventory inventory = new AnvilInventory();
    AnvilOpenEvent event = player.getEngine().getEventManager().callEvent(new AnvilOpenEvent(block, inventory, player));
    if (!event.isCancelled()) {
      player.get(WindowHolder.class).openWindow(new AnvilWindow(player, new AnvilInventory(), block));
    }
  }
View Full Code Here

TOP

Related Classes of org.spout.vanilla.event.inventory.AnvilOpenEvent

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.