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&, ::Actor&, ::Level&) = 0;
30
31 virtual void use(bool& result, ::ItemStack& item, ::Player& player) = 0;
32
33 virtual ::Item const* useTimeDepleted(::ItemUseMethod&, ::ItemStack const&, ::ItemStack&, ::Player&, ::Level&) = 0;
34 // NOLINTEND
35
36public:
37 // static variables
38 // NOLINTBEGIN
39 MCAPI static ::std::add_lvalue_reference_t<char const[]> CAN_ALWAYS_EAT();
40
41 MCAPI static ::std::add_lvalue_reference_t<char const[]> NUTRITION();
42
43 MCAPI static ::std::add_lvalue_reference_t<char const[]> SATURATION_MODIFIER();
44 // NOLINTEND
45
46public:
47 // virtual function thunks
48 // NOLINTBEGIN
49
50 // NOLINTEND
51};
Definition Actor.h:105
Definition IFoodItemComponent.h:17
Definition ItemStack.h:26
Definition Item.h:69
Definition Level.h:249
Definition Player.h:125