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"
26 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::UICustomRenderer>> mRenderer;
27 ::ll::TypedStorage<8, 32, ::std::string> mItemName;
33 virtual ~CustomRenderComponent() =
default;
35 virtual ::std::unique_ptr<::UIComponent> clone(::UIControl& cloneOwner)
const ;
37 virtual void reset() ;
39 virtual void onVisibilityChanged(
bool visible) ;
41 virtual ::UIBatchType getBatchType()
const;
43 virtual int getCustomId()
const;
45 virtual int getNumRenderPasses()
const;
47 virtual ::UIMaterialType getUIMaterialType(
int pass)
const;
49 virtual ::ResourceLocation getResourceLocation(
int textureSlot,
int pass)
const;
51 virtual bool getRequiresPreRenderSetup(
int pass)
const;
53 virtual ::UIItemRenderInfo getItemRenderInfo()
const;
55 virtual void collectScreenEvents(::std::queue<::ScreenEvent, ::std::deque<::ScreenEvent>>& screenEvents);
57 virtual ::std::string
const& getTextToSpeechComponentValue() const ;
63 MCFOLD
void setRenderer(::std::shared_ptr<::UICustomRenderer> renderer);
65 MCAPI
bool updateCustom(::IClientInstance& client, ::UIScene const& scene);
71 MCAPI ::std::unique_ptr<::UIComponent> $clone(::UIControl& cloneOwner) const;
75 MCAPI
void $onVisibilityChanged(
bool visible);
77 MCAPI ::UIBatchType $getBatchType() const;
79 MCAPI
int $getCustomId() const;
81 MCAPI
int $getNumRenderPasses() const;
83 MCAPI ::UIMaterialType $getUIMaterialType(
int pass) const;
85 MCAPI ::ResourceLocation $getResourceLocation(
int textureSlot,
int pass) const;
87 MCAPI
bool $getRequiresPreRenderSetup(
int pass) const;
89 MCAPI ::UIItemRenderInfo $getItemRenderInfo() const;
91 MCAPI
void $collectScreenEvents(::std::queue<::ScreenEvent, ::std::deque<::ScreenEvent>>& screenEvents);
93 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 ScreenEvent.h:5
Definition UIItemRenderInfo.h:5