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

Method isGenerated

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

Checks if a Chunk has been generated at this location. @return true if a chunk has been generated at this location

()

Source from the content-addressed store, hash-verified

620 * @return true if a chunk has been generated at this location
621 */
622 public boolean isGenerated() {
623 World world = this.getWorld();
624 Preconditions.checkNotNull(world, "Location has no world!");
625 return world.isChunkGenerated(locToBlock(x) >> 4, locToBlock(z) >> 4);
626 }
627
628 /**
629 * Sets the position of this Location and returns itself

Callers

nothing calls this directly

Calls 3

getWorldMethod · 0.95
isChunkGeneratedMethod · 0.95
locToBlockMethod · 0.95

Tested by

no test coverage detected