6 #include "../BlockInfo.h"
unsigned char NIBBLETYPE
The datatype used by nibbledata (meta, light, skylight)
static bool IsSolid(BLOCKTYPE Block)
Is this block solid (player cannot walk through)?
virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) const override
Returns the base colour ID of the block, as will be represented on a map, as per documentation: https...
virtual bool CanBeAt(const cChunk &a_Chunk, const Vector3i a_Position, const NIBBLETYPE a_Meta) const override
Checks if the block can stay at the specified relative coords in the chunk.
virtual cItems ConvertToPickups(const NIBBLETYPE a_BlockMeta, const cItem *const a_Tool) const override
Returns the pickups that would result if the block was mined by a_Digger using a_Tool.
Wrapper for blocks that have a cBlockEntity descendant attached to them and can be "used" by the play...
BLOCKTYPE GetBlock(int a_RelX, int a_RelY, int a_RelZ) const
This class bridges a vector of cItem for safe access via Lua.
Vector3< T > addedY(T a_AddY) const
Returns a copy of this vector moved by the specified amount on the y axis.