added deset pyramids to .locate

This commit is contained in:
Cloudburst
2021-08-11 12:40:42 +02:00
parent 5a2bc0c64a
commit 0472a53804

View File

@@ -61,6 +61,11 @@ public class WorldGenUtils {
put(Feature.mineshaft, Collections.singletonList(
Blocks.RAIL
));
put(Feature.desert_pyramid, Arrays.asList(
Blocks.TNT,
Blocks.CHISELED_SANDSTONE,
Blocks.STONE_PRESSURE_PLATE
));
}};
private static final HashMap<Feature, List<Class<? extends Entity>>> FEATURE_ENTITIES = new HashMap<>(){{
@@ -103,7 +108,8 @@ public class WorldGenUtils {
end_city,
village,
mineshaft,
slime_chunk
slime_chunk,
desert_pyramid
}
public static BlockPos locateFeature(Feature feature, BlockPos center) {
@@ -257,6 +263,7 @@ public class WorldGenUtils {
case village -> { return Dimension.OVERWORLD; }
case mineshaft -> { return Dimension.OVERWORLD; }
case end_city -> { return Dimension.END; }
case desert_pyramid -> { return Dimension.OVERWORLD; }
default -> { return Dimension.OVERWORLD; }
}
}
@@ -272,6 +279,7 @@ public class WorldGenUtils {
case end_city -> { return new EndCity(version); }
case village -> { return new Village(version); }
case mineshaft -> { return new Mineshaft(version); }
case desert_pyramid -> { return new DesertPyramid(version); }
default -> { return null;}
}
}