Adapted StructureAPI for 1.19
This commit is contained in:
parent
c7117fa180
commit
b7a74e971b
8 changed files with 102 additions and 42 deletions
|
@ -192,20 +192,9 @@ public class BiomeAPI {
|
|||
public static BCLBiome registerNetherBiome(BCLBiome biome) {
|
||||
registerBiome(biome);
|
||||
NETHER_BIOME_PICKER.addBiome(biome);
|
||||
Random random = new Random(biome.getID().hashCode());
|
||||
|
||||
//temperature, humidity, continentalness, erosion, depth, weirdness, offset
|
||||
Climate.ParameterPoint parameters = Climate.parameters(
|
||||
MHelper.randRange(-1.5F, 1.5F, random),
|
||||
MHelper.randRange(-1.5F, 1.5F, random),
|
||||
MHelper.randRange(-1.5F, 1.5F, random), //new in 1.18
|
||||
MHelper.randRange(-1.5F, 1.5F, random), //new in 1.18
|
||||
MHelper.randRange(-1.5F, 1.5F, random),
|
||||
MHelper.randRange(-1.5F, 1.5F, random),
|
||||
random.nextFloat()
|
||||
);
|
||||
ResourceKey<Biome> key = BiomeAPI.getBiomeKeyOrThrow(biome.getBiomeHolder());
|
||||
NetherBiomeData.addNetherBiome(key, parameters);
|
||||
|
||||
biome.forEachClimateParameter(p -> NetherBiomeData.addNetherBiome(key, p));
|
||||
return biome;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue