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

Method toBlockLocation

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

@return A new location where X/Y/Z are on the Block location (integer value of X/Y/Z)

()

Source from the content-addressed store, hash-verified

710 * @return A new location where X/Y/Z are on the Block location (integer value of X/Y/Z)
711 */
712 @NotNull
713 public Location toBlockLocation() {
714 Location blockLoc = clone();
715 blockLoc.setX(getBlockX());
716 blockLoc.setY(getBlockY());
717 blockLoc.setZ(getBlockZ());
718 return blockLoc;
719 }
720
721 /**
722 * @return The block key for this location's block location.

Callers

nothing calls this directly

Calls 7

cloneMethod · 0.95
setXMethod · 0.95
getBlockXMethod · 0.95
setYMethod · 0.95
getBlockYMethod · 0.95
setZMethod · 0.95
getBlockZMethod · 0.95

Tested by

no test coverage detected