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 UIScene;
18struct ScreenEvent;
19struct UIItemRenderInfo;
20// clang-format on
21
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::UICustomRenderer>> mRenderer;
27 ::ll::TypedStorage<8, 32, ::std::string> mItemName;
28 // NOLINTEND
29
30public:
31 // virtual functions
32 // NOLINTBEGIN
33 virtual ~CustomRenderComponent() /*override*/ = default;
34
35 virtual ::std::unique_ptr<::UIComponent> clone(::UIControl& cloneOwner) const /*override*/;
36
37 virtual void reset() /*override*/;
38
39 virtual void onVisibilityChanged(bool visible) /*override*/;
40
41 virtual ::UIBatchType getBatchType() const;
42
43 virtual int getCustomId() const;
44
45 virtual int getNumRenderPasses() const;
46
47 virtual ::UIMaterialType getUIMaterialType(int pass) const;
48
49 virtual ::ResourceLocation getResourceLocation(int textureSlot, int pass) const;
50
51 virtual bool getRequiresPreRenderSetup(int pass) const;
52
53 virtual ::UIItemRenderInfo getItemRenderInfo() const;
54
55 virtual void collectScreenEvents(::std::queue<::ScreenEvent, ::std::deque<::ScreenEvent>>& screenEvents);
56
57 virtual ::std::string const& getTextToSpeechComponentValue() const /*override*/;
58 // NOLINTEND
59
60public:
61 // member functions
62 // NOLINTBEGIN
63 MCFOLD void setRenderer(::std::shared_ptr<::UICustomRenderer> renderer);
64
65 MCAPI bool updateCustom(::IClientInstance& client, ::UIScene const& scene);
66 // NOLINTEND
67
68public:
69 // virtual function thunks
70 // NOLINTBEGIN
71 MCAPI ::std::unique_ptr<::UIComponent> $clone(::UIControl& cloneOwner) const;
72
73 MCFOLD void $reset();
74
75 MCAPI void $onVisibilityChanged(bool visible);
76
77 MCAPI ::UIBatchType $getBatchType() const;
78
79 MCAPI int $getCustomId() const;
80
81 MCAPI int $getNumRenderPasses() const;
82
83 MCAPI ::UIMaterialType $getUIMaterialType(int pass) const;
84
85 MCAPI ::ResourceLocation $getResourceLocation(int textureSlot, int pass) const;
86
87 MCAPI bool $getRequiresPreRenderSetup(int pass) const;
88
89 MCAPI ::UIItemRenderInfo $getItemRenderInfo() const;
90
91 MCAPI void $collectScreenEvents(::std::queue<::ScreenEvent, ::std::deque<::ScreenEvent>>& screenEvents);
92
93 MCFOLD ::std::string const& $getTextToSpeechComponentValue() const;
94 // NOLINTEND
95
96public:
97 // vftables
98 // NOLINTBEGIN
99 MCNAPI static void** $vftable();
100 // NOLINTEND
101};
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 UIScene.h:5
Definition ScreenEvent.h:5
Definition UIItemRenderInfo.h:5