Chunk section prep
This commit is contained in:
parent
5ad4ba285b
commit
bcf679b078
1 changed files with 18 additions and 0 deletions
|
|
@ -396,6 +396,12 @@ public class NewMapChunkCache implements MapChunkCache {
|
||||||
public double getRawBiomeRainfall(int x, int z) {
|
public double getRawBiomeRainfall(int x, int z) {
|
||||||
return 0.0;
|
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) {
|
public final int getHighestBlockYAt(int x, int z) {
|
||||||
return 64;
|
return 64;
|
||||||
}
|
}
|
||||||
|
public boolean isSectionEmpty(int sy) {
|
||||||
|
return (sy < 4);
|
||||||
|
}
|
||||||
|
public int getTopNonEmptySection() {
|
||||||
|
return 3;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static class SpoutChunkSnapshot implements ChunkSnapshot {
|
private static class SpoutChunkSnapshot implements ChunkSnapshot {
|
||||||
|
|
@ -467,6 +479,12 @@ public class NewMapChunkCache implements MapChunkCache {
|
||||||
public final int getHighestBlockYAt(int x, int z) {
|
public final int getHighestBlockYAt(int x, int z) {
|
||||||
return chunk.getHighestBlockYAt(x, 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();
|
private static final EmptyChunk EMPTY = new EmptyChunk();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue