LeviLamina
Loading...
Searching...
No Matches
SparklerItem.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/item/ChemistryStickItem.h"
7#include "mc/world/item/CompoundType.h"
8#include "mc/world/item/ItemColor.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
13class CompoundTag;
14class Item;
15class ItemDescriptor;
16class ItemStack;
17class ItemStackBase;
18class Level;
19struct Brightness;
21// clang-format on
22
24public:
25 // SparklerItem inner types declare
26 // clang-format off
27 struct ColorInfo;
28 // clang-format on
29
30 // SparklerItem inner types define
31 struct ColorInfo {
32 public:
33 // member variables
34 // NOLINTBEGIN
35 ::ll::TypedStorage<1, 1, ::ItemColor> mDyeId;
36 ::ll::TypedStorage<1, 1, ::CompoundType> mColorCompound;
37 ::ll::TypedStorage<4, 4, int> mVariantIndex;
38 ::ll::TypedStorage<4, 4, int> mRGB;
39 // NOLINTEND
40 };
41
42public:
43 // virtual functions
44 // NOLINTBEGIN
45 virtual ::std::string
46 buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const* userData) const /*override*/;
47
48 virtual ::ResolvedItemIconInfo
49 getIconInfo(::ItemStackBase const& item, int newAnimationFrame, bool inInventoryPane) const /*override*/;
50
51 virtual bool inventoryTick(::ItemStack& item, ::Level& level, ::Actor& owner, int slot, bool selected) const
52 /*override*/;
53
54 virtual ::Item& setIconInfo(::std::string const& name, int index) /*override*/;
55
56 virtual bool isHandEquipped() const /*override*/;
57
58 virtual ::Brightness getLightEmission(int auxValue) const /*override*/;
59
60 virtual ~SparklerItem() /*override*/ = default;
61 // NOLINTEND
62
63public:
64 // static variables
65 // NOLINTBEGIN
66 MCAPI static ::std::add_lvalue_reference_t<::SparklerItem::ColorInfo const[]> COLORS();
67 // NOLINTEND
68
69public:
70 // virtual function thunks
71 // NOLINTBEGIN
72 MCAPI ::std::string
73 $buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const* userData) const;
74
76 $getIconInfo(::ItemStackBase const& item, int newAnimationFrame, bool inInventoryPane) const;
77
78 MCAPI bool $inventoryTick(::ItemStack& item, ::Level& level, ::Actor& owner, int slot, bool selected) const;
79
80 MCFOLD ::Item& $setIconInfo(::std::string const& name, int index);
81
82 MCFOLD bool $isHandEquipped() const;
83
84 MCFOLD ::Brightness $getLightEmission(int auxValue) const;
85
86
87 // NOLINTEND
88
89public:
90 // vftables
91 // NOLINTBEGIN
92 MCAPI static void** $vftable();
93 // NOLINTEND
94};
Definition Actor.h:105
Definition ChemistryStickItem.h:21
Definition CompoundTag.h:23
Definition ItemDescriptor.h:23
Definition ItemStackBase.h:44
Definition ItemStack.h:26
Definition Item.h:69
Definition Level.h:249
Definition SparklerItem.h:23
STL namespace.
Definition Brightness.h:8
Definition ResolvedItemIconInfo.h:8
Definition SparklerItem.h:31