net.minecraft.world.gen.surfacebuilder.SurfaceBuilder Java Examples

The following examples show how to use net.minecraft.world.gen.surfacebuilder.SurfaceBuilder. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MoonCheeseForestBiome.java    From Galacticraft-Rewoven with MIT License 6 votes vote down vote up
public MoonCheeseForestBiome() {
    super((new Settings())
            .configureSurfaceBuilder(SurfaceBuilder.DEFAULT, new TernarySurfaceConfig(GalacticraftBlocks.MOON_TURF.getDefaultState(), GalacticraftBlocks.MOON_DIRT.getDefaultState(), GalacticraftBlocks.MOON_ROCK.getDefaultState()))
            .precipitation(Precipitation.NONE)
            .category(Category.NONE)
            .depth(0.03F)
            .scale(0.03F)
            .temperature(-100F)
            .downfall(0.005F)
            .effects(new BiomeEffects.Builder()
                    .waterColor(9937330)
                    .waterFogColor(11243183)
                    .fogColor(0)
                    .build())
            .parent(null));
    this.flowerFeatures.clear();
    this.addFeature(GenerationStep.Feature.TOP_LAYER_MODIFICATION, Feature.TREE.configure(GalacticraftFeatures.CHEESE_TREE_CONFIG));
}
 
Example #2
Source File: MoonHighlandsRocksBiome.java    From Galacticraft-Rewoven with MIT License 6 votes vote down vote up
public MoonHighlandsRocksBiome() {
    super((new Settings())
            .configureSurfaceBuilder(SurfaceBuilder.DEFAULT, MOON_HIGHLANDS_ROCK_CONFIG)
            .precipitation(Precipitation.NONE)
            .category(Category.NONE)
            .depth(0.65F)
            .scale(0.0065F)
            .temperature(-100.0F)
            .downfall(0.00002F)
            .effects(new BiomeEffects.Builder()
                    .waterColor(9937330)
                    .waterFogColor(11243183)
                    .fogColor(0)
                    .build())
            .parent(Constants.MOD_ID + ":" + Constants.Biomes.MOON_HIGHLANDS_ROCKS));
    this.addFeature(GenerationStep.Feature.TOP_LAYER_MODIFICATION, DecoratedFeature.FOREST_ROCK.configure(new ForestRockFeatureConfig(GalacticraftBlocks.MOON_ROCK.getDefaultState(), 6)).createDecoratedFeature(Decorator.WATER_LAKE.configure(new ChanceDecoratorConfig(4))));
}
 
Example #3
Source File: HallowedShoreBiome.java    From the-hallow with MIT License 5 votes vote down vote up
public HallowedShoreBiome() {
	super(new Settings().surfaceBuilder(new ConfiguredSurfaceBuilder<TernarySurfaceConfig>(SurfaceBuilder.DEFAULT, TAINTED_GRAVEL_CONFIG)).precipitation(Precipitation.NONE).category(Category.OCEAN).depth(0.02f).scale(0.025f).temperature(0.5f).downfall(0.8f).waterColor(0x3F76E4).waterFogColor(0x050533));
	
	this.addStructureFeature(Feature.MINESHAFT.configure(new MineshaftFeatureConfig(0.004D, MineshaftFeature.Type.NORMAL)));
	
	HallowedBiomeFeatures.addGrass(this);
	HallowedBiomeFeatures.addLakes(this);
	HallowedBiomeFeatures.addDefaultHallowedTrees(this);
}
 
Example #4
Source File: HallowedFeatures.java    From the-hallow with MIT License 4 votes vote down vote up
public static <C extends SurfaceConfig, F extends SurfaceBuilder<C>> F register(String name, F surfaceBuilder) {
	return Registry.register(Registry.SURFACE_BUILDER, TheHallow.id(name), surfaceBuilder);
}
 
Example #5
Source File: MixinSurfaceBuilder.java    From patchwork-api with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public IForgeRegistryEntry<SurfaceBuilder> setRegistryName(Identifier name) {
	this.registryName = name;

	return this;
}
 
Example #6
Source File: MixinSurfaceBuilder.java    From patchwork-api with GNU Lesser General Public License v2.1 4 votes vote down vote up
public Identifier getRegistryName() {
	SurfaceBuilder<?> surfaceBuilder = (SurfaceBuilder<?>) (Object) this;

	return Identifiers.getOrFallback(Registry.SURFACE_BUILDER, surfaceBuilder, registryName);
}
 
Example #7
Source File: MixinSurfaceBuilder.java    From patchwork-api with GNU Lesser General Public License v2.1 4 votes vote down vote up
public Class<SurfaceBuilder> getRegistryType() {
	return SurfaceBuilder.class;
}