diff options
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockHandler.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Blocks/BlockHandler.h b/src/Blocks/BlockHandler.h index 447fc7dc6..8d595cc4a 100644 --- a/src/Blocks/BlockHandler.h +++ b/src/Blocks/BlockHandler.h @@ -230,6 +230,10 @@ public: Helper used in many ConvertToPickups() implementations. */ static bool ToolHasSilkTouch(const cItem * a_Tool); + /** Returns the fortune level of a tool, if it is a valid tool. + Can be used in ConvertToPickups() implementations. */ + static unsigned int ToolFortuneLevel(const cItem * a_Tool); + // Gets the blockhandler for the given block type. static const cBlockHandler & For(BLOCKTYPE a_BlockType); |