Checks if world in this location is present and loaded. @return true if is loaded, otherwise false
()
| 85 | * @return true if is loaded, otherwise false |
| 86 | */ |
| 87 | public boolean isWorldLoaded() { |
| 88 | if (this.world == null) { |
| 89 | return false; |
| 90 | } |
| 91 | |
| 92 | World world = this.world.get(); |
| 93 | return world != null && world.equals(Bukkit.getWorld(world.getUID())); |
| 94 | } |
| 95 | |
| 96 | /** |
| 97 | * Gets the world that this location resides in |