Class OSMBaker
java.lang.Object
net.buildtheearth.terracore.worldgen.generator.data.OSMBaker
- All Implemented Interfaces:
IEarthDataBaker<net.buildtheearth.terracore.geo.bvh.BVH<VectorGeometry>[]>,IEarthAsyncPipelineStep<net.buildtheearth.terracore.geo.bvh.BVH<VectorGeometry>[],CachedChunkData, CachedChunkData.Builder>
public class OSMBaker
extends Object
implements IEarthDataBaker<net.buildtheearth.terracore.geo.bvh.BVH<VectorGeometry>[]>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbake(net.buildtheearth.terracore.minecraft.ChunkPos pos, CachedChunkData.Builder builder, net.buildtheearth.terracore.geo.bvh.BVH<VectorGeometry>[] regions) Bakes the retrieved data into the chunk data for the given column.CompletableFuture<net.buildtheearth.terracore.geo.bvh.BVH<VectorGeometry>[]> 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.
-
Constructor Details
-
OSMBaker
public OSMBaker()
-
-
Method Details
-
requestData
public CompletableFuture<net.buildtheearth.terracore.geo.bvh.BVH<VectorGeometry>[]> 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<net.buildtheearth.terracore.geo.bvh.BVH<VectorGeometry>[],CachedChunkData, CachedChunkData.Builder> - 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, CachedChunkData.Builder builder, net.buildtheearth.terracore.geo.bvh.BVH<VectorGeometry>[] regions) Description copied from interface:IEarthAsyncPipelineStepBakes the retrieved data into the chunk data for the given column.- Specified by:
bakein interfaceIEarthAsyncPipelineStep<net.buildtheearth.terracore.geo.bvh.BVH<VectorGeometry>[],CachedChunkData, CachedChunkData.Builder> - Parameters:
pos- the position of the columnbuilder- the builder for the cached chunk dataregions- the data to bake
-