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 IClientInstance;
15class UIControl;
17class UIResolvedDef;
18class UIScene;
19// clang-format on
20
22public:
23 // EquipmentPreviewRenderer inner types declare
24 // clang-format off
25 struct ItemProperties;
26 // clang-format on
27
28 // EquipmentPreviewRenderer inner types define
29 struct ItemProperties {
30 public:
31 // member variables
32 // NOLINTBEGIN
33 ::ll::TypedStorage<2, 2, short> mItemId;
34 ::ll::TypedStorage<4, 4, int> mAuxValue;
35 ::ll::TypedStorage<4, 4, int> mCustomColor;
36 ::ll::TypedStorage<1, 1, bool> mIsEnchanted;
37 ::ll::TypedStorage<8, 32, ::std::string> mTrimPattern;
38 ::ll::TypedStorage<8, 32, ::std::string> mTrimMaterial;
39 // NOLINTEND
40
41 public:
42 // member functions
43 // NOLINTBEGIN
44 MCAPI ~ItemProperties();
45 // NOLINTEND
46
47 public:
48 // destructor thunk
49 // NOLINTBEGIN
50 MCFOLD void $dtor();
51 // NOLINTEND
52 };
53
54public:
55 // member variables
56 // NOLINTBEGIN
57 ::ll::TypedStorage<4, 8, ::Vec2> mRotation;
58 ::ll::TypedStorage<8, 24, ::WeakEntityRef> mDisplayArmorStand;
59 ::ll::TypedStorage<8, 80, ::EquipmentPreviewRenderer::ItemProperties> mItemProperties;
60 ::ll::TypedStorage<8, 152, ::ItemStack> mItemStack;
61 // NOLINTEND
62
63public:
64 // prevent constructor by default
65 EquipmentPreviewRenderer();
66
67public:
68 // virtual functions
69 // NOLINTBEGIN
70 virtual ~EquipmentPreviewRenderer() /*override*/ = default;
71
72 virtual ::std::shared_ptr<::UICustomRenderer> clone() const /*override*/;
73
74 virtual bool update(::IClientInstance& client, ::UIControl& owner, ::UIScene const&) /*override*/;
75
76 virtual void
77 render(::MinecraftUIRenderContext& renderContext, ::IClientInstance& client, ::UIControl& owner, int) /*override*/;
78 // NOLINTEND
79
80public:
81 // member functions
82 // NOLINTBEGIN
83 MCAPI explicit EquipmentPreviewRenderer(::UIResolvedDef const& definition);
84 // NOLINTEND
85
86public:
87 // constructor thunks
88 // NOLINTBEGIN
89 MCAPI void* $ctor(::UIResolvedDef const& definition);
90 // NOLINTEND
91
92public:
93 // virtual function thunks
94 // NOLINTBEGIN
95 MCAPI ::std::shared_ptr<::UICustomRenderer> $clone() const;
96
97 MCAPI bool $update(::IClientInstance& client, ::UIControl& owner, ::UIScene const&);
98
99 MCAPI void $render(::MinecraftUIRenderContext& renderContext, ::IClientInstance& client, ::UIControl& owner, int);
100 // NOLINTEND
101
102public:
103 // vftables
104 // NOLINTBEGIN
105 MCNAPI static void** $vftable();
106 // NOLINTEND
107};
Definition EquipmentPreviewRenderer.h:5
static MCAPI void ** $vftable()
Definition IClientInstance.h:5
Definition MinecraftUICustomRenderer.h:5
Definition MinecraftUIRenderContext.h:5
Definition UIControl.h:5
Definition UICustomRenderer.h:5
Definition UIResolvedDef.h:5
Definition UIScene.h:5
Definition EquipmentPreviewRenderer.h:13