summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemHandler.h
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-05-01 00:47:57 +0200
committerHowaner <franzi.moos@googlemail.com>2014-05-05 17:34:17 +0200
commit3c102870f600178b7cabf6714f83e06fc05b42fd (patch)
treea9e022f5405de9c59b70ea7e664e1f5df758e3fc /src/Items/ItemHandler.h
parentMerge pull request #978 from mc-server/VectorAssignmentOperator (diff)
downloadcuberite-3c102870f600178b7cabf6714f83e06fc05b42fd.tar
cuberite-3c102870f600178b7cabf6714f83e06fc05b42fd.tar.gz
cuberite-3c102870f600178b7cabf6714f83e06fc05b42fd.tar.bz2
cuberite-3c102870f600178b7cabf6714f83e06fc05b42fd.tar.lz
cuberite-3c102870f600178b7cabf6714f83e06fc05b42fd.tar.xz
cuberite-3c102870f600178b7cabf6714f83e06fc05b42fd.tar.zst
cuberite-3c102870f600178b7cabf6714f83e06fc05b42fd.zip
Diffstat (limited to 'src/Items/ItemHandler.h')
-rw-r--r--src/Items/ItemHandler.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Items/ItemHandler.h b/src/Items/ItemHandler.h
index 4993eac85..420eefcf1 100644
--- a/src/Items/ItemHandler.h
+++ b/src/Items/ItemHandler.h
@@ -85,6 +85,12 @@ public:
/** Blocks simply get placed */
virtual bool IsPlaceable(void);
+ /** Can the anvil repair this item, when a_Item is the second input? */
+ virtual bool CanRepairWithItem(const cItem & a_Item);
+
+ /** Get the repair cost from the item, or 0 if the item hasn't repair cost. */
+ virtual int GetRepairCost(void);
+
/** Called before a block is placed into a world.
The handler should return true to allow placement, false to refuse.
Also, the handler should set a_BlockType and a_BlockMeta to correct values for the newly placed block.