public class ExtendedBlockStorage
extends java.lang.Object
Constructor and Description |
---|
ExtendedBlockStorage(int y,
boolean storeSkylight) |
Modifier and Type | Method and Description |
---|---|
IBlockState |
get(int x,
int y,
int z) |
NibbleArray |
getBlockLight()
Returns the NibbleArray instance containing Block-light data.
|
int |
getBlockLight(int x,
int y,
int z)
Gets the saved Block-light value in the extended block storage structure.
|
BlockStateContainer |
getData() |
NibbleArray |
getSkyLight()
Returns the NibbleArray instance containing Sky-light data.
|
int |
getSkyLight(int x,
int y,
int z)
Gets the saved Sky-light value in the extended block storage structure.
|
int |
getYLocation()
Returns the Y location of this ExtendedBlockStorage.
|
boolean |
isEmpty()
Returns whether or not this block storage's Chunk is fully empty, based on its internal reference count.
|
boolean |
needsRandomTick()
Returns whether or not this block storage's Chunk will require random ticking, used to avoid looping through
random block ticks when there are no blocks that would randomly tick.
|
void |
recalculateRefCounts() |
void |
set(int x,
int y,
int z,
IBlockState state) |
void |
setBlockLight(int x,
int y,
int z,
int value)
Sets the saved Block-light value in the extended block storage structure.
|
void |
setBlockLight(NibbleArray newBlocklightArray)
Sets the NibbleArray instance used for Block-light values in this particular storage block.
|
void |
setSkyLight(int x,
int y,
int z,
int value)
Sets the saved Sky-light value in the extended block storage structure.
|
void |
setSkyLight(NibbleArray newSkylightArray)
Sets the NibbleArray instance used for Sky-light values in this particular storage block.
|
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)