LeviLamina
Loading...
Searching...
No Matches
InventoryItemRenderer Class Reference
Inheritance diagram for InventoryItemRenderer:

Classes

class  CachedProperties

Public Member Functions

virtual ::std::shared_ptr<::UICustomRendererclone () const
virtual void preRenderSetup (::MinecraftUIRenderContext &renderContext)
virtual bool update (::IClientInstance &client, ::UIControl &owner, ::UIScene const &)
virtual void render (::MinecraftUIRenderContext &renderContext, ::IClientInstance &client, ::UIControl &owner, int pass)
virtual::UIBatchType getBatchType () const
virtual int getCustomId () const
virtual int getNumRenderPasses () const
virtual::UIMaterialType getUIMaterialType (int pass) const
virtual::ResourceLocation getResourceLocation (int textureSlot, int pass) const
virtual bool getRequiresPreRenderSetup (int pass) const
virtual::UIItemRenderInfo getItemRenderInfo () const
MCAPI void _onItemChanged (::ItemRegistryRef itemRegistry, int itemId, int newAuxVal)
MCAPI void _updateCachedProperties (::UIControl const &owner)
MCAPI void * $ctor ()
MCAPI void $dtor ()
MCAPI ::std::shared_ptr<::UICustomRenderer$clone () const
MCAPI void $preRenderSetup (::MinecraftUIRenderContext &renderContext)
MCAPI bool $update (::IClientInstance &client, ::UIControl &owner, ::UIScene const &)
MCAPI void $render (::MinecraftUIRenderContext &renderContext, ::IClientInstance &client, ::UIControl &owner, int pass)
MCAPI::UIBatchType $getBatchType () const
MCFOLD int $getCustomId () const
MCAPI int $getNumRenderPasses () const
MCAPI::UIMaterialType $getUIMaterialType (int pass) const
MCAPI::ResourceLocation $getResourceLocation (int textureSlot, int pass) const
MCFOLD bool $getRequiresPreRenderSetup (int pass) const
MCAPI::UIItemRenderInfo $getItemRenderInfo () const
virtual void frameUpdate (::UIFrameUpdateContext &frameUpdateContext, ::UIControl &owner)
virtual void frameUpdate (::MinecraftUIFrameUpdateContext &, ::UIControl &)
virtual void render (::UIRenderContext &renderContext, ::IClientInstance &client, ::UIControl &owner, int pass)
virtual void preRenderSetup (::UIRenderContext &renderContext)
MCAPI void $frameUpdate (::UIFrameUpdateContext &frameUpdateContext, ::UIControl &owner)
MCFOLD void $frameUpdate (::MinecraftUIFrameUpdateContext &, ::UIControl &)
MCAPI void $render (::UIRenderContext &renderContext, ::IClientInstance &client, ::UIControl &owner, int pass)
MCAPI void $preRenderSetup (::UIRenderContext &renderContext)
virtual void onVisibilityChanged (bool visible)
virtual void collectScreenEvents (::std::queue<::ScreenEvent, ::std::deque<::ScreenEvent > > &screenEvents)
MCFOLD void $onVisibilityChanged (bool visible)
MCFOLD void $collectScreenEvents (::std::queue<::ScreenEvent, ::std::deque<::ScreenEvent > > &screenEvents)
virtual::mce::Color _getOverlayColor (::Actor &actor, float a) const
MCAPI::mce::MaterialPtr & getEntityMaterial ()
MCAPI::mce::MaterialPtr & getStaticMaterial ()
MCAPI::mce::MaterialPtr & getTransparentEntityMaterial ()
MCAPI void setupFoilShaderParameters (::ScreenContext &screenContext, ::BaseActorRenderContext &entityContext, ::Actor &entity, ::mce::Color const &changeColor, ::mce::Color const &changeColor2, ::Vec2 const &uvScale, float a, ::Brightness lightEmission, ::std::optional<::glm::vec3 > const &lightEmissionColor, bool allowOverlay) const
MCAPI void setupFoilShaderParameters (::ScreenContext &screenContext, ::BaseActorRenderContext &entityContext, ::Actor &entity, ::mce::Color const &overlayColor, ::mce::Color const &changeColor, ::mce::Color const &changeColor2, ::Vec2 const &uvScale, ::Vec4 const &uvAnim, float br, ::Brightness lightEmission, ::std::optional<::glm::vec3 > const &lightEmissionColor, bool allowOverlay) const
MCAPI void setupShaderParameters (::ScreenContext &screenContext, ::BaseActorRenderContext &entityContext, ::Actor &actor, float a) const
MCAPI::mce::Color $_getOverlayColor (::Actor &actor, float a) const

