public class BiomeCache
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
BiomeCache.Block |
Modifier and Type | Field and Description |
---|---|
private java.util.List<BiomeCache.Block> |
cache |
private it.unimi.dsi.fastutil.longs.Long2ObjectMap<BiomeCache.Block> |
cacheMap |
private long |
lastCleanupTime |
private BiomeProvider |
provider |
Constructor and Description |
---|
BiomeCache(BiomeProvider provider) |
Modifier and Type | Method and Description |
---|---|
void |
cleanupCache() |
Biome |
getBiome(int x,
int z,
Biome defaultValue) |
Biome[] |
getCachedBiomes(int x,
int z) |
BiomeCache.Block |
getEntry(int x,
int z) |
private final BiomeProvider provider
private long lastCleanupTime
private final it.unimi.dsi.fastutil.longs.Long2ObjectMap<BiomeCache.Block> cacheMap
private final java.util.List<BiomeCache.Block> cache
public BiomeCache(BiomeProvider provider)
public BiomeCache.Block getEntry(int x, int z)
public void cleanupCache()
public Biome[] getCachedBiomes(int x, int z)