LeviLamina
Loading...
Searching...
No Matches
CoalItem.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/item/components/ComponentItem.h"
7
8// auto generated forward declare list
9// clang-format off
10class CompoundTag;
11class Item;
12class ItemDescriptor;
13class ItemStackBase;
15namespace cereal { struct ReflectionCtx; }
16// clang-format on
17
18class CoalItem : public ::ComponentItem {
19public:
20 // CoalItem inner types define
21 enum class Type : int {
22 StoneCoal = 0,
23 CharCoal = 1,
24 };
25
26public:
27 // member variables
28 // NOLINTBEGIN
29 ::ll::TypedStorage<4, 4, ::CoalItem::Type> mType;
30 // NOLINTEND
31
32public:
33 // prevent constructor by default
34 CoalItem();
35
36public:
37 // virtual functions
38 // NOLINTBEGIN
39 virtual ::Item& setIconInfo(::std::string const& name, int id) /*override*/;
40
41 virtual ::ResolvedItemIconInfo
42 getIconInfo(::ItemStackBase const& item, int newAnimationFrame, bool inInventoryPane) const /*override*/;
43
44 virtual ::std::string
45 buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const* userData) const /*override*/;
46
47 virtual float getFurnaceXPmultiplier(::ItemStackBase const& instance) const /*override*/;
48
49 virtual ~CoalItem() /*override*/ = default;
50 // NOLINTEND
51
52public:
53 // member functions
54 // NOLINTBEGIN
55 MCAPI CoalItem(::std::string const& name, int id, ::cereal::ReflectionCtx& ctx, ::CoalItem::Type type);
56 // NOLINTEND
57
58public:
59 // constructor thunks
60 // NOLINTBEGIN
61 MCAPI void* $ctor(::std::string const& name, int id, ::cereal::ReflectionCtx& ctx, ::CoalItem::Type type);
62 // NOLINTEND
63
64public:
65 // virtual function thunks
66 // NOLINTBEGIN
67 MCFOLD ::Item& $setIconInfo(::std::string const& name, int id);
68
69 MCFOLD ::ResolvedItemIconInfo
70 $getIconInfo(::ItemStackBase const& item, int newAnimationFrame, bool inInventoryPane) const;
71
72 MCAPI ::std::string
73 $buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const* userData) const;
74
75 MCAPI float $getFurnaceXPmultiplier(::ItemStackBase const& instance) const;
76
77
78 // NOLINTEND
79
80public:
81 // vftables
82 // NOLINTBEGIN
83 MCAPI static void** $vftable();
84 // NOLINTEND
85};
static MCAPI void ** $vftable()
Definition CompoundTag.h:23
Definition ItemDescriptor.h:24
Definition ItemStackBase.h:44
Definition Item.h:68
Definition ResolvedItemIconInfo.h:8
Definition ReflectionCtx.h:11
Definition ctx.h:5