Class UserOverrideBiomeFilter
java.lang.Object
net.buildtheearth.terracore.worldgen.generator.biome.UserOverrideBiomeFilter
- All Implemented Interfaces:
IEarthBiomeFilter<UserOverrideBiomeFilter.BiomeBoundingBox>,IEarthAsyncPipelineStep<UserOverrideBiomeFilter.BiomeBoundingBox,ImmutableCompactArray<net.buildtheearth.terracore.minecraft.Biome>, ChunkBiomesBuilder>
public class UserOverrideBiomeFilter
extends Object
implements IEarthBiomeFilter<UserOverrideBiomeFilter.BiomeBoundingBox>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final net.buildtheearth.terracore.geo.bvh.BVH<UserOverrideBiomeFilter.BiomeBoundingBox> -
Constructor Summary
ConstructorsConstructorDescriptionUserOverrideBiomeFilter(@NonNull net.buildtheearth.terracore.geo.projection.GeographicProjection projection) -
Method Summary
Modifier and TypeMethodDescriptionvoidbake(net.buildtheearth.terracore.minecraft.ChunkPos pos, ChunkBiomesBuilder builder, UserOverrideBiomeFilter.BiomeBoundingBox bbox) Bakes the retrieved data into the chunk data for the given column.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.
-
Field Details
-
bvh
protected final net.buildtheearth.terracore.geo.bvh.BVH<UserOverrideBiomeFilter.BiomeBoundingBox> bvh
-
-
Constructor Details
-
UserOverrideBiomeFilter
public UserOverrideBiomeFilter(@NonNull @NonNull net.buildtheearth.terracore.geo.projection.GeographicProjection projection)
-
-
Method Details
-
requestData
public CompletableFuture<UserOverrideBiomeFilter.BiomeBoundingBox> 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<UserOverrideBiomeFilter.BiomeBoundingBox,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, UserOverrideBiomeFilter.BiomeBoundingBox bbox) Description copied from interface:IEarthAsyncPipelineStepBakes the retrieved data into the chunk data for the given column.- Specified by:
bakein interfaceIEarthAsyncPipelineStep<UserOverrideBiomeFilter.BiomeBoundingBox,ImmutableCompactArray<net.buildtheearth.terracore.minecraft.Biome>, ChunkBiomesBuilder> - Parameters:
pos- the position of the columnbuilder- the builder for the cached chunk databbox- the data to bake
-