public class ChunkSection extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CHUNK_SECTION_VERSION |
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 |
blockIndex(int x,
int y,
int z) |
static void |
checkBounds(int x,
int y,
int z) |
ChunkSection |
copy() |
BlockState |
getBlock(int x,
int y,
int z,
int layer) |
byte |
getBlockLight(int x,
int y,
int z) |
NibbleArray |
getBlockLightArray() |
BlockStorage[] |
getBlockStorageArray() |
byte |
getSkyLight(int x,
int y,
int z) |
NibbleArray |
getSkyLightArray() |
boolean |
isEmpty() |
void |
setBlock(int x,
int y,
int z,
int layer,
BlockState blockState) |
void |
setBlockLight(int x,
int y,
int z,
byte val) |
void |
setSkyLight(int x,
int y,
int z,
byte val) |
void |
writeToNetwork(io.netty.buffer.ByteBuf buffer) |
public static final int CHUNK_SECTION_VERSION
public static final int SIZE
public ChunkSection()
public ChunkSection(BlockStorage[] blockStorage)
public ChunkSection(BlockStorage[] storage, byte[] blockLight, byte[] skyLight)
public static int blockIndex(int x,
int y,
int z)
public static void checkBounds(int x,
int y,
int z)
public BlockState getBlock(int x, int y, int z, int layer)
public void setBlock(int x,
int y,
int z,
int layer,
BlockState blockState)
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()
Copyright © 2020. All rights reserved.