LeviLamina
Loading...
Searching...
No Matches
FireworkChargeItem.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/item/Item.h"
7
8// auto generated forward declare list
9// clang-format off
10class CompoundTag;
11class ItemDescriptor;
12class ItemInstance;
13class ItemStack;
14class ItemStackBase;
15class Level;
16namespace Bedrock::Safety { class RedactableString; }
17namespace mce { class Color; }
18// clang-format on
19
20class FireworkChargeItem : public ::Item {
21public:
22 // FireworkChargeItem inner types define
23 enum class Shape : int {
24 None = 0,
25 LargeBall = 1,
26 Star = 2,
27 HeadCreeper = 3,
28 Burst = 4,
29 Count = 5,
30 };
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 // vIndex: 52
36 virtual void appendFormattedHovertext(
37 ::ItemStackBase const& stack,
38 ::Level& level,
40 bool const showCategory
41 ) const /*override*/;
42
43 // vIndex: 105
44 virtual bool hasSameRelevantUserData(::ItemStackBase const& stack, ::ItemStackBase const& other) const /*override*/;
45
46 // vIndex: 15
47 virtual bool isDyeable() const /*override*/;
48
49 // vIndex: 66
50 virtual ::mce::Color getColor(::CompoundTag const* userData, ::ItemDescriptor const&) const /*override*/;
51
52 // vIndex: 60
53 virtual bool isValidAuxValue(int auxValue) const /*override*/;
54
55 // vIndex: 0
56 virtual ~FireworkChargeItem() /*override*/ = default;
57 // NOLINTEND
58
59public:
60 // static functions
61 // NOLINTBEGIN
62 MCAPI static void _initFireworkChargeItem(
63 ::ItemStackBase& itemInstance,
64 ::FireworkChargeItem::Shape shape,
65 ::std::vector<uchar> colors,
66 ::std::vector<uchar> fadeColors,
67 bool hasTrail,
68 bool hasFlicker
69 );
70
71 MCAPI static void
72 appendColors(::Bedrock::Safety::RedactableString& hovertext, ::std::vector<uchar> const& colorList);
73
74 MCAPI static void getFormattedHoverText(
75 ::CompoundTag const& explosion,
77 ::std::string const& indent
78 );
79
80 MCAPI static ::ItemInstance const& initFireworkChargeItem(
81 ::ItemInstance& itemInstance,
82 ::FireworkChargeItem::Shape shape,
83 ::std::vector<uchar> colors,
84 ::std::vector<uchar> fadeColors,
85 bool hasTrail,
86 bool hasFlicker
87 );
88
89 MCAPI static ::ItemStack const& initFireworkChargeItem(
90 ::ItemStack& item,
91 ::FireworkChargeItem::Shape colors,
92 ::std::vector<uchar> fadeColors,
93 ::std::vector<uchar> shape,
94 bool hasTrail,
95 bool hasFlicker
96 );
97
98 MCAPI static void setColor(::ItemStackBase& instance);
99 // NOLINTEND
100
101public:
102 // static variables
103 // NOLINTBEGIN
104 MCAPI static ::std::string const& TAG_EXPLOSION();
105
106 MCAPI static ::std::string const& TAG_E_COLORS();
107
108 MCAPI static ::std::string const& TAG_E_FADECOLORS();
109
110 MCAPI static ::std::string const& TAG_E_FLICKER();
111
112 MCAPI static ::std::string const& TAG_E_TRAIL();
113
114 MCAPI static ::std::string const& TAG_E_TYPE();
115 // NOLINTEND
116
117public:
118 // destructor thunk
119 // NOLINTBEGIN
120
121 // NOLINTEND
122
123public:
124 // virtual function thunks
125 // NOLINTBEGIN
126 MCAPI void $appendFormattedHovertext(
127 ::ItemStackBase const& stack,
128 ::Level& level,
130 bool const showCategory
131 ) const;
132
133 MCAPI bool $hasSameRelevantUserData(::ItemStackBase const& stack, ::ItemStackBase const& other) const;
134
135 MCFOLD bool $isDyeable() const;
136
137 MCAPI ::mce::Color $getColor(::CompoundTag const* userData, ::ItemDescriptor const&) const;
138
139 MCFOLD bool $isValidAuxValue(int auxValue) const;
140 // NOLINTEND
141
142public:
143 // vftables
144 // NOLINTBEGIN
145 MCAPI static void** $vftable();
146 // NOLINTEND
147};
Definition RedactableString.h:10
Definition CompoundTag.h:13
Definition FireworkChargeItem.h:20
Definition ItemDescriptor.h:22
Definition ItemInstance.h:16
Definition ItemStackBase.h:35
Definition ItemStack.h:25
Definition Item.h:65
Definition Level.h:234