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