Examples of EnchantmentTableOpenEvent


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

*/
public class EnchantmentTable extends ViewedBlockComponent {
  @Override
  public boolean open(Player player) {
    EnchantmentTableInventory inventory = new EnchantmentTableInventory();
    EnchantmentTableOpenEvent event = player.getEngine().getEventManager().callEvent(new EnchantmentTableOpenEvent(this, inventory, player));
    if (!event.isCancelled()) {
      player.get(WindowHolder.class).openWindow(new EnchantmentTableWindow(player, this, inventory));
      return true;
    }
    return false;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.