Interface IEarthAsyncPipelineStep<D,V,B extends IEarthAsyncDataBuilder<V>>
- All Known Subinterfaces:
IEarthBiomeFilter<D>,IEarthDataBaker<D>
- All Known Implementing Classes:
HeightsBaker,InitialBiomesBaker,NullIslandBaker,OSMBaker,Terra121BiomeFilter,TreeCoverBaker,UserOverrideBiomeFilter
public interface IEarthAsyncPipelineStep<D,V,B extends IEarthAsyncDataBuilder<V>>
-
Method Summary
Modifier and TypeMethodDescriptionvoidBakes the retrieved data into the chunk data for the given column.static <V,B extends IEarthAsyncDataBuilder<V>>
CompletableFuture<V> getFuture(net.buildtheearth.terracore.minecraft.ChunkPos pos, GeneratorDatasets datasets, IEarthAsyncPipelineStep<?, V, B>[] steps, Supplier<B> builderFactory) 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.
-
Method Details
-
getFuture
static <V,B extends IEarthAsyncDataBuilder<V>> CompletableFuture<V> getFuture(net.buildtheearth.terracore.minecraft.ChunkPos pos, GeneratorDatasets datasets, IEarthAsyncPipelineStep<?, V, B>[] steps, Supplier<B> builderFactory) -
requestData
CompletableFuture<D> 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 Asynchronously fetches the data required to bake the data for the given column.- 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
Bakes the retrieved data into the chunk data for the given column.- Parameters:
pos- the position of the columnbuilder- the builder for the cached chunk datadata- the data to bake
-