Package org.spout.vanilla.event.inventory

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


    return inventory;
  }

  @Override
  public boolean open(Player player) {
    ChestOpenEvent event = player.getEngine().getEventManager().callEvent(new ChestOpenEvent(this, player));
    if (!event.isCancelled()) {
      // Finally open the window
      player.get(WindowHolder.class).openWindow(new ChestWindow(player, this));
      SoundEffects.RANDOM_CHESTOPEN.playGlobal(player.getPhysics().getPosition());
      super.open(player);
      return true;
View Full Code Here

TOP

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

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.