|
enum class | OnUseAction : int { None = -1
, ChorusTeleport = 0
, SuspiciousStewEffect = 1
} |
|
|
FoodItemComponentLegacy & | operator= (FoodItemComponentLegacy const &) |
|
| FoodItemComponentLegacy (FoodItemComponentLegacy const &) |
|
virtual int | getNutrition () const |
|
virtual float | getSaturationModifier () const |
|
virtual bool | canAlwaysEat () const |
|
virtual::Item const * | eatItem (::ItemStack &instance, ::Actor &actor, ::Level &level) |
|
virtual void | use (bool &result, ::ItemStack &item, ::Player &player) |
|
virtual::Item const * | useTimeDepleted (::ItemUseMethod &itemUseMethod, ::ItemStack const &, ::ItemStack &instance, ::Player &player, ::Level &level) |
|
MCAPI void | _applyEatEffects (::ItemStack const &, ::Actor &actor, ::Level &level) |
|
MCAPI void | _loadEffects (::Json::Value const &effectsData) |
|
MCAPI void | _loadRemoveEffects (::Json::Value const &removeEffectsData) |
|
MCAPI ::std::unique_ptr<::CompoundTag > | buildNetworkTag () const |
|
MCAPI bool | init (::Json::Value const &data, ::MolangVersion) |
|
MCAPI void | $dtor () |
|
MCFOLD int | $getNutrition () const |
|
MCFOLD float | $getSaturationModifier () const |
|
MCAPI bool | $canAlwaysEat () const |
|
MCAPI::Item const * | $eatItem (::ItemStack &instance, ::Actor &actor, ::Level &level) |
|
MCAPI void | $use (bool &result, ::ItemStack &item, ::Player &player) |
|
MCAPI::Item const * | $useTimeDepleted (::ItemUseMethod &itemUseMethod, ::ItemStack const &, ::ItemStack &instance, ::Player &player, ::Level &level) |
|
|
static MCAPI ::Json::Value | initializeFromNetwork (::CompoundTag const &tag) |
|
static MCAPI void ** | $vftable () |
|
static MCAPI ::std::add_lvalue_reference_t< char const[]> | CAN_ALWAYS_EAT () |
|
static MCAPI ::std::add_lvalue_reference_t< char const[]> | NUTRITION () |
|
static MCAPI ::std::add_lvalue_reference_t< char const[]> | SATURATION_MODIFIER () |
|
|
::ll::TypedStorage< 8, 8, ::Item & > | mOwner |
|
::ll::TypedStorage< 4, 4, int > | mNutrition |
|
::ll::TypedStorage< 4, 4, float > | mSaturationModifier |
|
::ll::TypedStorage< 8, 32, ::std::string > | mUsingConvertsTo |
|
::ll::TypedStorage< 4, 4, ::FoodItemComponentLegacy::OnUseAction > | mOnUseAction |
|
::ll::TypedStorage< 4, 12, ::Vec3 > | mOnUseRange |
|
::ll::TypedStorage< 8, 48, ::HashedString > | mCooldownCategory |
|
::ll::TypedStorage< 4, 4, int > | mCooldownDuration |
|
::ll::TypedStorage< 1, 1, bool > | mCanAlwaysEat |
|
::ll::TypedStorage< 8, 24, ::std::vector<::FoodItemComponentLegacy::Effect > > | mEffects |
|
::ll::TypedStorage< 8, 24, ::std::vector< uint > > | mRemoveEffects |
|
◆ getNutrition()
virtual int FoodItemComponentLegacy::getNutrition |
( |
| ) |
const |
|
virtual |
◆ getSaturationModifier()
virtual float FoodItemComponentLegacy::getSaturationModifier |
( |
| ) |
const |
|
virtual |
◆ canAlwaysEat()
virtual bool FoodItemComponentLegacy::canAlwaysEat |
( |
| ) |
const |
|
virtual |
◆ eatItem()
◆ use()
virtual void FoodItemComponentLegacy::use |
( |
bool & | result, |
|
|
::ItemStack & | item, |
|
|
::Player & | player ) |
|
virtual |
◆ useTimeDepleted()
◆ $vftable()
static MCAPI void ** FoodItemComponentLegacy::$vftable |
( |
| ) |
|
|
static |
- Attention
- This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.
The documentation for this class was generated from the following file: