diff options
author | Mike Primm <mike@primmhome.com> | 2012-03-08 23:57:26 -0600 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-03-09 11:46:06 -0500 |
commit | 97669f8d90d782091b5b6bc3d1c724229c8797ec (patch) | |
tree | 5eaa7dddbe0938e9c3e59af34a779656df7e63aa /src/main/java/net/minecraft/server/ChunkSection.java | |
parent | 796a9ba8fd228bcf79a9ba93df1c35c89b8f3aa0 (diff) | |
download | craftbukkit-97669f8d90d782091b5b6bc3d1c724229c8797ec.tar craftbukkit-97669f8d90d782091b5b6bc3d1c724229c8797ec.tar.gz craftbukkit-97669f8d90d782091b5b6bc3d1c724229c8797ec.tar.lz craftbukkit-97669f8d90d782091b5b6bc3d1c724229c8797ec.tar.xz craftbukkit-97669f8d90d782091b5b6bc3d1c724229c8797ec.zip |
[Bleeding] Add updated interfaces for custom chunk generation. Addresses BUKKIT-874
Diffstat (limited to 'src/main/java/net/minecraft/server/ChunkSection.java')
-rw-r--r-- | src/main/java/net/minecraft/server/ChunkSection.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/ChunkSection.java b/src/main/java/net/minecraft/server/ChunkSection.java index c96e146e..6478d275 100644 --- a/src/main/java/net/minecraft/server/ChunkSection.java +++ b/src/main/java/net/minecraft/server/ChunkSection.java @@ -19,6 +19,20 @@ public class ChunkSection { this.g = new NibbleArray(this.d.length, 4); } + // CraftBukkit start + public ChunkSection(int y, byte[] blkData, byte[] extBlkData) { + this.a = y; + this.d = blkData; + if (extBlkData != null) { + this.e = new NibbleArray(extBlkData, 4); + } + this.f = new NibbleArray(this.d.length, 4); + this.h = new NibbleArray(this.d.length, 4); + this.g = new NibbleArray(this.d.length, 4); + this.d(); + } + // CraftBukkit end + public int a(int i, int j, int k) { int l = this.d[j << 8 | k << 4 | i] & 255; |