Examples of BiomeGenerator


Examples of com.khorn.terraincontrol.generator.biome.BiomeGenerator

        final int maxYSections = this.heightCap / 8 + 1;
        final int usedYSections = this.heightScale / 8 + 1;

        WorldConfig worldConfig = configProvider.getWorldConfig();
        BiomeGenerator biomeGenerator = this.localWorld.getBiomeGenerator();
        if (worldConfig.improvedRivers)
            this.riverArray = biomeGenerator.getBiomesUnZoomed(this.riverArray, chunkX * 4 - maxSmoothRadius,
                    chunkZ * 4 - maxSmoothRadius, NOISE_MAX_X + maxSmoothDiameter, NOISE_MAX_Z + maxSmoothDiameter, OutputType.ONLY_RIVERS);

        if (biomeGenerator.canGenerateUnZoomed())
        {
            this.biomeArray = biomeGenerator.getBiomesUnZoomed(this.biomeArray, chunkX * 4 - maxSmoothRadius,
                    chunkZ * 4 - maxSmoothRadius, NOISE_MAX_X + maxSmoothDiameter, NOISE_MAX_Z + maxSmoothDiameter,
                    OutputType.DEFAULT_FOR_WORLD);
        } else
        {
            this.biomeArray = biomeGenerator.getBiomes(this.biomeArray, chunkX * CHUNK_X_SIZE, chunkZ * CHUNK_Z_SIZE, CHUNK_X_SIZE,
                    CHUNK_Z_SIZE, OutputType.DEFAULT_FOR_WORLD);
        }

        generateTerrainNoise(chunkX * four, 0, chunkZ * four, maxYSections, usedYSections);

        // Now that the raw terrain is generated, replace raw biome array with
        // fine-tuned one.
        if (biomeGenerator.canGenerateUnZoomed())
        {
            this.biomeArray = biomeGenerator.getBiomes(this.biomeArray, chunkX * CHUNK_X_SIZE, chunkZ * CHUNK_Z_SIZE, CHUNK_X_SIZE,
                    CHUNK_Z_SIZE, OutputType.DEFAULT_FOR_WORLD);
        }

        final double oneEight = 0.125D;
        final double oneFourth = 0.25D;
View Full Code Here

Examples of com.khorn.terraincontrol.generator.biome.BiomeGenerator

        }
    }

    private void oldBiomeFactor(int x, int z, int i4, int ySections, double noiseHeight)
    {
        BiomeGenerator unwrapped = localWorld.getBiomeGenerator().unwrap();
        if (unwrapped instanceof OldBiomeGenerator)
        {
            OldBiomeGenerator oldBiomeGenerator = (OldBiomeGenerator) unwrapped;
            int index = z * 48 + 17 + x * 3;
            double product = oldBiomeGenerator.oldTemperature1[index] * oldBiomeGenerator.oldWetness[index];
 
View Full Code Here

Examples of com.khorn.terraincontrol.generator.biome.BiomeGenerator

        this.worldTC = new ForgeWorld(world.getSaveHandler().getWorldDirectoryName());
        WorldSettings config = new WorldSettings(worldDirectory, worldTC, false);
        this.worldTC.Init(world, config);

        Class<? extends BiomeGenerator> biomeGenClass = worldTC.getConfigs().getWorldConfig().biomeMode;
        BiomeGenerator biomeManager = TerrainControl.getBiomeModeManager().createCached(biomeGenClass, worldTC);
        WorldChunkManager chunkManager = createWorldChunkManager(worldTC, biomeManager);
        this.worldTC.setBiomeManager(biomeManager);

        return chunkManager;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.