net.minecraft.world.biome.source.BiomeSource Java Examples
The following examples show how to use
net.minecraft.world.biome.source.BiomeSource.
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: FeatureGenerator.java From fabric-carpet with MIT License | 5 votes |
private static Thing setupCustomStructure(StructureFeature structure, FeatureConfig conf, Biome biome, boolean wireOnly) { //if (1+2==3) // throw new RuntimeException("rebuild me"); return (w, p) -> { ChunkGenerator chunkgen = new OverworldChunkGenerator(w, w.getChunkManager().getChunkGenerator().getBiomeSource(), new OverworldChunkGeneratorConfig()) // BiomeSourceType.VANILLA_LAYERED.applyConfig((BiomeSourceType.VANILLA_LAYERED.getConfig())), ChunkGeneratorType.SURFACE.createSettings()) { @Override public <C extends FeatureConfig> C getStructureConfig(Biome biome_1, StructureFeature<C> structureFeature_1) { return (C)conf; } @Override public BiomeSource getBiomeSource() { return new VanillaLayeredBiomeSource(new VanillaLayeredBiomeSourceConfig(w.getLevelProperties())) { @Override public Biome getBiomeForNoiseGen(int i, int j, int k) { return biome; } @Override public Set<Biome> getBiomesInArea(int int_1, int int_2, int int_3, int int_4) { return Sets.newHashSet(biome); } }; } }; return ((StructureFeatureInterface)structure).plopAnywhere(w, p, chunkgen, wireOnly); }; }
Example #2
Source File: MoonBiomeSource.java From Galacticraft-Rewoven with MIT License | 4 votes |
@Override protected Codec<? extends BiomeSource> method_28442() { return CODEC; }
Example #3
Source File: MoonBiomeSource.java From Galacticraft-Rewoven with MIT License | 4 votes |
@Environment(EnvType.CLIENT) public BiomeSource withSeed(long seed) { return new MoonBiomeSource(seed, this.biomeSize); }
Example #4
Source File: HallowedChunkGeneratorType.java From the-hallow with MIT License | 4 votes |
@Override public HallowedChunkGenerator create(World world, BiomeSource biomeSource, HallowedChunkGeneratorConfig config) { return new HallowedChunkGenerator(world, biomeSource, config); }
Example #5
Source File: HallowedChunkGenerator.java From the-hallow with MIT License | 4 votes |
public HallowedChunkGenerator(IWorld world, BiomeSource biomeSource, HallowedChunkGeneratorConfig chunkGeneratorConfig) { super(world, biomeSource, 4, 8, 256, chunkGeneratorConfig, true); this.random.consume(2620); this.noiseSampler = new OctavePerlinNoiseSampler(this.random, 15, 0); }
Example #6
Source File: OverworldChunkGeneratorMixin.java From carpet-extra with GNU Lesser General Public License v3.0 | 4 votes |
public OverworldChunkGeneratorMixin(IWorld world, BiomeSource biomeSource, int verticalNoiseResolution, int horizontalNoiseResolution, int worldHeight, OverworldChunkGeneratorConfig config, boolean useSimplexNoise) { super(world, biomeSource, verticalNoiseResolution, horizontalNoiseResolution, worldHeight, config, useSimplexNoise); }
Example #7
Source File: FlatChunkGeneratorMixin.java From carpet-extra with GNU Lesser General Public License v3.0 | 4 votes |
public FlatChunkGeneratorMixin(IWorld world, BiomeSource biomeSource, FlatChunkGeneratorConfig config) { super(world, biomeSource, config); }
Example #8
Source File: OverworldChunkGeneratorMixin.java From fabric-carpet with MIT License | 4 votes |
public OverworldChunkGeneratorMixin(IWorld iWorld_1, BiomeSource biomeSource_1, int int_1, int int_2, int int_3, OverworldChunkGeneratorConfig chunkGeneratorConfig_1, boolean boolean_1) { super(iWorld_1, biomeSource_1, int_1, int_2, int_3, chunkGeneratorConfig_1, boolean_1); }
Example #9
Source File: FlatChunkGeneratorMixin.java From fabric-carpet with MIT License | 4 votes |
public FlatChunkGeneratorMixin(IWorld iWorld, BiomeSource biome, FlatChunkGeneratorConfig chunkGeneratorConfig) { super(iWorld, biome, chunkGeneratorConfig); }
Example #10
Source File: FloatingIslandsChunkGeneratorMixin.java From fabric-carpet with MIT License | 4 votes |
public FloatingIslandsChunkGeneratorMixin(IWorld iWorld_1, BiomeSource biomeSource_1, int int_1, int int_2, int int_3, FloatingIslandsChunkGeneratorConfig chunkGeneratorConfig_1, boolean boolean_1) { super(iWorld_1, biomeSource_1, int_1, int_2, int_3, chunkGeneratorConfig_1, boolean_1); }