Examples of adjustExit()


Examples of org.bukkit.craftbukkit.CraftTravelAgent.adjustExit()

    Location exit = travelAgent.findOrCreate(startLocation);
    // Adjust the exit to make it suitable for players
    // Note: this will raise an NPE while trying to fire the PortalExit event
    // This is expected behavior
    try {
      travelAgent.adjustExit((Entity) findSpawnDummyEntity, exit, new Vector(0, 0, 0));
    } catch (NullPointerException ex) {
    }
    // Done!
    return exit;
  }
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.