public class BlockStateContainer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static IBlockState |
AIR_BLOCK_STATE |
protected IBlockStatePalette |
palette |
protected BitArray |
storage |
Constructor and Description |
---|
BlockStateContainer() |
Modifier and Type | Method and Description |
---|---|
protected IBlockState |
get(int index) |
IBlockState |
get(int x,
int y,
int z) |
NibbleArray |
getDataForNBT(byte[] p_186017_1_,
NibbleArray p_186017_2_) |
int |
getSerializedSize() |
int |
onResize(int bits,
IBlockState state) |
void |
read(PacketBuffer buf) |
protected void |
set(int index,
IBlockState state) |
void |
set(int x,
int y,
int z,
IBlockState state) |
void |
setDataFromNBT(byte[] p_186019_1_,
NibbleArray p_186019_2_,
NibbleArray p_186019_3_) |
void |
write(PacketBuffer buf) |
protected static final IBlockState AIR_BLOCK_STATE
protected BitArray storage
protected IBlockStatePalette palette
public int onResize(int bits, IBlockState state)
public void set(int x, int y, int z, IBlockState state)
protected void set(int index, IBlockState state)
public IBlockState get(int x, int y, int z)
protected IBlockState get(int index)
public void read(PacketBuffer buf)
public void write(PacketBuffer buf)
@Nullable public NibbleArray getDataForNBT(byte[] p_186017_1_, NibbleArray p_186017_2_)
public void setDataFromNBT(byte[] p_186019_1_, NibbleArray p_186019_2_, @Nullable NibbleArray p_186019_3_)
public int getSerializedSize()