32 enum class OnUseAction :
int {
35 SuspiciousStewEffect = 1,
42 ::ll::TypedStorage<4, 4, int> id;
43 ::ll::TypedStorage<8, 32, ::std::string> name;
44 ::ll::TypedStorage<8, 32, ::std::string> descriptionId;
45 ::ll::TypedStorage<4, 4, ::EffectDuration> duration;
46 ::ll::TypedStorage<4, 4, int> amplifier;
47 ::ll::TypedStorage<4, 4, float> chance;
66 ::ll::TypedStorage<8, 8, ::Item&> mOwner;
67 ::ll::TypedStorage<4, 4, int> mNutrition;
68 ::ll::TypedStorage<4, 4, float> mSaturationModifier;
69 ::ll::TypedStorage<8, 32, ::std::string> mUsingConvertsTo;
70 ::ll::TypedStorage<4, 4, ::FoodItemComponentLegacy::OnUseAction> mOnUseAction;
71 ::ll::TypedStorage<4, 12, ::Vec3> mOnUseRange;
72 ::ll::TypedStorage<8, 48, ::HashedString> mCooldownCategory;
73 ::ll::TypedStorage<4, 4, int> mCooldownDuration;
74 ::ll::TypedStorage<1, 1, bool> mCanAlwaysEat;
75 ::ll::TypedStorage<8, 24, ::std::vector<::FoodItemComponentLegacy::Effect>> mEffects;
76 ::ll::TypedStorage<8, 24, ::std::vector<uint>> mRemoveEffects;
89 virtual int getNutrition() const ;
92 virtual
float getSaturationModifier() const ;
95 virtual
bool canAlwaysEat() const ;
104 virtual ::
Item const* useTimeDepleted(
105 ::ItemUseMethod& itemUseMethod,
121 MCAPI
void _loadEffects(::Json::Value const& effectsData);
123 MCAPI
void _loadRemoveEffects(::Json::Value const& removeEffectsData);
127 MCAPI
bool init(::Json::Value const& data, ::MolangVersion);
133 MCAPI static ::Json::Value initializeFromNetwork(::
CompoundTag const& tag);
145 MCFOLD
int $getNutrition() const;
147 MCFOLD
float $getSaturationModifier() const;
149 MCAPI
bool $canAlwaysEat() const;
155 MCAPI ::
Item const* $useTimeDepleted(
156 ::ItemUseMethod& itemUseMethod,