A MultiBlock represents multiple blocks at the same position. More...
#include <MultiBlock.h>
Classes | |
| struct | SubBlock |
Public Member Functions | |
| MultiBlock ()=default | |
| SubBlock | toBlock () const |
| Converts a MultiBlock to a block and its state. | |
| bool | hasBlock (BlockID blockID) const |
| bool | addBlock (SubBlock block) |
| void | removeBlock (uint8_t index) |
| const std::vector< SubBlock > & | blocks () const |
| std::vector< BlockID > | blockIDs () const |
| uint8_t | blockCount () const |
Static Public Member Functions | |
| static MultiBlock | fromBlock (BlockID, BlockState *state) |
| Converts a block and its state to a multi-block. | |
Protected Member Functions | |
| MultiBlock (std::initializer_list< SubBlock > blocks) | |
A MultiBlock represents multiple blocks at the same position.
|
default |
|
static |
Converts a block and its state to a multi-block.
| blockID | The ID of the block to convert. |
| state | The state of the block to convert. |
| MultiBlock::SubBlock MultiBlock::toBlock | ( | ) | const |
Converts a MultiBlock to a block and its state.