public class ExtendedBlockStorage
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private NibbleArray |
blockLight |
private int |
blockRefCount |
private BlockStateContainer |
data |
private NibbleArray |
skyLight |
private int |
tickRefCount |
private int |
yBase |
Constructor and Description |
---|
ExtendedBlockStorage(int y,
boolean storeSkylight) |
Modifier and Type | Method and Description |
---|---|
IBlockState |
get(int x,
int y,
int z) |
NibbleArray |
getBlockLight() |
int |
getBlockLight(int x,
int y,
int z) |
BlockStateContainer |
getData() |
NibbleArray |
getSkyLight() |
int |
getSkyLight(int x,
int y,
int z) |
int |
getYLocation() |
boolean |
isEmpty() |
boolean |
needsRandomTick() |
void |
recalculateRefCounts() |
void |
set(int x,
int y,
int z,
IBlockState state) |
void |
setBlockLight(int x,
int y,
int z,
int value) |
void |
setBlockLight(NibbleArray newBlocklightArray) |
void |
setSkyLight(int x,
int y,
int z,
int value) |
void |
setSkyLight(NibbleArray newSkylightArray) |
private final int yBase
private int blockRefCount
private int tickRefCount
private final BlockStateContainer data
private NibbleArray blockLight
private NibbleArray skyLight
public IBlockState get(int x, int y, int z)
public void set(int x, int y, int z, IBlockState state)
public boolean isEmpty()
public boolean needsRandomTick()
public int getYLocation()
public void setSkyLight(int x, int y, int z, int value)
public int getSkyLight(int x, int y, int z)
public void setBlockLight(int x, int y, int z, int value)
public int getBlockLight(int x, int y, int z)
public void recalculateRefCounts()
public BlockStateContainer getData()
public NibbleArray getBlockLight()
public NibbleArray getSkyLight()
public void setBlockLight(NibbleArray newBlocklightArray)
public void setSkyLight(NibbleArray newSkylightArray)