Class EarthBiomeProvider.ChunkDataLoader
java.lang.Object
com.google.common.cache.CacheLoader<ChunkPos,CompletableFuture<ImmutableCompactArray<Biome>>>
net.buildtheearth.terraminusminus.generator.EarthBiomeProvider.ChunkDataLoader
- Enclosing class:
EarthBiomeProvider
public static class EarthBiomeProvider.ChunkDataLoader
extends com.google.common.cache.CacheLoader<ChunkPos,CompletableFuture<ImmutableCompactArray<Biome>>>
CacheLoader implementation for EarthBiomeProvider which asynchronously aggregates information from multiple datasets and stores it
in a ImmutableCompactArray for use by the generator.-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.cache.CacheLoader
com.google.common.cache.CacheLoader.InvalidCacheLoadException, com.google.common.cache.CacheLoader.UnsupportedLoadingOperationException -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final GeneratorDatasetsprotected final IEarthBiomeFilter<?>[] -
Constructor Summary
ConstructorsConstructorDescriptionChunkDataLoader(@NonNull EarthGeneratorSettings settings) ChunkDataLoader(@NonNull GeneratorDatasets datasets, @NonNull IEarthBiomeFilter<?>[] filters) Construct a ChunkDataLoader that uses custom biome filters which use custom datasets to provide the biomes per chunk -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class com.google.common.cache.CacheLoader
asyncReloading, from, from, loadAll, reload
-
Field Details
-
datasets
-
filters
-
-
Constructor Details
-
ChunkDataLoader
-
ChunkDataLoader
public ChunkDataLoader(@NonNull @NonNull GeneratorDatasets datasets, @NonNull @NonNull IEarthBiomeFilter<?>[] filters) Construct a ChunkDataLoader that uses custom biome filters which use custom datasets to provide the biomes per chunk- Parameters:
datasets- Datasets that the ChunkDataLoader should use to retreat datafilters- Biome filters which get executed for each chunk
-
-
Method Details
-
load
- Specified by:
loadin classcom.google.common.cache.CacheLoader<ChunkPos,CompletableFuture<ImmutableCompactArray<Biome>>>
-