public class ChunkSection extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
SIZE |
| Constructor and Description |
|---|
ChunkSection() |
ChunkSection(BlockStorage[] blockStorage) |
ChunkSection(BlockStorage[] storage,
byte[] blockLight,
byte[] skyLight) |
| Modifier and Type | Method and Description |
|---|---|
static int |
blockPosition(int x,
int y,
int z) |
ChunkSection |
copy() |
byte |
getBlockLight(int x,
int y,
int z) |
NibbleArray |
getBlockLightArray() |
BlockStorage[] |
getBlockStorageArray() |
int |
getFullBlock(int x,
int y,
int z,
int layer) |
byte |
getSkyLight(int x,
int y,
int z) |
NibbleArray |
getSkyLightArray() |
boolean |
isEmpty() |
void |
setBlockLight(int x,
int y,
int z,
byte val) |
void |
setFullBlock(int x,
int y,
int z,
int layer,
int fullBlock) |
void |
setSkyLight(int x,
int y,
int z,
byte val) |
void |
writeToNetwork(io.netty.buffer.ByteBuf buffer) |
public static final int SIZE
public ChunkSection()
public ChunkSection(BlockStorage[] blockStorage)
public ChunkSection(BlockStorage[] storage, byte[] blockLight, byte[] skyLight)
public int getFullBlock(int x,
int y,
int z,
int layer)
public void setFullBlock(int x,
int y,
int z,
int layer,
int fullBlock)
public byte getSkyLight(int x,
int y,
int z)
public void setSkyLight(int x,
int y,
int z,
byte val)
public byte getBlockLight(int x,
int y,
int z)
public void setBlockLight(int x,
int y,
int z,
byte val)
public void writeToNetwork(io.netty.buffer.ByteBuf buffer)
public NibbleArray getSkyLightArray()
public NibbleArray getBlockLightArray()
public BlockStorage[] getBlockStorageArray()
public boolean isEmpty()
public ChunkSection copy()
public static int blockPosition(int x,
int y,
int z)
Copyright © 2019 GeyserMC. All rights reserved.