Class Terra121BiomeFilter
java.lang.Object
net.buildtheearth.terraminusminus.generator.biome.Terra121BiomeFilter
- All Implemented Interfaces:
IEarthBiomeFilter<Terra121BiomeFilter.Data>,IEarthAsyncPipelineStep<Terra121BiomeFilter.Data,ImmutableCompactArray<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(ChunkPos pos, ChunkBiomesBuilder builder, Terra121BiomeFilter.Data data) Bakes the retrieved data into the chunk data for the given column.protected Biomeclassify(double precipitation, double soil, double temperature) This monstrosity of a piece of garbage is copied directly from the original terra121 implementation ofEarthBiomeProvider.requestData(ChunkPos pos, GeneratorDatasets datasets, Bounds2d bounds, 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(ChunkPos pos, GeneratorDatasets datasets, Bounds2d bounds, CornerBoundingBox2d boundsGeo) throws 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<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:
OutOfProjectionBoundsException
-
bake
Description copied from interface:IEarthAsyncPipelineStepBakes the retrieved data into the chunk data for the given column.- Specified by:
bakein interfaceIEarthAsyncPipelineStep<Terra121BiomeFilter.Data,ImmutableCompactArray<Biome>, ChunkBiomesBuilder> - Parameters:
pos- the position of the columnbuilder- the builder for the cached chunk datadata- the data to bake
-
classify
This monstrosity of a piece of garbage is copied directly from the original terra121 implementation ofEarthBiomeProvider.
-