Package org.spout.api.event.entity

Examples of org.spout.api.event.entity.EntityInteractBlockEvent


    return rval;
  }

  @Override
  public void onInteractBy(Entity entity, Block block, Action type, BlockFace clickedFace) {
    EntityInteractBlockEvent event;
    if (entity instanceof Player) {
      event = new PlayerInteractBlockEvent((Player) entity, block, block.getPosition(), clickedFace, type);
    } else {
      event = new EntityInteractBlockEvent(entity, block, block.getPosition(), clickedFace);
    }
    if (Spout.getEventManager().callEvent(event).isCancelled()) {
      return;
    }
    super.onInteract(entity, block, type, clickedFace);
View Full Code Here

TOP

Related Classes of org.spout.api.event.entity.EntityInteractBlockEvent

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.