Expand world key API

This commit is contained in:
Jake Potrebic
2021-01-06 00:34:04 -08:00
parent a032df8427
commit d0185eb56e
3 changed files with 28 additions and 3 deletions
@@ -538,6 +538,11 @@ public final class CraftMagicNumbers implements UnsafeValues {
public int nextEntityId() {
return net.minecraft.world.entity.Entity.nextEntityId();
}
@Override
public String getMainLevelName() {
return ((net.minecraft.server.dedicated.DedicatedServer) net.minecraft.server.MinecraftServer.getServer()).getProperties().levelName;
}
// Paper end
/**