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

Method getWorld

src/main/java/org/bukkit/Location.java:95–104  ·  view source on GitHub ↗

Gets the world that this location resides in @return World that contains this location, or null if it is not set @throws IllegalArgumentException when world is unloaded @see #isWorldLoaded()

()

Source from the content-addressed store, hash-verified

93 * @see #isWorldLoaded()
94 */
95 @Nullable
96 public World getWorld() {
97 if (this.world == null) {
98 return null;
99 }
100
101 World world = this.world.get();
102 Preconditions.checkArgument(world != null, "World unloaded");
103 return world;
104 }
105
106 /**
107 * Gets the chunk at the represented location

Callers 9

getChunkMethod · 0.95
getBlockMethod · 0.95
addMethod · 0.95
subtractMethod · 0.95
distanceSquaredMethod · 0.95
serializeMethod · 0.95
convertContextMethod · 0.95
CraftMetaCompassMethod · 0.95
teleportMethod · 0.95

Calls 1

getMethod · 0.65

Tested by

no test coverage detected