Class EarthBiomeProvider
java.lang.Object
net.buildtheearth.terraminusminus.generator.EarthBiomeProvider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCacheLoaderimplementation forEarthBiomeProviderwhich asynchronously aggregates information from multiple datasets and stores it in aImmutableCompactArrayfor use by the generator. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.google.common.cache.LoadingCache<ChunkPos, CompletableFuture<ImmutableCompactArray<Biome>>> -
Constructor Summary
ConstructorsConstructorDescriptionEarthBiomeProvider(com.google.common.cache.LoadingCache<ChunkPos, CompletableFuture<ImmutableCompactArray<Biome>>> cache) EarthBiomeProvider(@NonNull EarthGeneratorSettings settings) -
Method Summary
Modifier and TypeMethodDescriptionbooleanareBiomesViable(int x, int z, int radius, List<Biome> allowed) @Nullable BlockPosfindBiomePosition(int x, int z, int range, List<Biome> biomes, Random random) Deprecated.Biome[]Deprecated.this method is blocking, usegetBiomesForChunkAsync(ChunkPos)Biome[]Deprecated.this method is blocking, usegetBiomesForChunkAsync(ChunkPos)Deprecated.this method is blocking, usegetBiomesForChunkAsync(ChunkPos)Gets the biomes in the given chunk.Biome[]getBiomesForGeneration(Biome[] arr, int x, int z, int width, int height) Deprecated.this method is blocking, usegetBiomesForChunkAsync(ChunkPos)
-
Field Details
-
cache
protected final com.google.common.cache.LoadingCache<ChunkPos,CompletableFuture<ImmutableCompactArray<Biome>>> cache
-
-
Constructor Details
-
EarthBiomeProvider
-
EarthBiomeProvider
public EarthBiomeProvider(com.google.common.cache.LoadingCache<ChunkPos, CompletableFuture<ImmutableCompactArray<Biome>>> cache)
-
-
Method Details
-
getBiomesForChunk
Deprecated.this method is blocking, usegetBiomesForChunkAsync(ChunkPos) -
getBiomesForChunkAsync
Gets the biomes in the given chunk.- Parameters:
pos- the position of the chunk- Returns:
- a
CompletableFuturewhich will be completed with the biomes in the chunk
-
getBiome
Deprecated.this method is blocking, usegetBiomesForChunkAsync(ChunkPos) -
getBiomesForGeneration
Deprecated.this method is blocking, usegetBiomesForChunkAsync(ChunkPos) -
getBiomes
@Deprecated public Biome[] getBiomes(@Nullable @Nullable Biome[] oldBiomeList, int x, int z, int width, int depth) Deprecated.this method is blocking, usegetBiomesForChunkAsync(ChunkPos) -
getBiomes
@Deprecated public Biome[] getBiomes(@Nullable @Nullable Biome[] arr, int x, int z, int width, int length, boolean cacheFlag) Deprecated.this method is blocking, usegetBiomesForChunkAsync(ChunkPos) -
areBiomesViable
-
findBiomePosition
-
getBiomesForChunkAsync(ChunkPos)