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;
21namespace mce { class Color; }
22// clang-format on
23
24class SparklerItem : public ::ChemistryStickItem {
25public:
26 // SparklerItem inner types declare
27 // clang-format off
28 struct ColorInfo;
29 // clang-format on
30
31 // SparklerItem inner types define
32 struct ColorInfo {
33 public:
34 // member variables
35 // NOLINTBEGIN
36 ::ll::TypedStorage<1, 1, ::ItemColor> mDyeId;
37 ::ll::TypedStorage<1, 1, ::CompoundType> mColorCompound;
38 ::ll::TypedStorage<4, 4, int> mVariantIndex;
39 ::ll::TypedStorage<4, 4, int> mRGB;
40 // NOLINTEND
41 };
42
43public:
44 // virtual functions
45 // NOLINTBEGIN
46 virtual ::std::string buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const*) const
47 /*override*/;
48
49 virtual ::ResolvedItemIconInfo
50 getIconInfo(::ItemStackBase const& item, int newAnimationFrame, bool inInventoryPane) const /*override*/;
51
52 virtual bool inventoryTick(::ItemStack& item, ::Level& level, ::Actor& owner, int slot, bool selected) const
53 /*override*/;
54
55 virtual ::Item& setIconInfo(::std::string const& name, int id) /*override*/;
56
57 virtual bool isHandEquipped() const /*override*/;
58
59 virtual ::Brightness getLightEmission(int auxValue) const /*override*/;
60 // NOLINTEND
61
62public:
63 // static functions
64 // NOLINTBEGIN
65#ifdef LL_PLAT_C
66 MCAPI static ::mce::Color getColor(int data);
67#endif
68 // NOLINTEND
69
70public:
71 // static variables
72 // NOLINTBEGIN
73 MCAPI static ::std::add_lvalue_reference_t<::SparklerItem::ColorInfo const[]> COLORS();
74 // NOLINTEND
75
76public:
77 // virtual function thunks
78 // NOLINTBEGIN
79 MCAPI ::std::string $buildDescriptionId(::ItemDescriptor const& itemDescriptor, ::CompoundTag const*) const;
80
81 MCAPI ::ResolvedItemIconInfo
82 $getIconInfo(::ItemStackBase const& item, int newAnimationFrame, bool inInventoryPane) const;
83
84 MCAPI bool $inventoryTick(::ItemStack& item, ::Level& level, ::Actor& owner, int slot, bool selected) const;
85
86 MCFOLD ::Item& $setIconInfo(::std::string const& name, int id);
87
88 MCFOLD bool $isHandEquipped() const;
89
90 MCFOLD ::Brightness $getLightEmission(int auxValue) const;
91
92
93 // NOLINTEND
94
95public:
96 // vftables
97 // NOLINTBEGIN
98 MCAPI static void** $vftable();
99 // NOLINTEND
100};
Definition Actor.h:125
static MCAPI void ** $vftable()
Definition CompoundTag.h:23
Definition ItemDescriptor.h:25
Definition ItemStackBase.h:52
Definition ItemStack.h:35
Definition Item.h:71
Definition Level.h:255
Definition SparklerItem.h:24
Definition Color.h:13
Definition Brightness.h:8
Definition ResolvedItemIconInfo.h:8
Definition SparklerItem.h:32