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

Method isWorldLoaded

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

Checks if world in this location is present and loaded. @return true if is loaded, otherwise false

()

Source from the content-addressed store, hash-verified

85 * @return true if is loaded, otherwise false
86 */
87 public boolean isWorldLoaded() {
88 if (this.world == null) {
89 return false;
90 }
91
92 World world = this.world.get();
93 return world != null && world.equals(Bukkit.getWorld(world.getUID()));
94 }
95
96 /**
97 * Gets the world that this location resides in

Callers

nothing calls this directly

Calls 4

getWorldMethod · 0.95
getMethod · 0.65
equalsMethod · 0.65
getUIDMethod · 0.65

Tested by

no test coverage detected