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
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(ChunkPos pos, GeneratorDatasets datasets, IEarthAsyncPipelineStep<?, V, B>[] steps, Supplier<B> builderFactory) requestData(ChunkPos pos, GeneratorDatasets datasets, Bounds2d bounds, 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(ChunkPos pos, GeneratorDatasets datasets, IEarthAsyncPipelineStep<?, V, B>[] steps, Supplier<B> builderFactory) -
requestData
CompletableFuture<D> requestData(ChunkPos pos, GeneratorDatasets datasets, Bounds2d bounds, CornerBoundingBox2d boundsGeo) throws 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:
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
-