Class EarthBiomeProvider.ChunkDataLoader

java.lang.Object
com.google.common.cache.CacheLoader<net.buildtheearth.terracore.minecraft.ChunkPos,CompletableFuture<ImmutableCompactArray<net.buildtheearth.terracore.minecraft.Biome>>>
net.buildtheearth.terracore.worldgen.generator.EarthBiomeProvider.ChunkDataLoader
Enclosing class:
EarthBiomeProvider

public static class EarthBiomeProvider.ChunkDataLoader extends com.google.common.cache.CacheLoader<net.buildtheearth.terracore.minecraft.ChunkPos,CompletableFuture<ImmutableCompactArray<net.buildtheearth.terracore.minecraft.Biome>>>
CacheLoader implementation for EarthBiomeProvider which asynchronously aggregates information from multiple datasets and stores it in a ImmutableCompactArray for use by the generator.
  • Field Details

  • Constructor Details

    • ChunkDataLoader

      public ChunkDataLoader(@NonNull @NonNull EarthGeneratorSettings settings)
    • 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 data
      filters - Biome filters which get executed for each chunk
  • Method Details