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 // prevent constructor by default
47 ItemProperties();
48
49 public:
50 // member functions
51 // NOLINTBEGIN
52 MCAPI explicit ItemProperties(::UIPropertyBag const& propertyBag);
53
54 MCAPI ~ItemProperties();
55 // NOLINTEND
56
57 public:
58 // constructor thunks
59 // NOLINTBEGIN
60 MCAPI void* $ctor(::UIPropertyBag const& propertyBag);
61 // NOLINTEND
62
63 public:
64 // destructor thunk
65 // NOLINTBEGIN
66 MCFOLD void $dtor();
67 // NOLINTEND
68 };
69
70public:
71 // member variables
72 // NOLINTBEGIN
73 ::ll::TypedStorage<4, 8, ::Vec2> mRotation;
74 ::ll::TypedStorage<8, 24, ::WeakEntityRef> mDisplayArmorStand;
75 ::ll::TypedStorage<8, 80, ::EquipmentPreviewRenderer::ItemProperties> mItemProperties;
76 ::ll::TypedStorage<8, 152, ::ItemStack> mItemStack;
77 // NOLINTEND
78
79public:
80 // prevent constructor by default
81 EquipmentPreviewRenderer();
82
83public:
84 // virtual functions
85 // NOLINTBEGIN
86 virtual ~EquipmentPreviewRenderer() /*override*/;
87
88 virtual ::std::shared_ptr<::UICustomRenderer> clone() const /*override*/;
89
90 virtual bool update(::IClientInstance& client, ::UIControl& owner, ::UIScene const&) /*override*/;
91
92 virtual void
93 render(::MinecraftUIRenderContext& renderContext, ::IClientInstance& client, ::UIControl& owner, int) /*override*/;
94 // NOLINTEND
95
96public:
97 // member functions
98 // NOLINTBEGIN
99 MCAPI explicit EquipmentPreviewRenderer(::UIResolvedDef const& definition);
100
101 MCAPI explicit EquipmentPreviewRenderer(::Vec2 const& rotation);
102
103 MCAPI ::Actor* _getOrCreateDisplayArmorStand(::MultiPlayerLevel& level, ::BlockSource& region);
104 // NOLINTEND
105
106public:
107 // constructor thunks
108 // NOLINTBEGIN
109 MCAPI void* $ctor(::UIResolvedDef const& definition);
110
111 MCAPI void* $ctor(::Vec2 const& rotation);
112 // NOLINTEND
113
114public:
115 // destructor thunk
116 // NOLINTBEGIN
117 MCAPI void $dtor();
118 // NOLINTEND
119
120public:
121 // virtual function thunks
122 // NOLINTBEGIN
123 MCAPI ::std::shared_ptr<::UICustomRenderer> $clone() const;
124
125 MCAPI bool $update(::IClientInstance& client, ::UIControl& owner, ::UIScene const&);
126
127 MCAPI void $render(::MinecraftUIRenderContext& renderContext, ::IClientInstance& client, ::UIControl& owner, int);
128 // NOLINTEND
129
130public:
131 // vftables
132 // NOLINTBEGIN
133 MCNAPI static void** $vftable();
134 // NOLINTEND
135};
Definition Actor.h:106
Definition BlockSource.h:71
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