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 Type
    Method
    Description
    void
    bake(net.buildtheearth.terracore.minecraft.ChunkPos pos, B builder, D data)
    Bakes 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 column
      datasets - the datasets to be used
      bounds - the bounding box of the chunk (in blocks)
      boundsGeo - the bounding box of the chunk (in world coordinates)
      Returns:
      a CompletableFuture which will be completed with the required data
      Throws:
      net.buildtheearth.terracore.geo.projection.OutOfProjectionBoundsException
    • bake

      void bake(net.buildtheearth.terracore.minecraft.ChunkPos pos, B builder, D data)
      Bakes the retrieved data into the chunk data for the given column.
      Parameters:
      pos - the position of the column
      builder - the builder for the cached chunk data
      data - the data to bake