Search in sources :

Example 1 with GenLayerVoronoiZoom

use of net.minecraft.world.gen.layer.GenLayerVoronoiZoom in project Realistic-Terrain-Generation by Team-RTG.

the class RiverRemover method riverLess.

public GenLayer[] riverLess(GenLayer[] vanilla) {
    try {
        GenLayer riverMixParent = this.riverMixBiome.get((GenLayerRiverMix) vanilla[0]);
        if (riverMixParent == null) {
            return vanilla;
        }
        GenLayer withoutRivers = new GenLayerNoRivers(100L, riverMixParent);
        GenLayerVoronoiZoom genlayervoronoizoom = new GenLayerVoronoiZoom(10L, withoutRivers);
        return new GenLayer[] { withoutRivers, genlayervoronoizoom, withoutRivers };
    } catch (Exception e) {
        Logger.error("RiverRemover failed");
        return vanilla;
    }
}
Also used : GenLayerVoronoiZoom(net.minecraft.world.gen.layer.GenLayerVoronoiZoom) GenLayer(net.minecraft.world.gen.layer.GenLayer)

Example 2 with GenLayerVoronoiZoom

use of net.minecraft.world.gen.layer.GenLayerVoronoiZoom in project RFToolsDimensions by McJty.

the class GenericBiomeProvider method getModdedBiomeGenerators.

@Override
public GenLayer[] getModdedBiomeGenerators(WorldType worldType, long seed, GenLayer[] original) {
    if (dimensionInformation == null) {
        dimensionInformation = hackyDimensionInformation;
    }
    GenLayer[] layer = super.getModdedBiomeGenerators(worldType, seed, original);
    GenLayer rflayer = null;
    ControllerType type;
    DimensionInformation di = dimensionInformation;
    if (di == null) {
        di = hackyDimensionInformation;
    }
    type = di.getControllerType();
    switch(type) {
        case CONTROLLER_DEFAULT:
        case CONTROLLER_SINGLE:
            // Cannot happen
            break;
        case CONTROLLER_CHECKERBOARD:
            rflayer = new GenLayerCheckerboard(this, seed, layer[0]);
            break;
        case CONTROLLER_COLD:
        case CONTROLLER_WARM:
        case CONTROLLER_MEDIUM:
        case CONTROLLER_DRY:
        case CONTROLLER_WET:
        case CONTROLLER_FIELDS:
        case CONTROLLER_MOUNTAINS:
        case CONTROLLER_MAGICAL:
        case CONTROLLER_FOREST:
        case CONTROLLER_FILTERED:
            rflayer = new GenLayerFiltered(this, seed, layer[0], type);
            break;
    }
    GenLayerVoronoiZoom zoomLayer = new GenLayerVoronoiZoom(10L, rflayer);
    zoomLayer.initWorldGenSeed(seed);
    return new GenLayer[] { rflayer, zoomLayer, rflayer };
}
Also used : GenLayerVoronoiZoom(net.minecraft.world.gen.layer.GenLayerVoronoiZoom) GenLayer(net.minecraft.world.gen.layer.GenLayer) ControllerType(mcjty.rftoolsdim.dimensions.types.ControllerType) DimensionInformation(mcjty.rftoolsdim.dimensions.DimensionInformation)

Aggregations

GenLayer (net.minecraft.world.gen.layer.GenLayer)2 GenLayerVoronoiZoom (net.minecraft.world.gen.layer.GenLayerVoronoiZoom)2 DimensionInformation (mcjty.rftoolsdim.dimensions.DimensionInformation)1 ControllerType (mcjty.rftoolsdim.dimensions.types.ControllerType)1