Package org.spout.api.event.entity

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


  }

  @Override
  public void onCollided(EntityCollideEvent event) {
    if (event instanceof EntityCollideBlockEvent) {
      final EntityCollideBlockEvent collideBlockEvent = (EntityCollideBlockEvent) event;
      final Point point = new Point(collideBlockEvent.getContactInfo().getNormal(), getOwner().getWorld());
      final int x = point.getBlockX();
      final int y = point.getBlockX();
      final int z = point.getBlockX();
      final Block translated = getOwner().getWorld().getBlock(x, y, z).translate(BlockFace.TOP);
      final BlockMaterial material = translated.getMaterial();
View Full Code Here

TOP

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

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.