Gets the chunk @return The chunk at this position @throws IllegalStateException if the world is not loaded
()
| 88 | * @throws IllegalStateException if the world is not loaded |
| 89 | */ |
| 90 | public Chunk getChunk() { |
| 91 | World world = this.getWorld(); |
| 92 | if (world == null) { |
| 93 | throw new IllegalStateException("World " + this.world + " is not loaded"); |
| 94 | } |
| 95 | return world.getChunkAt(x, z); |
| 96 | } |
| 97 | |
| 98 | @Override |
| 99 | public int hashCode() { |
no test coverage detected