|
constexpr | cMetaRotator (BLOCKTYPE a_BlockType) |
|
virtual bool | CanSustainPlant (BLOCKTYPE a_Plant) const |
| Checks whether the block has an effect on growing the plant. More...
|
|
constexpr | cBlockHandler (BLOCKTYPE a_BlockType) |
|
void | Check (cChunkInterface &ChunkInterface, cBlockPluginInterface &a_PluginInterface, Vector3i a_RelPos, cChunk &a_Chunk) const |
| Called when one of the neighbors gets set; equivalent to MC block update. More...
|
|
virtual cItems | ConvertToPickups (NIBBLETYPE a_BlockMeta, const cItem *a_Tool=nullptr) const |
| Returns the pickups that would result if the block was mined by a_Digger using a_Tool. More...
|
|
virtual bool | DoesIgnoreBuildCollision (const cWorld &a_World, const cItem &a_HeldItem, Vector3i a_Position, NIBBLETYPE a_Meta, eBlockFace a_ClickedBlockFace, bool a_ClickedDirectly) const |
| Checks if the player can build "inside" this block. More...
|
|
virtual cBoundingBox | GetPlacementCollisionBox (BLOCKTYPE a_XM, BLOCKTYPE a_XP, BLOCKTYPE a_YM, BLOCKTYPE a_YP, BLOCKTYPE a_ZM, BLOCKTYPE a_ZP) const |
| Returns the relative bounding box that must be entity-free in order for the block to be placed. More...
|
|
virtual int | Grow (cChunk &a_Chunk, Vector3i a_RelPos, int a_NumStages=1) const |
| Grows this block, if it supports growing, by the specified amount of stages (at most). More...
|
|
virtual bool | IsInsideBlock (const Vector3d a_RelPosition, const NIBBLETYPE a_BlockMeta) const |
| Tests if a_RelPosition is inside the block, where a_RelPosition is relative to the origin of the block. More...
|
|
virtual bool | IsUseable (void) const |
| Called to check whether this block supports a rclk action. More...
|
|
virtual NIBBLETYPE | MetaMirrorXZ (NIBBLETYPE a_Meta) const |
| Mirros a given block meta around the XZ plane. More...
|
|
virtual void | OnBroken (cChunkInterface &a_ChunkInterface, cWorldInterface &a_WorldInterface, Vector3i a_BlockPos, BLOCKTYPE a_OldBlockType, NIBBLETYPE a_OldBlockMeta, const cEntity *a_Digger) const |
| Called after a block gets broken (replaced with air), by natural means. More...
|
|
virtual void | OnCancelRightClick (cChunkInterface &a_ChunkInterface, cWorldInterface &a_WorldInterface, cPlayer &a_Player, const Vector3i a_BlockPos, eBlockFace a_BlockFace) const |
| Called when a right click to this block is cancelled. More...
|
|
virtual void | OnDigging (cChunkInterface &a_ChunkInterface, cWorldInterface &a_WorldInterface, cPlayer &a_Player, const Vector3i a_BlockPos) const |
| Called when the player starts digging the block. More...
|
|
virtual void | OnNeighborChanged (cChunkInterface &a_ChunkInterface, Vector3i a_BlockPos, eBlockFace a_WhichNeighbor) const |
| Called when a direct neighbor of this block has been changed. More...
|
|
virtual void | OnPlaced (cChunkInterface &a_ChunkInterface, cWorldInterface &a_WorldInterface, Vector3i a_BlockPos, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta) const |
| Called by cWorld::SetBlock() after the block has been set. More...
|
|
virtual void | OnUpdate (cChunkInterface &a_ChunkInterface, cWorldInterface &a_WorldInterface, cBlockPluginInterface &a_BlockPluginInterface, cChunk &a_Chunk, const Vector3i a_RelPos) const |
| Called when the block gets ticked either by a random tick or by a queued tick. More...
|
|
virtual bool | OnUse (cChunkInterface &a_ChunkInterface, cWorldInterface &a_WorldInterface, cPlayer &a_Player, const Vector3i a_BlockPos, eBlockFace a_BlockFace, const Vector3i a_CursorPos) const |
| Called when the user right clicks the block and the block is useable. More...
|
|
const BLOCKTYPE | m_BlockType |
|
Definition at line 16 of file BlockTorch.h.