use of net.minecraft.world.gen.layer.GenLayer 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;
}
}
use of net.minecraft.world.gen.layer.GenLayer 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 };
}
Aggregations