Add methods to CLIPlatform

This commit is contained in:
dordsor21 2021-12-28 22:58:25 +00:00
parent f236934a39
commit f6319d36a1
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -26,6 +26,7 @@ import com.sk89q.worldedit.entity.Player;
import com.sk89q.worldedit.extension.platform.AbstractPlatform;
import com.sk89q.worldedit.extension.platform.Capability;
import com.sk89q.worldedit.extension.platform.Preference;
import com.sk89q.worldedit.internal.Constants;
import com.sk89q.worldedit.util.SideEffect;
import com.sk89q.worldedit.world.DataFixer;
import com.sk89q.worldedit.world.World;
@ -169,6 +170,16 @@ class CLIPlatform extends AbstractPlatform {
return (_a, _b, _c) -> NullRelighter.INSTANCE;
}
@Override
public int getVersionMinY() {
return dataVersion >= Constants.DATA_VERSION_MC_1_18 ? -64 : 0;
}
@Override
public int getVersionMaxY() {
return dataVersion >= Constants.DATA_VERSION_MC_1_18 ? 319 : 255;
}
public void addWorld(World world) {
worlds.add(world);
}