Checks if world in this location is present and loaded. @return true if is loaded, otherwise false
()
| 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 |