Add dimension setting getters to World

By: Doc <nachito94@msn.com>
This commit is contained in:
CraftBukkit/Spigot 2021-08-11 18:57:16 +10:00
parent 72591f6038
commit 6d08059769

View File

@ -1876,6 +1876,51 @@ public class CraftWorld implements World {
return world.getMaxBuildHeight();
}
@Override
public int getLogicalHeight() {
return world.getDimensionManager().getLogicalHeight();
}
@Override
public boolean isNatural() {
return world.getDimensionManager().isNatural();
}
@Override
public boolean isBedWorks() {
return world.getDimensionManager().isBedWorks();
}
@Override
public boolean hasSkyLight() {
return world.getDimensionManager().hasSkyLight();
}
@Override
public boolean hasCeiling() {
return world.getDimensionManager().hasCeiling();
}
@Override
public boolean isPiglinSafe() {
return world.getDimensionManager().isPiglinSafe();
}
@Override
public boolean isRespawnAnchorWorks() {
return world.getDimensionManager().isRespawnAnchorWorks();
}
@Override
public boolean hasRaids() {
return world.getDimensionManager().hasRaids();
}
@Override
public boolean isUltraWarm() {
return world.getDimensionManager().isNether();
}
@Override
public int getSeaLevel() {
return world.getSeaLevel();