MCPcopy Create free account
hub / github.com/VolmitSoftware/Adapt / getWorld

Method getWorld

src/main/java/com/volmit/adapt/util/Cuboid.java:213–219  ·  view source on GitHub ↗

Get the Cuboid's world. @return the World object representing this Cuboid's world @throws IllegalStateException if the world is not loaded

()

Source from the content-addressed store, hash-verified

211 * @throws IllegalStateException if the world is not loaded
212 */
213 public World getWorld() {
214 World world = Bukkit.getWorld(worldName);
215 if (world == null) {
216 throw new IllegalStateException("world '" + worldName + "' is not loaded");
217 }
218 return world;
219 }
220
221 /**
222 * Get the size of this Cuboid along the X axis

Callers 15

flattenMethod · 0.95
getLowerNEMethod · 0.95
getUpperSWMethod · 0.95
getCenterMethod · 0.95
cornersMethod · 0.95
getRelativeBlockMethod · 0.95
getChunksMethod · 0.95
iteratorMethod · 0.95
isWorldBlacklistedMethod · 0.80
onMethod · 0.80
takeSpatialMethod · 0.80
onTickMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected