LeviLamina
Loading...
Searching...
No Matches
MedicineItem.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/item/ChemistryItem.h"
7#include "mc/world/item/ItemUseMethod.h"
8
9// auto generated forward declare list
10// clang-format off
11class CompoundTag;
12class Item;
13class ItemDescriptor;
14class ItemStack;
15class ItemStackBase;
16class Level;
17class Player;
19// clang-format on
20
21class MedicineItem : public ::ChemistryItem {
22public:
23 // prevent constructor by default
24 MedicineItem();
25
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 virtual ::std::string buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const*) const
30 /*override*/;
31
32 virtual ::ItemStack& use(::ItemStack& item, ::Player& player) const /*override*/;
33
34 virtual ::ItemUseMethod useTimeDepleted(::ItemStack& inoutInstance, ::Level* level, ::Player* player) const
35 /*override*/;
36
37 virtual bool isValidAuxValue(int auxValue) const /*override*/;
38
39 virtual ::Item& setIconInfo(::std::string const& name, int id) /*override*/;
40
41 virtual ::ResolvedItemIconInfo getIconInfo(::ItemStackBase const& item, int, bool) const /*override*/;
42 // NOLINTEND
43
44public:
45 // member functions
46 // NOLINTBEGIN
47 MCAPI MedicineItem(::std::string const& name, int id);
48 // NOLINTEND
49
50public:
51 // static functions
52 // NOLINTBEGIN
53#ifdef LL_PLAT_C
54 MCAPI static bool canPlayerDrink(::ItemStack const& item, ::Player const& player);
55#endif
56 // NOLINTEND
57
58public:
59 // constructor thunks
60 // NOLINTBEGIN
61 MCAPI void* $ctor(::std::string const& name, int id);
62 // NOLINTEND
63
64public:
65 // virtual function thunks
66 // NOLINTBEGIN
67 MCAPI ::std::string $buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const*) const;
68
69 MCAPI ::ItemStack& $use(::ItemStack& item, ::Player& player) const;
70
71 MCAPI ::ItemUseMethod $useTimeDepleted(::ItemStack& inoutInstance, ::Level* level, ::Player* player) const;
72
73 MCAPI bool $isValidAuxValue(int auxValue) const;
74
75 MCFOLD ::Item& $setIconInfo(::std::string const& name, int id);
76
77 MCFOLD ::ResolvedItemIconInfo $getIconInfo(::ItemStackBase const& item, int, bool) const;
78
79
80 // NOLINTEND
81
82public:
83 // vftables
84 // NOLINTBEGIN
85 MCAPI static void** $vftable();
86 // NOLINTEND
87};
Definition ChemistryItem.h:13
Definition CompoundTag.h:23
Definition ItemDescriptor.h:25
Definition ItemStackBase.h:52
Definition ItemStack.h:35
Definition Item.h:71
Definition Level.h:255
Definition Player.h:137
Definition ResolvedItemIconInfo.h:8