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 |
getBlocklightArray()
Returns the NibbleArray instance containing Block-light data.
|
BlockStateContainer |
getData() |
int |
getExtBlocklightValue(int x,
int y,
int z)
Gets the saved Block-light value in the extended block storage structure.
|
int |
getExtSkylightValue(int x,
int y,
int z)
Gets the saved Sky-light value in the extended block storage structure.
|
boolean |
getNeedsRandomTick()
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.
|
NibbleArray |
getSkylightArray()
Returns the NibbleArray instance containing Sky-light data.
|
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.
|
void |
removeInvalidBlocks() |
void |
set(int x,
int y,
int z,
IBlockState state) |
void |
setBlocklightArray(NibbleArray newBlocklightArray)
Sets the NibbleArray instance used for Block-light values in this particular storage block.
|
void |
setExtBlocklightValue(int x,
int y,
int z,
int value)
Sets the saved Block-light value in the extended block storage structure.
|
void |
setExtSkylightValue(int x,
int y,
int z,
int value)
Sets the saved Sky-light value in the extended block storage structure.
|
void |
setSkylightArray(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 getNeedsRandomTick()
public int getYLocation()
public void setExtSkylightValue(int x, int y, int z, int value)
public int getExtSkylightValue(int x, int y, int z)
public void setExtBlocklightValue(int x, int y, int z, int value)
public int getExtBlocklightValue(int x, int y, int z)
public void removeInvalidBlocks()
public BlockStateContainer getData()
public NibbleArray getBlocklightArray()
public NibbleArray getSkylightArray()
public void setBlocklightArray(NibbleArray newBlocklightArray)
public void setSkylightArray(NibbleArray newSkylightArray)