MCPcopy Create free account
hub / github.com/Teneted/Tenet / isWorldLoaded

Method isWorldLoaded

src/main/java/org/bukkit/Location.java:79–86  ·  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

77 * @return true if is loaded, otherwise false
78 */
79 public boolean isWorldLoaded() {
80 if (this.world == null) {
81 return false;
82 }
83
84 World world = this.world.get();
85 return world != null && Bukkit.getWorld(world.getUID()) != null;
86 }
87
88 /**
89 * Gets the world that this location resides in

Callers

nothing calls this directly

Calls 3

getWorldMethod · 0.95
getUIDMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected