37 return cItem(MushroomType, DropNum);
@ E_META_MUSHROOM_FULL_STEM
@ E_BLOCK_HUGE_BROWN_MUSHROOM
unsigned char NIBBLETYPE
The datatype used by nibbledata (meta, light, skylight)
MTRand & GetRandomProvider()
Returns the current thread's random number source.
static bool ToolHasSilkTouch(const cItem *a_Tool)
Returns true if the specified tool is valid and has a non-zero silk-touch enchantment.
constexpr cBlockHandler(BLOCKTYPE a_BlockType)
const BLOCKTYPE m_BlockType
Handler for huge mushroom blocks.
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.
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...
IntType RandInt(IntType a_Min, IntType a_Max)
Return a random IntType in the range [a_Min, a_Max].
This class bridges a vector of cItem for safe access via Lua.