public class BlockStatePaletteLinear extends java.lang.Object implements IBlockStatePalette
| Constructor and Description |
|---|
BlockStatePaletteLinear(int bitsIn,
net.minecraft.world.chunk.IBlockStatePaletteResizer resizeHandlerIn) |
| Modifier and Type | Method and Description |
|---|---|
IBlockState |
getBlockState(int indexKey)
Gets the block state by the palette id.
|
int |
getSerializedState() |
int |
idFor(IBlockState state) |
void |
read(PacketBuffer buf) |
void |
write(PacketBuffer buf) |
public BlockStatePaletteLinear(int bitsIn,
net.minecraft.world.chunk.IBlockStatePaletteResizer resizeHandlerIn)
public int idFor(IBlockState state)
idFor in interface IBlockStatePalettepublic 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 getSerializedState()
getSerializedState in interface IBlockStatePalette