mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
[Bleeding] Add updated interfaces for custom chunk generation. Addresses BUKKIT-874
This commit is contained in:
1 parent
796a9ba8fd
commit
97669f8d90
2 files changed
+144
-4
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user