Class Terra121BiomeFilter
java.lang.Object
net.buildtheearth.terracore.worldgen.generator.biome.Terra121BiomeFilter
- All Implemented Interfaces:
IEarthBiomeFilter<Terra121BiomeFilter.Data>,IEarthAsyncPipelineStep<Terra121BiomeFilter.Data,ImmutableCompactArray<net.buildtheearth.terracore.minecraft.Biome>, ChunkBiomesBuilder>
public class Terra121BiomeFilter
extends Object
implements IEarthBiomeFilter<Terra121BiomeFilter.Data>
Implementation of
IEarthBiomeFilter that emits the same Biome as legacy terra121.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbake(net.buildtheearth.terracore.minecraft.ChunkPos pos, ChunkBiomesBuilder builder, Terra121BiomeFilter.Data data) Bakes the retrieved data into the chunk data for the given column.protected net.buildtheearth.terracore.minecraft.Biomeclassify(double precipitation, double soil, double temperature) This monstrosity of a piece of garbage is copied directly from the original terra121 implementation ofEarthBiomeProvider.requestData(net.buildtheearth.terracore.minecraft.ChunkPos pos, GeneratorDatasets datasets, net.buildtheearth.terracore.geo.bvh.Bounds2d bounds, net.buildtheearth.terracore.geo.CornerBoundingBox2d boundsGeo) Asynchronously fetches the data required to bake the data for the given column.
-
Constructor Details
-
Terra121BiomeFilter
public Terra121BiomeFilter()
-
-
Method Details
-
requestData
public CompletableFuture<Terra121BiomeFilter.Data> requestData(net.buildtheearth.terracore.minecraft.ChunkPos pos, GeneratorDatasets datasets, net.buildtheearth.terracore.geo.bvh.Bounds2d bounds, net.buildtheearth.terracore.geo.CornerBoundingBox2d boundsGeo) throws net.buildtheearth.terracore.geo.projection.OutOfProjectionBoundsException Description copied from interface:IEarthAsyncPipelineStepAsynchronously fetches the data required to bake the data for the given column.- Specified by:
requestDatain interfaceIEarthAsyncPipelineStep<Terra121BiomeFilter.Data,ImmutableCompactArray<net.buildtheearth.terracore.minecraft.Biome>, ChunkBiomesBuilder> - Parameters:
pos- the position of the columndatasets- the datasets to be usedbounds- the bounding box of the chunk (in blocks)boundsGeo- the bounding box of the chunk (in world coordinates)- Returns:
- a
CompletableFuturewhich will be completed with the required data - Throws:
net.buildtheearth.terracore.geo.projection.OutOfProjectionBoundsException
-
bake
public void bake(net.buildtheearth.terracore.minecraft.ChunkPos pos, ChunkBiomesBuilder builder, Terra121BiomeFilter.Data data) Description copied from interface:IEarthAsyncPipelineStepBakes the retrieved data into the chunk data for the given column.- Specified by:
bakein interfaceIEarthAsyncPipelineStep<Terra121BiomeFilter.Data,ImmutableCompactArray<net.buildtheearth.terracore.minecraft.Biome>, ChunkBiomesBuilder> - Parameters:
pos- the position of the columnbuilder- the builder for the cached chunk datadata- the data to bake
-
classify
protected net.buildtheearth.terracore.minecraft.Biome classify(double precipitation, double soil, double temperature) This monstrosity of a piece of garbage is copied directly from the original terra121 implementation ofEarthBiomeProvider.
-