6 #include "../Entities/Player.h" 9 #include "../BlockInServerPluginInterface.h"
virtual bool CanHarvestBlock(BLOCKTYPE a_BlockType)
Returns whether this tool / item can harvest a specific block (e.g.
unsigned char BLOCKTYPE
The datatype used by blockdata.
virtual short GetDurabilityLossByAction(eDurabilityLostAction a_Action) override
Get the durability lost which the item will get, when a specified action was performed.
virtual float GetBlockBreakingStrength(BLOCKTYPE a_Block)
Returns the strength to break a specific block.
virtual bool CanRepairWithRawMaterial(short a_ItemType) override
Can the anvil repair this item, when a_Item is the second input?
virtual float GetBlockBreakingStrength(BLOCKTYPE a_Block) override
Returns the strength to break a specific block.
virtual bool CanHarvestBlock(BLOCKTYPE a_BlockType) override
Returns whether this tool / item can harvest a specific block (e.g.
cItemShovelHandler(int a_ItemType)
eDurabilityLostAction
Actions that may cause durability of an item may be lost, where the magnitude of the loss depends on ...
#define UNREACHABLE(x)
Use to mark code that should be impossible to reach.