MCPcopy Index your code
hub / github.com/PaperMC/Paper / toHighestLocation

Method toHighestLocation

paper-api/src/main/java/org/bukkit/Location.java:748–751  ·  view source on GitHub ↗

Returns a copy of this location except with y = getWorld().getHighestBlockYAt(this.getBlockX(), this.getBlockZ()) @return A copy of this location except with y = getWorld().getHighestBlockYAt(this.getBlockX(), this.getBlockZ()) @throws NullPointerException if #getWorld() is null

()

Source from the content-addressed store, hash-verified

746 * @throws NullPointerException if {@link #getWorld()} is {@code null}
747 */
748 @NotNull
749 public Location toHighestLocation() {
750 return this.toHighestLocation(HeightMap.WORLD_SURFACE);
751 }
752
753 /**
754 * Returns a copy of this location except with y = getWorld().getHighestBlockYAt(this.getBlockX(), this.getBlockZ(), heightMap)

Callers

nothing calls this directly

Calls 4

cloneMethod · 0.95
setYMethod · 0.95
getWorldMethod · 0.95
getHighestBlockYAtMethod · 0.65

Tested by

no test coverage detected