LeviLamina
Loading...
Searching...
No Matches
CustomRenderComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/controls/RenderableComponent.h"
7#include "mc/client/gui/controls/UIMaterialType.h"
8#include "mc/client/gui/screens/UIBatchType.h"
9
10// auto generated forward declare list
11// clang-format off
12class IClientInstance;
14class UIComponent;
15class UIControl;
17class UIRenderContext;
18class UIScene;
19struct ScreenEvent;
20struct UIItemRenderInfo;
21// clang-format on
22
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::UICustomRenderer>> mRenderer;
28 ::ll::TypedStorage<8, 32, ::std::string> mItemName;
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
33 CustomRenderComponent();
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 virtual ~CustomRenderComponent() /*override*/;
39
40 virtual ::std::unique_ptr<::UIComponent> clone(::UIControl& cloneOwner) const /*override*/;
41
42 virtual void reset() /*override*/;
43
44 virtual void onVisibilityChanged(bool visible) /*override*/;
45
46 virtual ::UIBatchType getBatchType() const;
47
48 virtual int getCustomId() const;
49
50 virtual int getNumRenderPasses() const;
51
52 virtual ::UIMaterialType getUIMaterialType(int pass) const;
53
54 virtual ::ResourceLocation getResourceLocation(int textureSlot, int pass) const;
55
56 virtual bool getRequiresPreRenderSetup(int pass) const;
57
58 virtual ::UIItemRenderInfo getItemRenderInfo() const;
59
60 virtual void collectScreenEvents(::std::queue<::ScreenEvent, ::std::deque<::ScreenEvent>>& screenEvents);
61
62 virtual ::std::string const& getTextToSpeechComponentValue() const /*override*/;
63 // NOLINTEND
64
65public:
66 // member functions
67 // NOLINTBEGIN
68 MCAPI explicit CustomRenderComponent(::UIControl& owner);
69
70 MCFOLD void preRenderSetup(::UIRenderContext& context);
71
72 MCAPI void render(::UIRenderContext& context, int pass);
73
74 MCAPI void renderCustom(::UIRenderContext& context, ::IClientInstance& client, int pass);
75
76 MCFOLD void setRenderer(::std::shared_ptr<::UICustomRenderer> renderer);
77
78 MCAPI bool update(::UIRenderContext& context);
79
80 MCAPI bool updateCustom(::IClientInstance& client, ::UIScene const& scene);
81 // NOLINTEND
82
83public:
84 // static functions
85 // NOLINTBEGIN
86 MCFOLD static int getInvalidCustomId();
87 // NOLINTEND
88
89public:
90 // constructor thunks
91 // NOLINTBEGIN
92 MCAPI void* $ctor(::UIControl& owner);
93 // NOLINTEND
94
95public:
96 // destructor thunk
97 // NOLINTBEGIN
98 MCAPI void $dtor();
99 // NOLINTEND
100
101public:
102 // virtual function thunks
103 // NOLINTBEGIN
104 MCAPI ::std::unique_ptr<::UIComponent> $clone(::UIControl& cloneOwner) const;
105
106 MCFOLD void $reset();
107
108 MCAPI void $onVisibilityChanged(bool visible);
109
110 MCAPI ::UIBatchType $getBatchType() const;
111
112 MCAPI int $getCustomId() const;
113
114 MCAPI int $getNumRenderPasses() const;
115
116 MCAPI ::UIMaterialType $getUIMaterialType(int pass) const;
117
118 MCAPI ::ResourceLocation $getResourceLocation(int textureSlot, int pass) const;
119
120 MCAPI bool $getRequiresPreRenderSetup(int pass) const;
121
122 MCAPI ::UIItemRenderInfo $getItemRenderInfo() const;
123
124 MCAPI void $collectScreenEvents(::std::queue<::ScreenEvent, ::std::deque<::ScreenEvent>>& screenEvents);
125
126 MCFOLD ::std::string const& $getTextToSpeechComponentValue() const;
127 // NOLINTEND
128
129public:
130 // vftables
131 // NOLINTBEGIN
132 MCNAPI static void** $vftable();
133 // NOLINTEND
134};
Definition CustomRenderComponent.h:5
static MCAPI void ** $vftable()
Definition IClientInstance.h:5
Definition RenderableComponent.h:5
Definition ResourceLocation.h:15
Definition UIComponent.h:5
Definition UIControl.h:5
Definition UICustomRenderer.h:5
Definition UIRenderContext.h:5
Definition UIScene.h:5
Definition ScreenEvent.h:5
Definition UIItemRenderInfo.h:5