Expand world key API
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user