LeviLamina
Loading...
Searching...
No Matches
EquipmentPreviewRenderer.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/controls/renderers/MinecraftUICustomRenderer.h"
7#include "mc/deps/core/math/Vec2.h"
8#include "mc/deps/ecs/WeakEntityRef.h"
9#include "mc/world/item/ItemStack.h"
10
11// auto generated forward declare list
12// clang-format off
13class Actor;
14class BlockSource;
15class IClientInstance;
18class UIControl;
20class UIPropertyBag;
21class UIResolvedDef;
22class UIScene;
23// clang-format on
24
26public:
27 // EquipmentPreviewRenderer inner types declare
28 // clang-format off
29 struct ItemProperties;
30 // clang-format on
31
32 // EquipmentPreviewRenderer inner types define
33 struct ItemProperties {
34 public:
35 // member variables
36 // NOLINTBEGIN
37 ::ll::TypedStorage<2, 2, short> mItemId;
38 ::ll::TypedStorage<4, 4, int> mAuxValue;
39 ::ll::TypedStorage<4, 4, int> mCustomColor;
40 ::ll::TypedStorage<1, 1, bool> mIsEnchanted;
41 ::ll::TypedStorage<8, 32, ::std::string> mTrimPattern;
42 ::ll::TypedStorage<8, 32, ::std::string> mTrimMaterial;
43 // NOLINTEND
44
45 public:
46 // member functions
47 // NOLINTBEGIN
48 MCAPI ItemProperties();
49
50 MCAPI explicit ItemProperties(::UIPropertyBag const& propertyBag);
51
52 MCAPI bool operator==(::EquipmentPreviewRenderer::ItemProperties const& rhs) const;
53
54 MCAPI ~ItemProperties();
55 // NOLINTEND
56
57 public:
58 // constructor thunks
59 // NOLINTBEGIN
60 MCAPI void* $ctor();
61
62 MCAPI void* $ctor(::UIPropertyBag const& propertyBag);
63 // NOLINTEND
64
65 public:
66 // destructor thunk
67 // NOLINTBEGIN
68 MCFOLD void $dtor();
69 // NOLINTEND
70 };
71
72public:
73 // member variables
74 // NOLINTBEGIN
75 ::ll::TypedStorage<4, 8, ::Vec2> mRotation;
76 ::ll::TypedStorage<8, 24, ::WeakEntityRef> mDisplayArmorStand;
77 ::ll::TypedStorage<8, 80, ::EquipmentPreviewRenderer::ItemProperties> mItemProperties;
78 ::ll::TypedStorage<8, 152, ::ItemStack> mItemStack;
79 // NOLINTEND
80
81public:
82 // prevent constructor by default
83 EquipmentPreviewRenderer();
84
85public:
86 // virtual functions
87 // NOLINTBEGIN
88 virtual ~EquipmentPreviewRenderer() /*override*/;
89
90 virtual ::std::shared_ptr<::UICustomRenderer> clone() const /*override*/;
91
92 virtual bool update(::IClientInstance& client, ::UIControl& owner, ::UIScene const&) /*override*/;
93
94 virtual void
95 render(::MinecraftUIRenderContext& renderContext, ::IClientInstance& client, ::UIControl& owner, int) /*override*/;
96 // NOLINTEND
97
98public:
99 // member functions
100 // NOLINTBEGIN
101 MCAPI explicit EquipmentPreviewRenderer(::UIResolvedDef const& definition);
102
103 MCAPI explicit EquipmentPreviewRenderer(::Vec2 const& rotation);
104
105 MCAPI ::Actor* _getOrCreateDisplayArmorStand(::MultiPlayerLevel& level, ::BlockSource& region);
106
107 MCAPI void _removeDisplayArmorStand();
108 // NOLINTEND
109
110public:
111 // constructor thunks
112 // NOLINTBEGIN
113 MCAPI void* $ctor(::UIResolvedDef const& definition);
114
115 MCAPI void* $ctor(::Vec2 const& rotation);
116 // NOLINTEND
117
118public:
119 // destructor thunk
120 // NOLINTBEGIN
121 MCAPI void $dtor();
122 // NOLINTEND
123
124public:
125 // virtual function thunks
126 // NOLINTBEGIN
127 MCAPI ::std::shared_ptr<::UICustomRenderer> $clone() const;
128
129 MCAPI bool $update(::IClientInstance& client, ::UIControl& owner, ::UIScene const&);
130
131 MCAPI void $render(::MinecraftUIRenderContext& renderContext, ::IClientInstance& client, ::UIControl& owner, int);
132 // NOLINTEND
133
134public:
135 // vftables
136 // NOLINTBEGIN
137 MCNAPI static void** $vftable();
138 // NOLINTEND
139};
Definition Actor.h:125
Definition BlockSource.h:73
Definition EquipmentPreviewRenderer.h:5
static MCAPI void ** $vftable()
Definition IClientInstance.h:5
Definition MinecraftUICustomRenderer.h:5
Definition MinecraftUIRenderContext.h:5
Definition MultiPlayerLevel.h:5
Definition UIControl.h:5
Definition UICustomRenderer.h:5
Definition UIPropertyBag.h:5
Definition UIResolvedDef.h:5
Definition UIScene.h:5
Definition EquipmentPreviewRenderer.h:13