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 // prevent constructor by default
34 FireworkChargeItem();
35
36public:
37 // virtual functions
38 // NOLINTBEGIN
39 virtual void appendFormattedHovertext(
40 ::ItemStackBase const& stack,
41 ::Level& level,
43 bool const advancedToolTips
44 ) const /*override*/;
45
46 virtual bool hasSameRelevantUserData(::ItemStackBase const& stack, ::ItemStackBase const& other) const /*override*/;
47
48 virtual bool isDyeable() const /*override*/;
49
50 virtual ::mce::Color getColor(::CompoundTag const* userData, ::ItemDescriptor const&) const /*override*/;
51
52 virtual bool isValidAuxValue(int auxValue) const /*override*/;
53 // NOLINTEND
54
55public:
56 // member functions
57 // NOLINTBEGIN
58 MCAPI FireworkChargeItem(::std::string const& nameId, int id);
59 // NOLINTEND
60
61public:
62 // static functions
63 // NOLINTBEGIN
64 MCAPI static void _initFireworkChargeItem(
65 ::ItemStackBase& itemInstance,
66 ::FireworkChargeItem::Shape shape,
67 ::std::vector<uchar> colors,
68 ::std::vector<uchar> fadeColors,
69 bool hasTrail,
70 bool hasFlicker
71 );
72
73 MCAPI static void
74 appendColors(::Bedrock::Safety::RedactableString& hovertext, ::std::vector<uchar> const& colorList);
75
76 MCAPI static void getFormattedHoverText(
77 ::CompoundTag const& explosion,
79 ::std::string const& indent
80 );
81
82 MCFOLD static ::ItemInstance const& initFireworkChargeItem(
83 ::ItemInstance& itemInstance,
84 ::FireworkChargeItem::Shape shape,
85 ::std::vector<uchar> colors,
86 ::std::vector<uchar> fadeColors,
87 bool hasTrail,
88 bool hasFlicker
89 );
90
91 MCFOLD static ::ItemStack const& initFireworkChargeItem(
92 ::ItemStack& item,
93 ::FireworkChargeItem::Shape shape,
94 ::std::vector<uchar> colors,
95 ::std::vector<uchar> fadeColors,
96 bool hasTrail,
97 bool hasFlicker
98 );
99
100 MCAPI static void setColor(::ItemStackBase& instance);
101 // NOLINTEND
102
103public:
104 // static variables
105 // NOLINTBEGIN
106 MCAPI static ::std::string const& TAG_EXPLOSION();
107
108 MCAPI static ::std::string const& TAG_E_COLORS();
109
110 MCAPI static ::std::string const& TAG_E_FADECOLORS();
111
112 MCAPI static ::std::string const& TAG_E_FLICKER();
113
114 MCAPI static ::std::string const& TAG_E_TRAIL();
115
116 MCAPI static ::std::string const& TAG_E_TYPE();
117 // NOLINTEND
118
119public:
120 // constructor thunks
121 // NOLINTBEGIN
122 MCAPI void* $ctor(::std::string const& nameId, int id);
123 // NOLINTEND
124
125public:
126 // virtual function thunks
127 // NOLINTBEGIN
128 MCAPI void $appendFormattedHovertext(
129 ::ItemStackBase const& stack,
130 ::Level& level,
132 bool const advancedToolTips
133 ) const;
134
135 MCAPI bool $hasSameRelevantUserData(::ItemStackBase const& stack, ::ItemStackBase const& other) const;
136
137 MCFOLD bool $isDyeable() const;
138
139 MCAPI ::mce::Color $getColor(::CompoundTag const* userData, ::ItemDescriptor const&) const;
140
141 MCFOLD bool $isValidAuxValue(int auxValue) const;
142
143
144 // NOLINTEND
145
146public:
147 // vftables
148 // NOLINTBEGIN
149 MCAPI static void** $vftable();
150 // NOLINTEND
151};
Definition RedactableString.h:10
Definition CompoundTag.h:23
Definition ItemDescriptor.h:25
Definition ItemInstance.h:15
Definition ItemStackBase.h:52
Definition ItemStack.h:35
Definition Level.h:254
Definition Color.h:13