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;
81 FoodItemComponentLegacy& operator=(FoodItemComponentLegacy
const&);
82 FoodItemComponentLegacy(FoodItemComponentLegacy
const&);
83 FoodItemComponentLegacy();
88 virtual int getNutrition() const ;
90 virtual
float getSaturationModifier() const ;
92 virtual
bool canAlwaysEat() const ;
96 virtual
void use(
bool& result, ::
ItemStack& instance, ::
Player& player) ;
98 virtual ::
Item const* useTimeDepleted(
99 ::ItemUseMethod& itemUseMethod,
106 virtual ~FoodItemComponentLegacy() ;
114 MCAPI
void _loadEffects(::Json::Value const& effectsData);
116 MCAPI
void _loadRemoveEffects(::Json::Value const& removeEffectsData);
120 MCAPI
bool init(::Json::Value const& data, ::MolangVersion);
126 MCAPI static ::Json::Value initializeFromNetwork(::
CompoundTag const& tag);
138 MCFOLD
int $getNutrition() const;
140 MCFOLD
float $getSaturationModifier() const;
142 MCAPI
bool $canAlwaysEat() const;
146 MCAPI
void $use(
bool& result, ::
ItemStack& instance, ::
Player& player);
148 MCAPI ::
Item const* $useTimeDepleted(
149 ::ItemUseMethod& itemUseMethod,
162 MCAPI static
void** $vftable();