public class ExtendedBlockStorage
extends java.lang.Object
Constructor and Description |
---|
ExtendedBlockStorage(int par1,
boolean par2) |
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 par1,
int par2,
int par3)
Gets the saved Block-light value in the extended block storage structure.
|
int |
getExtBlockMetadata(int par1,
int par2,
int par3)
Returns the metadata associated with the block at the given coordinates in this ExtendedBlockStorage.
|
int |
getExtSkylightValue(int par1,
int par2,
int par3)
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 par1NibbleArray)
Sets the NibbleArray instance used for Block-light values in this particular storage block.
|
void |
setBlockLSBArray(byte[] par1ArrayOfByte)
Sets the array of block ID least significant bits for this ExtendedBlockStorage.
|
void |
setBlockMetadataArray(NibbleArray par1NibbleArray)
Sets the NibbleArray of block metadata (blockMetadataArray) for this ExtendedBlockStorage.
|
void |
setBlockMSBArray(NibbleArray par1NibbleArray)
Sets the array of blockID most significant bits (blockMSBArray) for this ExtendedBlockStorage.
|
void |
setExtBlocklightValue(int par1,
int par2,
int par3,
int par4)
Sets the saved Block-light value in the extended block storage structure.
|
void |
setExtBlockMetadata(int par1,
int par2,
int par3,
int par4)
Sets the metadata of the Block at the given coordinates in this ExtendedBlockStorage to the given metadata.
|
void |
setExtSkylightValue(int par1,
int par2,
int par3,
int par4)
Sets the saved Sky-light value in the extended block storage structure.
|
void |
setSkylightArray(NibbleArray par1NibbleArray)
Sets the NibbleArray instance used for Sky-light values in this particular storage block.
|
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 par1, int par2, int par3)
public void setExtBlockMetadata(int par1, int par2, int par3, int par4)
public boolean isEmpty()
public boolean getNeedsRandomTick()
public int getYLocation()
public void setExtSkylightValue(int par1, int par2, int par3, int par4)
public int getExtSkylightValue(int par1, int par2, int par3)
public void setExtBlocklightValue(int par1, int par2, int par3, int par4)
public int getExtBlocklightValue(int par1, int par2, int par3)
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[] par1ArrayOfByte)
public void setBlockMSBArray(NibbleArray par1NibbleArray)
public void setBlockMetadataArray(NibbleArray par1NibbleArray)
public void setBlocklightArray(NibbleArray par1NibbleArray)
public void setSkylightArray(NibbleArray par1NibbleArray)
public NibbleArray createBlockMSBArray()