@@ -7,26 +7,26 @@ final class CraftHeightMap {
|
||||
private CraftHeightMap() {
|
||||
}
|
||||
|
||||
public static net.minecraft.server.HeightMap.Type toNMS(HeightMap bukkitHeightMap) {
|
||||
public static net.minecraft.world.level.levelgen.HeightMap.Type toNMS(HeightMap bukkitHeightMap) {
|
||||
switch (bukkitHeightMap) {
|
||||
case MOTION_BLOCKING_NO_LEAVES:
|
||||
return net.minecraft.server.HeightMap.Type.MOTION_BLOCKING_NO_LEAVES;
|
||||
return net.minecraft.world.level.levelgen.HeightMap.Type.MOTION_BLOCKING_NO_LEAVES;
|
||||
case OCEAN_FLOOR:
|
||||
return net.minecraft.server.HeightMap.Type.OCEAN_FLOOR;
|
||||
return net.minecraft.world.level.levelgen.HeightMap.Type.OCEAN_FLOOR;
|
||||
case OCEAN_FLOOR_WG:
|
||||
return net.minecraft.server.HeightMap.Type.OCEAN_FLOOR_WG;
|
||||
return net.minecraft.world.level.levelgen.HeightMap.Type.OCEAN_FLOOR_WG;
|
||||
case WORLD_SURFACE:
|
||||
return net.minecraft.server.HeightMap.Type.WORLD_SURFACE;
|
||||
return net.minecraft.world.level.levelgen.HeightMap.Type.WORLD_SURFACE;
|
||||
case WORLD_SURFACE_WG:
|
||||
return net.minecraft.server.HeightMap.Type.WORLD_SURFACE_WG;
|
||||
return net.minecraft.world.level.levelgen.HeightMap.Type.WORLD_SURFACE_WG;
|
||||
case MOTION_BLOCKING:
|
||||
return net.minecraft.server.HeightMap.Type.MOTION_BLOCKING;
|
||||
return net.minecraft.world.level.levelgen.HeightMap.Type.MOTION_BLOCKING;
|
||||
default:
|
||||
throw new EnumConstantNotPresentException(net.minecraft.server.HeightMap.Type.class, bukkitHeightMap.name());
|
||||
throw new EnumConstantNotPresentException(net.minecraft.world.level.levelgen.HeightMap.Type.class, bukkitHeightMap.name());
|
||||
}
|
||||
}
|
||||
|
||||
public static HeightMap fromNMS(net.minecraft.server.HeightMap.Type nmsHeightMapType) {
|
||||
public static HeightMap fromNMS(net.minecraft.world.level.levelgen.HeightMap.Type nmsHeightMapType) {
|
||||
switch (nmsHeightMapType) {
|
||||
case WORLD_SURFACE_WG:
|
||||
return HeightMap.WORLD_SURFACE_WG;
|
||||
|
||||
Reference in New Issue
Block a user