@Override public float getSurfaceHeight() { return this.biomeBase.getBaseHeight(); }
public static boolean isTooHighForBuilding(Biome[] biomes) { return biomes[55].getBaseHeight() > 4 || biomes[54].getBaseHeight() > 4 || biomes[56].getBaseHeight() > 4 || biomes[5].getBaseHeight() > 4 || biomes[95].getBaseHeight() > 4; }
private static double calculateBiomeDistance(Biome a, Biome b) { if (a == b) { return -1000; } float dr = a.getRainfall() - b.getRainfall(); float dt = a.getDefaultTemperature() - b.getDefaultTemperature(); float dv = a.getHeightVariation() - b.getHeightVariation(); float dh = a.getBaseHeight() - b.getBaseHeight(); return Math.sqrt(dr * dr + dt * dt + dv * dv + dh * dh); }
if (blendBiome.getBaseHeight() > baseBiome.getBaseHeight()) blendedHeight *= 0.5F; rootBlended += blendBiome.getBaseHeight() * blendedHeight; totalBlendedHeight += blendedHeight;
@Override public int getHeight(World world, int x, int z) { Biome biome = world.getBiome(new BlockPos(x, 0, z)); if (biome == null) { return new WorldHeightScale().getHeight(world, x, z); } return this.calcBlockHeight(world, biome.getBaseHeight()); }
obj.addProperty("Resource Location", Biome.REGISTRY.getNameForObject(biome).toString()); obj.addProperty("Class", biome.getClass().getName()); obj.addProperty("Root Height", biome.getBaseHeight()); obj.addProperty("Height Variation", biome.getHeightVariation()); final boolean topNull = biome.topBlock == null || biome.topBlock.getBlock() == null || biome.topBlock.getBlock().delegate == null;
float h = 0.0f; for (Biome biome : biomes) { h += biome.getBaseHeight();
float f4 = 0.0F; Biome biome = biomes[k + 2 + (l + 2) * 10]; float biomeBaseHeight = biome.getBaseHeight(); float biome1BaseHeight = biome1.getBaseHeight();
for (int i2 = -b0; i2 <= b0; ++i2) { Biome biome = this.biomesForGeneration[j1 + 2 + (k1 + 2) * 10]; float baseHeight = biome.getBaseHeight(); float variation = biome.getHeightVariation();
float baseHeight = biomeDepthOffSet + biome.getBaseHeight() * biomeDepthWeight; float heightVariation = biomeScaleOffset + biome.getHeightVariation() * biomeScaleWeight;