Examples of toLocation()


Examples of org.bukkit.util.Vector.toLocation()

            Vector center = new BlockVector(rx, ry - i, rz);
            for (int x = -radius; x <= radius; x++) {
                for (int z = -radius; z <= radius; z++) {
                    Vector position = center.clone().add(new Vector(x, 0, z));
                    if (center.distance(position) <= radius + 0.5 - i) {
                        lakeBlocks.add(world.getBlockAt(position.toLocation(world)));
                    }
                }
            }
        }
View Full Code Here

Examples of org.bukkit.util.Vector.toLocation()

public class ConfigUtil {
  public static Location getLocationFromVector(Configuration node, String vectorPath, String worldPath) {
    Vector vector = node.getVector(vectorPath);
    String worldName = node.getString(worldPath);
    World world = Bukkit.getWorld(worldName);
    return vector.toLocation(world);
  }
}
View Full Code Here

Examples of org.bukkit.util.Vector.toLocation()

      _Entry<BlockData, Vector> entry;
      Set<BlockData> newSearch = Sets.newHashSet(master.searching);
      while ((entry = master.found.poll()) != null)
      {
        Vector vec = entry.getValue();
        if (master.team.canEnter(vec.toLocation(master.team.getMatch().getWorld())))
        {
          BlockData data = entry.getKey();
          newSearch.remove(data);
          // No safety - read-once
          master.results.put(data, vec);
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.