From bcf679b078a820d5e1e8908699ffece85da37561 Mon Sep 17 00:00:00 2001 From: Mike Primm Date: Wed, 15 Feb 2012 22:34:45 -0600 Subject: [PATCH] Chunk section prep --- .../org/dynmap/bukkit/NewMapChunkCache.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/main/java/org/dynmap/bukkit/NewMapChunkCache.java b/src/main/java/org/dynmap/bukkit/NewMapChunkCache.java index 2c8ca82f..0da13e7c 100644 --- a/src/main/java/org/dynmap/bukkit/NewMapChunkCache.java +++ b/src/main/java/org/dynmap/bukkit/NewMapChunkCache.java @@ -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();