Added ChunkSnapShot improvements. Thanks mikeprimm!

Added support for biome data to chunk snapshot
Added method for returning empty chunk snapshot (for ungenerated chunks)
This commit is contained in:
EvilSeph
2011-06-17 09:23:19 -04:00
parent 105cc5393c
commit 10fb5dc843
3 changed files with 170 additions and 7 deletions

View File

@@ -23,6 +23,7 @@ import org.bukkit.util.Vector;
import org.bukkit.BlockChangeDelegate;
import org.bukkit.Bukkit;
import org.bukkit.generator.ChunkGenerator;
import org.bukkit.ChunkSnapshot;
import org.bukkit.Location;
import org.bukkit.TreeType;
import org.bukkit.World;
@@ -760,4 +761,8 @@ public class CraftWorld implements World {
throw new IllegalArgumentException("Cannot spawn an entity for " + clazz.getName());
}
public ChunkSnapshot getEmptyChunkSnapshot(int x, int z, boolean includeBiome, boolean includeBiomeTempRain) {
return CraftChunk.getEmptyChunkSnapshot(x, z, this, includeBiome, includeBiomeTempRain);
}
}