mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-01 06:33:38 +01:00
Chunk section prep
This commit is contained in:
parent
5ad4ba285b
commit
bcf679b078
@ -396,6 +396,12 @@ public class NewMapChunkCache implements MapChunkCache {
|
||||
public double getRawBiomeRainfall(int x, int z) {
|
||||
return 0.0;
|
||||
}
|
||||
public boolean isSectionEmpty(int sy) {
|
||||
return true;
|
||||
}
|
||||
public int getTopNonEmptySection() {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@ -431,6 +437,12 @@ public class NewMapChunkCache implements MapChunkCache {
|
||||
public final int getHighestBlockYAt(int x, int z) {
|
||||
return 64;
|
||||
}
|
||||
public boolean isSectionEmpty(int sy) {
|
||||
return (sy < 4);
|
||||
}
|
||||
public int getTopNonEmptySection() {
|
||||
return 3;
|
||||
}
|
||||
}
|
||||
|
||||
private static class SpoutChunkSnapshot implements ChunkSnapshot {
|
||||
@ -467,6 +479,12 @@ public class NewMapChunkCache implements MapChunkCache {
|
||||
public final int getHighestBlockYAt(int x, int z) {
|
||||
return chunk.getHighestBlockYAt(x, z);
|
||||
}
|
||||
public boolean isSectionEmpty(int sy) {
|
||||
return chunk.isSectionEmpty(sy);
|
||||
}
|
||||
public int getTopNonEmptySection() {
|
||||
return chunk.getTopNonEmptySection();
|
||||
}
|
||||
}
|
||||
|
||||
private static final EmptyChunk EMPTY = new EmptyChunk();
|
||||
|
Loading…
Reference in New Issue
Block a user