LeviLamina
Loading...
Searching...
No Matches
IFoodItemComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/item/ItemUseMethod.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
11class Item;
12class ItemStack;
13class Level;
14class Player;
15// clang-format on
16
18public:
19 // virtual functions
20 // NOLINTBEGIN
21 virtual ~IFoodItemComponent() = default;
22
23 virtual int getNutrition() const = 0;
24
25 virtual float getSaturationModifier() const = 0;
26
27 virtual bool canAlwaysEat() const = 0;
28
29 virtual ::Item const* eatItem(::ItemStack& instance, ::Actor& actor, ::Level& level) = 0;
30
31 virtual void use(bool& result, ::ItemStack& instance, ::Player& player) = 0;
32
33 virtual ::Item const* useTimeDepleted(
34 ::ItemUseMethod& itemUseMethod,
35 ::ItemStack const& initialInstance,
36 ::ItemStack& instance,
37 ::Player& player,
38 ::Level& level
39 ) = 0;
40 // NOLINTEND
41
42public:
43 // static variables
44 // NOLINTBEGIN
45 MCAPI static ::std::add_lvalue_reference_t<char const[]> CAN_ALWAYS_EAT();
46
47 MCAPI static ::std::add_lvalue_reference_t<char const[]> NUTRITION();
48
49 MCAPI static ::std::add_lvalue_reference_t<char const[]> SATURATION_MODIFIER();
50 // NOLINTEND
51
52public:
53 // virtual function thunks
54 // NOLINTBEGIN
55
56 // NOLINTEND
57};
Definition Actor.h:125
Definition IFoodItemComponent.h:17
Definition ItemStack.h:35
Definition Item.h:71
Definition Level.h:255
Definition Player.h:137