Expand world key API

This commit is contained in:
Jake Potrebic
2021-01-06 00:34:10 -08:00
parent bcd78c9bf2
commit 07c1829d7f
5 changed files with 134 additions and 5 deletions

View File

@@ -18,7 +18,7 @@ import org.jetbrains.annotations.Nullable;
* A RegionAccessor gives access to getting, modifying and spawning {@link Biome}, {@link BlockState} and {@link Entity},
* as well as generating some basic structures.
*/
public interface RegionAccessor {
public interface RegionAccessor extends Keyed { // Paper
/**
* Gets the {@link Biome} at the given {@link Location}.
@@ -452,5 +452,14 @@ public interface RegionAccessor {
*/
@NotNull
io.papermc.paper.world.MoonPhase getMoonPhase();
/**
* Get the world's key
*
* @return the world's key
*/
@NotNull
@Override
NamespacedKey getKey();
// Paper end
}