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

Method toBlockKey

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

@return The block key for this location's block location. @see Block#getBlockKey(int, int, int) @deprecated only encodes y block ranges from -512 to 511 and represents an already changed implementation detail

()

Source from the content-addressed store, hash-verified

724 * @deprecated only encodes y block ranges from -512 to 511 and represents an already changed implementation detail
725 */
726 @Deprecated(since = "1.18.1")
727 public long toBlockKey() {
728 return Block.getBlockKey(getBlockX(), getBlockY(), getBlockZ());
729 }
730
731 /**
732 * @return A new location where X/Y/Z are the center of the block

Callers

nothing calls this directly

Calls 4

getBlockKeyMethod · 0.95
getBlockXMethod · 0.95
getBlockYMethod · 0.95
getBlockZMethod · 0.95

Tested by

no test coverage detected