diff options
author | KingCol13 <48412633+KingCol13@users.noreply.github.com> | 2020-09-20 20:06:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-20 20:06:28 +0200 |
commit | b6b7fb1a6549ba0c92c5db141af6f6f9bc1d3038 (patch) | |
tree | 709d341446623a083202a955f6e9a7105784ab5e /src/Blocks/BlockHandler.h | |
parent | IBM Z (#4892) (diff) | |
download | cuberite-b6b7fb1a6549ba0c92c5db141af6f6f9bc1d3038.tar cuberite-b6b7fb1a6549ba0c92c5db141af6f6f9bc1d3038.tar.gz cuberite-b6b7fb1a6549ba0c92c5db141af6f6f9bc1d3038.tar.bz2 cuberite-b6b7fb1a6549ba0c92c5db141af6f6f9bc1d3038.tar.lz cuberite-b6b7fb1a6549ba0c92c5db141af6f6f9bc1d3038.tar.xz cuberite-b6b7fb1a6549ba0c92c5db141af6f6f9bc1d3038.tar.zst cuberite-b6b7fb1a6549ba0c92c5db141af6f6f9bc1d3038.zip |
Diffstat (limited to 'src/Blocks/BlockHandler.h')
-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); |