java.lang.Object
net.buildtheearth.terracore.worldgen.generator.data.HeightsBaker
All Implemented Interfaces:
IEarthDataBaker<double[]>, IEarthAsyncPipelineStep<double[],CachedChunkData,CachedChunkData.Builder>

public class HeightsBaker extends Object implements IEarthDataBaker<double[]>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    bake(net.buildtheearth.terracore.minecraft.ChunkPos pos, CachedChunkData.Builder builder, double[] heights)
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HeightsBaker

      public HeightsBaker()
  • Method Details

    • requestData

      public CompletableFuture<double[]> 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: IEarthAsyncPipelineStep
      Asynchronously fetches the data required to bake the data for the given column.
      Specified by:
      requestData in interface IEarthAsyncPipelineStep<double[],CachedChunkData,CachedChunkData.Builder>
      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

      public void bake(net.buildtheearth.terracore.minecraft.ChunkPos pos, CachedChunkData.Builder builder, double[] heights)
      Description copied from interface: IEarthAsyncPipelineStep
      Bakes the retrieved data into the chunk data for the given column.
      Specified by:
      bake in interface IEarthAsyncPipelineStep<double[],CachedChunkData,CachedChunkData.Builder>
      Parameters:
      pos - the position of the column
      builder - the builder for the cached chunk data
      heights - the data to bake