Static Public Member Functions

static MCAPI ::UIItemRenderInfo getItemRenderInfo (::ItemStack const &item)
static MCAPI ::ItemRenderChunkType getRenderTypeFromItem (::ItemStack const &item)
static MCAPI void ** $vftableForMinecraftUICustomRenderer ()
static MCAPI void ** $vftableForActorShaderManager ()
static MCAPI void ** $vftable ()
static MCAPI void setupFoilShaderParameters (::ScreenContext &screenContext, ::TextureUVCoordinateSet const &icon)
static MCAPI void setupFoilShaderParameters (::ScreenContext &screenContext, ::mce::Color const &overlay, ::mce::Color const &changeColor, ::mce::Color const &changeColor2, ::Vec2 const &uvScale)
static MCAPI void setupShaderParameters (::ScreenContext &screenContext, float br, ::mce::Color const &overlayColor, bool dimensionHasCeiling)
static MCAPI void setupShaderParameters (::ScreenContext &screenContext, ::mce::Color const &overlay, ::mce::Color const &changeColor, ::mce::Color const &changeColor2)
static MCAPI void setupShaderParameters (::ScreenContext &screenContext, ::BaseActorRenderContext &entityContext, ::Actor &actor, ::mce::Color const &overlay, float, ::Vec4 const &uvAnim)
static MCAPI void setupShaderParameters (::ScreenContext &screenContext, ::BaseActorRenderContext &entityContext, ::Actor &actor, ::mce::Color const &overlay, float, ::Brightness lightEmission, ::std::optional<::glm::vec3 > const &lightEmissionColor)
static MCAPI void setupShaderParameters (::ScreenContext &screenContext, ::BlockSource &source, ::BrightnessPair const &lightColorUV, ::glm::vec4 const &blockLightColor, float, bool ignoreLighting, ::LightTexture &lightTexture, ::Vec2 const &uvScale, ::Vec4 const &uvAnim)
static MCAPI void setupShaderParameters (::ScreenContext &screenContext, ::BlockSource &source, ::BlockPos const &pos, float a, bool ignoreLighting, ::LightTexture &lightTexture, ::std::weak_ptr<::LightPropagation::LightVolumeManager > const &lightVolumeManager, ::Vec2 const &uvScale, ::Vec4 const &uvAnim)
static MCAPI void setupShaderParameters (::ScreenContext &screenContext, ::BaseActorRenderContext &entityContext, ::Actor &entity, ::mce::Color const &overlay, ::mce::Color const &changeColor, ::mce::Color const &changeColor2, ::Vec4 const &uvAnim, float br, float, bool isEnchanted)
static MCAPI void setupShaderParameters (::ScreenContext &screenContext, ::mce::Color const &overlay, ::mce::Color const &changeColor, ::mce::Color const &changeColor2, ::mce::Color const &glintColor, float uvOffset1, float uvOffset2, float uvRot1, float uvRot2, ::Vec2 const &glintUVScale, ::Vec4 const &uvAnim, float)
static MCAPI void setupShaderParameters (::ScreenContext &screenContext, ::BlockSource &source, ::BlockPos const &pos, ::mce::Color const &changeColor, ::mce::Color const &changeColor2, float, ::LightTexture &lightTexture, ::std::weak_ptr<::LightPropagation::LightVolumeManager > const &lightVolumeManager, ::Vec2 const &uvScale, bool ignoreLighting, ::Brightness lightEmission, ::std::optional<::glm::vec3 > const &lightEmissionColor)
static MCAPI void setupShaderParameters (::ScreenContext &screenContext, ::BaseActorRenderContext &entityContext, ::Actor &entity, ::mce::Color const &overlay, ::mce::Color const &changeColor, ::mce::Color const &changeColor2, ::mce::Color const &glintColor, float uvOffset1, float uvOffset2, float uvRot1, float uvRot2, ::Vec2 const &glintUVScale, ::Vec4 const &uvAnim, float br, ::Brightness lightEmission, ::std::optional<::glm::vec3 > const &lightEmissionColor)
static MCAPI ::mce::Color getOverlayColor (::Actor &actor, float)
static MCAPI void setEntityConstants (::mce::ActorConstants &entityConstants, ::mce::RenderContext &renderContext, ::mce::Color const &tileLightColor, ::Vec2 const &tileLightColorUV, ::glm::vec4 const &blockLightColor, ::mce::Color const &overlay, ::mce::Color const &changeColor, ::mce::Color const &changeColor2, ::mce::Color const &glintColor, ::Vec2 const &glintUVScale, ::Vec4 const &uvAnim, float uvOffset1, float uvOffset2, float uvRot1, float uvRot2)
static MCAPI ::ResourceLocation const & GLINT_ACTOR_TEXTURE_LOCATION ()
static MCAPI ::ResourceLocation const & GLINT_ITEM_TEXTURE_LOCATION ()

