public class ExtendedBlockStorage
extends java.lang.Object
| Constructor and Description |
|---|
ExtendedBlockStorage(int p_i1997_1_,
boolean p_i1997_2_) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearMSBArray() |
NibbleArray |
createBlockMSBArray()
Called by a Chunk to initialize the MSB array if getBlockMSBArray returns null.
|
void |
func_150818_a(int p_150818_1_,
int p_150818_2_,
int p_150818_3_,
Block p_150818_4_) |
Block |
getBlockByExtId(int p_150819_1_,
int p_150819_2_,
int p_150819_3_)
Returns the block for a location in a chunk, with the extended ID merged from a byte array and a NibbleArray to
form a full 12-bit block ID.
|
NibbleArray |
getBlocklightArray()
Returns the NibbleArray instance containing Block-light data.
|
byte[] |
getBlockLSBArray() |
NibbleArray |
getBlockMSBArray()
Returns the block ID MSB (bits 11..8) array for this storage array's Chunk.
|
int |
getExtBlocklightValue(int p_76674_1_,
int p_76674_2_,
int p_76674_3_)
Gets the saved Block-light value in the extended block storage structure.
|
int |
getExtBlockMetadata(int p_76665_1_,
int p_76665_2_,
int p_76665_3_)
Returns the metadata associated with the block at the given coordinates in this ExtendedBlockStorage.
|
int |
getExtSkylightValue(int p_76670_1_,
int p_76670_2_,
int p_76670_3_)
Gets the saved Sky-light value in the extended block storage structure.
|
NibbleArray |
getMetadataArray() |
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 |
setBlocklightArray(NibbleArray p_76659_1_)
Sets the NibbleArray instance used for Block-light values in this particular storage block.
|
void |
setBlockLSBArray(byte[] p_76664_1_)
Sets the array of block ID least significant bits for this ExtendedBlockStorage.
|
void |
setBlockMetadataArray(NibbleArray p_76668_1_)
Sets the NibbleArray of block metadata (blockMetadataArray) for this ExtendedBlockStorage.
|
void |
setBlockMSBArray(NibbleArray p_76673_1_)
Sets the array of blockID most significant bits (blockMSBArray) for this ExtendedBlockStorage.
|
void |
setExtBlocklightValue(int p_76677_1_,
int p_76677_2_,
int p_76677_3_,
int p_76677_4_)
Sets the saved Block-light value in the extended block storage structure.
|
void |
setExtBlockMetadata(int p_76654_1_,
int p_76654_2_,
int p_76654_3_,
int p_76654_4_)
Sets the metadata of the Block at the given coordinates in this ExtendedBlockStorage to the given metadata.
|
void |
setExtSkylightValue(int p_76657_1_,
int p_76657_2_,
int p_76657_3_,
int p_76657_4_)
Sets the saved Sky-light value in the extended block storage structure.
|
void |
setSkylightArray(NibbleArray p_76666_1_)
Sets the NibbleArray instance used for Sky-light values in this particular storage block.
|
public ExtendedBlockStorage(int p_i1997_1_,
boolean p_i1997_2_)
public Block getBlockByExtId(int p_150819_1_, int p_150819_2_, int p_150819_3_)
public void func_150818_a(int p_150818_1_,
int p_150818_2_,
int p_150818_3_,
Block p_150818_4_)
public int getExtBlockMetadata(int p_76665_1_,
int p_76665_2_,
int p_76665_3_)
public void setExtBlockMetadata(int p_76654_1_,
int p_76654_2_,
int p_76654_3_,
int p_76654_4_)
public boolean isEmpty()
public boolean getNeedsRandomTick()
public int getYLocation()
public void setExtSkylightValue(int p_76657_1_,
int p_76657_2_,
int p_76657_3_,
int p_76657_4_)
public int getExtSkylightValue(int p_76670_1_,
int p_76670_2_,
int p_76670_3_)
public void setExtBlocklightValue(int p_76677_1_,
int p_76677_2_,
int p_76677_3_,
int p_76677_4_)
public int getExtBlocklightValue(int p_76674_1_,
int p_76674_2_,
int p_76674_3_)
public void removeInvalidBlocks()
public byte[] getBlockLSBArray()
public void clearMSBArray()
public NibbleArray getBlockMSBArray()
public NibbleArray getMetadataArray()
public NibbleArray getBlocklightArray()
public NibbleArray getSkylightArray()
public void setBlockLSBArray(byte[] p_76664_1_)
public void setBlockMSBArray(NibbleArray p_76673_1_)
public void setBlockMetadataArray(NibbleArray p_76668_1_)
public void setBlocklightArray(NibbleArray p_76659_1_)
public void setSkylightArray(NibbleArray p_76666_1_)
public NibbleArray createBlockMSBArray()