Package org.spout.vanilla.event.inventory

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


    return getData().get(VanillaData.DISPENSER_INVENTORY);
  }

  @Override
  public boolean open(Player player) {
    DispenserOpenEvent event = player.getEngine().getEventManager().callEvent(new DispenserOpenEvent(this, player));
    if (!event.isCancelled()) {
      player.get(WindowHolder.class).openWindow(new DispenserWindow(player, getInventory()));
      return true;
    }
    return false;
  }
View Full Code Here

TOP

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

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.