public class BlockStatePaletteLinear extends java.lang.Object implements IBlockStatePalette
| Modifier and Type | Field and Description |
|---|---|
private int |
arraySize |
private int |
bits |
private IBlockStatePaletteResizer |
resizeHandler |
private IBlockState[] |
states |
| Constructor and Description |
|---|
BlockStatePaletteLinear(int bitsIn,
IBlockStatePaletteResizer resizeHandlerIn) |
| Modifier and Type | Method and Description |
|---|---|
IBlockState |
getBlockState(int indexKey) |
int |
getSerializedSize() |
int |
idFor(IBlockState state) |
void |
read(PacketBuffer buf) |
void |
write(PacketBuffer buf) |
private final IBlockState[] states
private final IBlockStatePaletteResizer resizeHandler
private final int bits
private int arraySize
public BlockStatePaletteLinear(int bitsIn,
IBlockStatePaletteResizer resizeHandlerIn)
public int idFor(IBlockState state)
idFor in interface IBlockStatePalette@Nullable public IBlockState getBlockState(int indexKey)
getBlockState in interface IBlockStatePalettepublic void read(PacketBuffer buf)
read in interface IBlockStatePalettepublic void write(PacketBuffer buf)
write in interface IBlockStatePalettepublic int getSerializedSize()
getSerializedSize in interface IBlockStatePalette