3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/controls/RenderableComponent.h"
7#include "mc/client/gui/controls/UIMaterialType.h"
8#include "mc/client/gui/screens/UIBatchType.h"
27 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::UICustomRenderer>> mRenderer;
28 ::ll::TypedStorage<8, 32, ::std::string> mItemName;
33 CustomRenderComponent();
38 virtual ~CustomRenderComponent() ;
40 virtual ::std::unique_ptr<::UIComponent> clone(::UIControl& cloneOwner)
const ;
42 virtual void reset() ;
44 virtual void onVisibilityChanged(
bool visible) ;
46 virtual ::UIBatchType getBatchType()
const;
48 virtual int getCustomId()
const;
50 virtual int getNumRenderPasses()
const;
52 virtual ::UIMaterialType getUIMaterialType(
int pass)
const;
54 virtual ::ResourceLocation getResourceLocation(
int textureSlot,
int pass)
const;
56 virtual bool getRequiresPreRenderSetup(
int pass)
const;
58 virtual ::UIItemRenderInfo getItemRenderInfo()
const;
60 virtual void collectScreenEvents(::std::queue<::ScreenEvent, ::std::deque<::ScreenEvent>>& screenEvents);
62 virtual ::std::string
const& getTextToSpeechComponentValue() const ;
68 MCAPI explicit CustomRenderComponent(::UIControl& owner);
70 MCFOLD
void preRenderSetup(::UIRenderContext& context);
72 MCAPI
void render(::UIRenderContext& context,
int pass);
74 MCAPI
void renderCustom(::UIRenderContext& context, ::IClientInstance& client,
int pass);
76 MCFOLD
void setRenderer(::std::shared_ptr<::UICustomRenderer> renderer);
78 MCAPI
bool update(::UIRenderContext& context);
80 MCAPI
bool updateCustom(::IClientInstance& client, ::UIScene const& scene);
86 MCFOLD static
int getInvalidCustomId();
92 MCAPI
void* $ctor(::UIControl& owner);
104 MCAPI ::std::unique_ptr<::UIComponent> $clone(::UIControl& cloneOwner) const;
106 MCFOLD
void $reset();
108 MCAPI
void $onVisibilityChanged(
bool visible);
110 MCAPI ::UIBatchType $getBatchType() const;
112 MCAPI
int $getCustomId() const;
114 MCAPI
int $getNumRenderPasses() const;
116 MCAPI ::UIMaterialType $getUIMaterialType(
int pass) const;
118 MCAPI ::ResourceLocation $getResourceLocation(
int textureSlot,
int pass) const;
120 MCAPI
bool $getRequiresPreRenderSetup(
int pass) const;
122 MCAPI ::UIItemRenderInfo $getItemRenderInfo() const;
124 MCAPI
void $collectScreenEvents(::std::queue<::ScreenEvent, ::std::deque<::ScreenEvent>>& screenEvents);
126 MCFOLD ::std::
string const& $getTextToSpeechComponentValue() const;
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 UICustomRenderer.h:5
Definition UIRenderContext.h:5
Definition ScreenEvent.h:5
Definition UIItemRenderInfo.h:5