public class BlockStatePaletteHashMap extends java.lang.Object implements IBlockStatePalette
| Constructor and Description |
|---|
BlockStatePaletteHashMap(int bitsIn,
net.minecraft.world.chunk.IBlockStatePaletteResizer paletteResizerIn) |
| Modifier and Type | Method and Description |
|---|---|
IBlockState |
getBlockState(int indexKey) |
int |
getSerializedSize() |
int |
idFor(IBlockState state) |
void |
read(PacketBuffer buf) |
void |
write(PacketBuffer buf) |
public BlockStatePaletteHashMap(int bitsIn,
net.minecraft.world.chunk.IBlockStatePaletteResizer paletteResizerIn)
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