30 enum class OnUseAction :
int {
33 SuspiciousStewEffect = 1,
40 ::ll::TypedStorage<4, 4, int> id;
41 ::ll::TypedStorage<8, 32, ::std::string> name;
42 ::ll::TypedStorage<8, 32, ::std::string> descriptionId;
43 ::ll::TypedStorage<4, 4, ::EffectDuration> duration;
44 ::ll::TypedStorage<4, 4, int> amplifier;
45 ::ll::TypedStorage<4, 4, float> chance;
52 ::ll::TypedStorage<8, 8, ::Item&> mOwner;
53 ::ll::TypedStorage<4, 4, int> mNutrition;
54 ::ll::TypedStorage<4, 4, float> mSaturationModifier;
55 ::ll::TypedStorage<8, 32, ::std::string> mUsingConvertsTo;
56 ::ll::TypedStorage<4, 4, ::FoodItemComponentLegacy::OnUseAction> mOnUseAction;
57 ::ll::TypedStorage<4, 12, ::Vec3> mOnUseRange;
58 ::ll::TypedStorage<8, 48, ::HashedString> mCooldownCategory;
59 ::ll::TypedStorage<4, 4, int> mCooldownDuration;
60 ::ll::TypedStorage<1, 1, bool> mCanAlwaysEat;
61 ::ll::TypedStorage<8, 24, ::std::vector<::FoodItemComponentLegacy::Effect>> mEffects;
62 ::ll::TypedStorage<8, 24, ::std::vector<uint>> mRemoveEffects;
67 FoodItemComponentLegacy& operator=(FoodItemComponentLegacy
const&);
68 FoodItemComponentLegacy(FoodItemComponentLegacy
const&);
69 FoodItemComponentLegacy();
74 virtual int getNutrition() const ;
76 virtual
float getSaturationModifier() const ;
78 virtual
bool canAlwaysEat() const ;
84 virtual ::
Item const* useTimeDepleted(
85 ::ItemUseMethod& itemUseMethod,
103 MCAPI
int $getNutrition()
const;
105 MCFOLD
int $getNutrition()
const;
108 MCFOLD
float $getSaturationModifier()
const;
110 MCAPI
bool $canAlwaysEat()
const;
116 MCAPI ::Item
const* $useTimeDepleted(
117 ::ItemUseMethod& itemUseMethod,