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

Method getWorld

paper-api/src/main/java/org/bukkit/Location.java:103–112  ·  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

101 * @see #isWorldLoaded()
102 */
103 @UndefinedNullability
104 public World getWorld() {
105 if (this.world == null) {
106 return null;
107 }
108
109 World world = this.world.get();
110 Preconditions.checkArgument(world != null, "World unloaded");
111 return world;
112 }
113
114 /**
115 * Gets the chunk at the represented location

Callers 15

getChunkMethod · 0.95
getBlockMethod · 0.95
addMethod · 0.95
subtractMethod · 0.95
distanceSquaredMethod · 0.95
isChunkLoadedMethod · 0.95
isGeneratedMethod · 0.95
toHighestLocationMethod · 0.95
createExplosionMethod · 0.95
getNearbyEntitiesMethod · 0.95
serializeMethod · 0.95

Calls 1

getMethod · 0.65

Tested by

no test coverage detected