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