Skip to content
LeviMC
English
AutoLightDark
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 MCNAPI 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 MCNAPI static void
64 appendColors(::Bedrock::Safety::RedactableString& hovertext, ::std::vector<uchar> const& colorList);
65
66 MCNAPI static void getFormattedHoverText(
67 ::CompoundTag const& explosion,
69 ::std::string const& indent
70 );
71
72 MCNAPI 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 MCNAPI 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 MCNAPI static ::std::string const& TAG_EXPLOSION();
95
96 MCNAPI static ::std::string const& TAG_E_COLORS();
97
98 MCNAPI static ::std::string const& TAG_E_FADECOLORS();
99
100 MCNAPI static ::std::string const& TAG_E_FLICKER();
101
102 MCNAPI static ::std::string const& TAG_E_TRAIL();
103
104 MCNAPI static ::std::string const& TAG_E_TYPE();
105 // NOLINTEND
106
107public:
108 // virtual function thunks
109 // NOLINTBEGIN
111 ::ItemStackBase const& stack,
112 ::Level& level,
114 bool const advancedToolTips
115 ) const;
116
117 MCNAPI bool $hasSameRelevantUserData(::ItemStackBase const& stack, ::ItemStackBase const& other) const;
118
119 MCNAPI bool $isDyeable() const;
120
121 MCNAPI ::mce::Color $getColor(::CompoundTag const* userData, ::ItemDescriptor const&) const;
122
123 MCNAPI bool $isValidAuxValue(int auxValue) const;
124
125
126 // NOLINTEND
127
128public:
129 // vftables
130 // NOLINTBEGIN
131 MCNAPI static void** $vftable();
132 // NOLINTEND
133};
Definition RedactableString.h:10
Definition CompoundTag.h:18
Definition FireworkChargeItem.h:20
static MCAPI ::std::string const & TAG_E_FADECOLORS()
MCAPI bool $isValidAuxValue(int auxValue) const
static MCAPI ::std::string const & TAG_E_COLORS()
static MCAPI ::std::string const & TAG_E_FLICKER()
static MCAPI ::std::string const & TAG_E_TYPE()
static MCAPI void appendColors(::Bedrock::Safety::RedactableString &hovertext, ::std::vector< uchar > const &colorList)
MCAPI bool $isDyeable() const
static MCAPI ::ItemInstance const & initFireworkChargeItem(::ItemInstance &itemInstance, ::FireworkChargeItem::Shape shape, ::std::vector< uchar > colors, ::std::vector< uchar > fadeColors, bool hasTrail, bool hasFlicker)
static MCAPI void getFormattedHoverText(::CompoundTag const &explosion, ::Bedrock::Safety::RedactableString &hovertext, ::std::string const &indent)
static MCAPI void ** $vftable()
static MCAPI ::ItemStack const & initFireworkChargeItem(::ItemStack &item, ::FireworkChargeItem::Shape shape, ::std::vector< uchar > colors, ::std::vector< uchar > fadeColors, bool hasTrail, bool hasFlicker)
static MCAPI void _initFireworkChargeItem(::ItemStackBase &itemInstance, ::FireworkChargeItem::Shape shape, ::std::vector< uchar > colors, ::std::vector< uchar > fadeColors, bool hasTrail, bool hasFlicker)
MCAPI void $appendFormattedHovertext(::ItemStackBase const &stack, ::Level &level, ::Bedrock::Safety::RedactableString &hovertext, bool const advancedToolTips) const
MCAPI bool $hasSameRelevantUserData(::ItemStackBase const &stack, ::ItemStackBase const &other) const
static MCAPI ::std::string const & TAG_E_TRAIL()
static MCAPI ::std::string const & TAG_EXPLOSION()
MCAPI::mce::Color $getColor(::CompoundTag const *userData, ::ItemDescriptor const &) const
Definition ItemDescriptor.h:24
Definition ItemInstance.h:15
Definition ItemStackBase.h:45
Definition ItemStack.h:26
Definition Level.h:255
Definition Color.h:13