Skip to content

Commit 73e9a40

Browse files
committed
Clarify Location#getExtent javadocs
See #2196
1 parent d7465c6 commit 73e9a40

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/main/java/org/spongepowered/api/world/Location.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,12 @@ public Location(E extent, int x, int y, int z) {
149149
/**
150150
* Gets the underlying extent.
151151
*
152-
* <p>Note: This can be null if the {@link Extent} is unloaded and garbage
153-
* collected.</p>
152+
* <p>If the referenced {@link Extent} has been unloaded, this will throw
153+
* an exception.</p>
154154
*
155155
* @return The extent, if available
156-
* @throws IllegalStateException If the {@link Extent} is null
156+
* @throws IllegalStateException If the {@link Extent} has been unloaded and
157+
* is no longer available.
157158
*/
158159
public E getExtent() {
159160
final E currentExtent = this.extent.get();

0 commit comments

Comments
 (0)