mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-02-16 10:30:42 +00:00
use ChunkLocalCachingBiomeProvider
This commit is contained in:
@@ -99,4 +99,8 @@ public interface BiomeProvider {
|
||||
default CachingBiomeProvider caching(WorldProperties worldProperties) {
|
||||
return caching(worldProperties.getMinHeight(), worldProperties.getMaxHeight());
|
||||
}
|
||||
|
||||
default ChunkLocalCachingBiomeProvider caching(WorldProperties worldProperties, int chunkX, int chunkZ) {
|
||||
return new ChunkLocalCachingBiomeProvider(this, worldProperties, chunkX, chunkZ);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ import java.util.Optional;
|
||||
*/
|
||||
public class ChunkLocalCachingBiomeProvider extends CachingBiomeProvider {
|
||||
private final Biome[][][] cache;
|
||||
private final Column<Biome>[][] columnCache = new Column<>[16][16];
|
||||
private final Column<Biome>[][] columnCache = new Column[16][16];
|
||||
|
||||
private final int chunkX;
|
||||
private final int chunkZ;
|
||||
|
||||
Reference in New Issue
Block a user