34 enum class OnUseAction :
int {
37 SuspiciousStewEffect = 1,
44 ::ll::TypedStorage<4, 4, int> id;
45 ::ll::TypedStorage<8, 32, ::std::string> name;
46 ::ll::TypedStorage<8, 32, ::std::string> descriptionId;
47 ::ll::TypedStorage<4, 4, ::EffectDuration> duration;
48 ::ll::TypedStorage<4, 4, int> amplifier;
49 ::ll::TypedStorage<4, 4, float> chance;
56 ::ll::TypedStorage<8, 8, ::Item&> mOwner;
57 ::ll::TypedStorage<4, 4, int> mNutrition;
58 ::ll::TypedStorage<4, 4, float> mSaturationModifier;
59 ::ll::TypedStorage<8, 32, ::std::string> mUsingConvertsTo;
60 ::ll::TypedStorage<4, 4, ::FoodItemComponentLegacy::OnUseAction> mOnUseAction;
61 ::ll::TypedStorage<4, 12, ::Vec3> mOnUseRange;
62 ::ll::TypedStorage<8, 48, ::HashedString> mCooldownCategory;
63 ::ll::TypedStorage<4, 4, int> mCooldownDuration;
64 ::ll::TypedStorage<1, 1, bool> mCanAlwaysEat;
65 ::ll::TypedStorage<8, 24, ::std::vector<::FoodItemComponentLegacy::Effect>> mEffects;
66 ::ll::TypedStorage<8, 24, ::std::vector<uint>> mRemoveEffects;
71 FoodItemComponentLegacy& operator=(FoodItemComponentLegacy
const&);
72 FoodItemComponentLegacy(FoodItemComponentLegacy
const&);
73 FoodItemComponentLegacy();
78 virtual int getNutrition() const ;
80 virtual
float getSaturationModifier() const ;
82 virtual
bool canAlwaysEat() const ;
89 virtual ::
Item const* useTimeDepleted(
90 ::ItemUseMethod& itemUseMethod,
105 MCNAPI
bool init(::Json::Value const& data, ::MolangVersion);
128 ::ItemUseMethod& itemUseMethod,