diff options
author | Lane Kolbly <lane@rscheme.org> | 2017-07-30 19:53:21 +0200 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2017-07-30 19:53:21 +0200 |
commit | 10d42a2452e19ca98506df4d85c0e8f37b3e8981 (patch) | |
tree | 84ab60be36919dac3b24e7384bfd533349a9d177 /src/Items/ItemHandler.h | |
parent | cParsedNBT: Improved error reporting (#3876) (diff) | |
download | cuberite-10d42a2452e19ca98506df4d85c0e8f37b3e8981.tar cuberite-10d42a2452e19ca98506df4d85c0e8f37b3e8981.tar.gz cuberite-10d42a2452e19ca98506df4d85c0e8f37b3e8981.tar.bz2 cuberite-10d42a2452e19ca98506df4d85c0e8f37b3e8981.tar.lz cuberite-10d42a2452e19ca98506df4d85c0e8f37b3e8981.tar.xz cuberite-10d42a2452e19ca98506df4d85c0e8f37b3e8981.tar.zst cuberite-10d42a2452e19ca98506df4d85c0e8f37b3e8981.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Items/ItemHandler.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Items/ItemHandler.h b/src/Items/ItemHandler.h index 8141bfb23..9689ec50d 100644 --- a/src/Items/ItemHandler.h +++ b/src/Items/ItemHandler.h @@ -127,10 +127,7 @@ public: } ; /** Returns the FoodInfo for this item. (FoodRecovery and Saturation) */ - virtual FoodInfo GetFoodInfo(); - - /** If this function returns true, it sets the arguments to a effect who will be activated when you eat the item. */ - virtual bool GetEatEffect(cEntityEffect::eType & a_EffectType, int & a_EffectDurationTicks, short & a_EffectIntensity, float & a_Chance); + virtual FoodInfo GetFoodInfo(const cItem * a_Item); /** Lets the player eat a selected item. Returns true if the player ate the item */ virtual bool EatItem(cPlayer * a_Player, cItem * a_Item); |