Public Attributes

::ll::TypedStorage< 4, 4, int > mCustomId
::ll::TypedStorage< 4, 4, int > mItemId
::ll::TypedStorage< 4, 4, int > mAuxVal
::ll::TypedStorage< 4, 4, int > mCustomColor
::ll::TypedStorage< 8, 8, ::std::chrono::steady_clock::time_point > mPickupTime
::ll::TypedStorage< 1, 1, bool > mIsShowPickup
::ll::TypedStorage< 1, 1, bool > mIsFiltered
::ll::TypedStorage< 4, 4, int > mAnimationFrame
::ll::TypedStorage< 1, 1, bool > mIsEnchanted
::ll::TypedStorage< 1, 1, bool > mHidingIcon
::ll::TypedStorage< 4, 8, ::glm::vec2 > mPosition
::ll::TypedStorage< 8, 32, ::std::string > mTextureName
::ll::TypedStorage< 4, 4, ::UIMaterialType > mUIMaterialType
::ll::TypedStorage< 4, 4, ::ResourceFileSystem > mTextureFileSystem
::ll::TypedStorage< 8, 88, ::TextureUVCoordinateSetmIcon
::ll::TypedStorage< 8, 8, ::WeakPtr<::Item > > mItem
::ll::TypedStorage< 8, 152, ::ItemStackmItemInstance
::ll::TypedStorage< 4, 4, ::ItemRenderChunkType > mItemRenderType
::ll::TypedStorage< 8, 40, ::InventoryItemRenderer::CachedPropertiesmCachedProperties
::ll::TypedStorage< 4, 4, float > mPropagatedAlpha
::ll::TypedStorage< 8, 16, ::mce::MaterialPtrmEntityMaterial
::ll::TypedStorage< 8, 16, ::mce::MaterialPtrmTransparentEntityMaterial
::ll::TypedStorage< 8, 16, ::mce::MaterialPtrmStaticMaterial

Member Function Documentation

◆ clone()

virtual ::std::shared_ptr<::UICustomRenderer > InventoryItemRenderer::clone ( ) const
virtual

Implements UICustomRenderer.

◆ preRenderSetup() [1/2]

virtual void InventoryItemRenderer::preRenderSetup ( ::MinecraftUIRenderContext & renderContext)
virtual

Reimplemented from MinecraftUICustomRenderer.

◆ update()

virtual bool InventoryItemRenderer::update ( ::IClientInstance & client,
::UIControl & owner,
::UIScene const &  )
virtual

Reimplemented from UICustomRenderer.

◆ render() [1/2]

virtual void InventoryItemRenderer::render ( ::MinecraftUIRenderContext & renderContext,
::IClientInstance & client,
::UIControl & owner,
int pass )
virtual

◆ getCustomId()

virtual int InventoryItemRenderer::getCustomId ( ) const
virtual

Reimplemented from UICustomRenderer.

◆ getNumRenderPasses()

virtual int InventoryItemRenderer::getNumRenderPasses ( ) const
virtual

Reimplemented from UICustomRenderer.

◆ getRequiresPreRenderSetup()

virtual bool InventoryItemRenderer::getRequiresPreRenderSetup ( int pass) const
virtual

Reimplemented from UICustomRenderer.

◆ $vftableForMinecraftUICustomRenderer()

MCAPI void ** InventoryItemRenderer::$vftableForMinecraftUICustomRenderer ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $vftableForActorShaderManager()

MCAPI void ** InventoryItemRenderer::$vftableForActorShaderManager ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ frameUpdate()

virtual void MinecraftUICustomRenderer::frameUpdate ( ::UIFrameUpdateContext & frameUpdateContext,
::UIControl & owner )
virtualinherited

Implements UICustomRenderer.

◆ render() [2/2]

virtual void MinecraftUICustomRenderer::render ( ::UIRenderContext & renderContext,
::IClientInstance & client,
::UIControl & owner,
int pass )
virtualinherited

Implements UICustomRenderer.

◆ preRenderSetup() [2/2]

virtual void MinecraftUICustomRenderer::preRenderSetup ( ::UIRenderContext & renderContext)
virtualinherited

Reimplemented from UICustomRenderer.

◆ $vftable()

MCAPI void ** UICustomRenderer::$vftable ( )
staticinherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following files: