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 // vIndex: 0
22 virtual ~IFoodItemComponent() = default;
23
24 // vIndex: 1
25 virtual int getNutrition() const = 0;
26
27 // vIndex: 2
28 virtual float getSaturationModifier() const = 0;
29
30 // vIndex: 3
31 virtual bool canAlwaysEat() const = 0;
32
33 // vIndex: 4
34 virtual ::Item const* eatItem(::ItemStack&, ::Actor&, ::Level&) = 0;
35
36 // vIndex: 5
37 virtual void use(bool& result, ::ItemStack& item, ::Player& player) = 0;
38
39 // vIndex: 6
40 virtual ::Item const* useTimeDepleted(::ItemUseMethod&, ::ItemStack const&, ::ItemStack&, ::Player&, ::Level&) = 0;
41 // NOLINTEND
42
43public:
44 // static variables
45 // NOLINTBEGIN
46 MCAPI static ::std::add_lvalue_reference_t<char const[]> CAN_ALWAYS_EAT();
47
48 MCAPI static ::std::add_lvalue_reference_t<char const[]> NUTRITION();
49
50 MCAPI static ::std::add_lvalue_reference_t<char const[]> SATURATION_MODIFIER();
51 // NOLINTEND
52
53public:
54 // destructor thunk
55 // NOLINTBEGIN
56
57 // NOLINTEND
58
59public:
60 // virtual function thunks
61 // NOLINTBEGIN
62
63 // NOLINTEND
64};
Definition Actor.h:104
Definition IFoodItemComponent.h:17
Definition ItemStack.h:25
Definition Item.h:65
Definition Level.h:234
Definition Player.h:119