Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ChestRenderer Class Reference
Inheritance diagram for ChestRenderer:

Public Types

using NameplateBackgroundInfo = ::std::variant<::std::shared_ptr<::mce::Mesh>, int>

Public Member Functions

virtual void render (::BaseActorRenderContext &renderContext, ::BlockActorRenderData &blockEntityRenderData)
MCAPI ChestRenderer (::std::shared_ptr<::mce::TextureGroup > textureGroup)
MCAPI void * $ctor (::std::shared_ptr<::mce::TextureGroup > textureGroup)
MCAPI void $render (::BaseActorRenderContext &renderContext, ::BlockActorRenderData &blockEntityRenderData)
virtual void renderAlpha (::BaseActorRenderContext &renderContext, ::BlockActorRenderData &blockEntityRenderData)
virtual ::std::vector<::NameTagRenderObject > extractText (::Tessellator &tessellator, ::BlockActor &entity, ::std::string const &str, ::std::vector< int > const &widths, ::Vec3 camTargetPos)
MCAPI void _renderModel (::ScreenContext &screenContext, ::dragon::RenderMetadata const &renderMetadata, ::Model &model, ::ActorTextureInfo const &actorTextureInfo, ::mce::MaterialPtr const &forcedMaterial, ::mce::ClientTexture const &forcedTexture) const
MCFOLD void $renderAlpha (::BaseActorRenderContext &renderContext, ::BlockActorRenderData &blockEntityRenderData)
MCAPI ::std::vector<::NameTagRenderObject > $extractText (::Tessellator &tessellator, ::BlockActor &entity, ::std::string const &str, ::std::vector< int > const &widths, ::Vec3 camTargetPos)
MCAPI ::std::vector<::NameTagRenderObject > extractRenderTextObjects (::Tessellator &tessellator, ::std::string const &str, ::std::vector< int > const &widths, ::Vec3 const &pos, ::mce::Color const &color, float scale, ::std::optional<::Quaternion > const &rotation, ::std::optional<::mce::Color > const &backgroundColor, bool depthTest, bool showBackface, bool showTextBackface, float lineGapHeight) const
MCAPI void * $ctor ()
MCAPI void $dtor ()
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 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 void _renderModel (::ScreenContext &screenContext, ::dragon::RenderMetadata const &renderMetadata, ::Model &model, ::PBRTexturePtrs const &actorTexturePtrs, ::mce::MaterialPtr const &forcedMaterial, ::mce::ClientTexture const &forcedTexture)
static MCAPI void _renderModel (::ScreenContext &screenContext, ::dragon::RenderMetadata const &renderMetadata, ::Model &model, ::mce::ClientTexture const &texture, ::mce::MaterialPtr const &forcedMaterial, ::mce::ClientTexture const &forcedTexture)
static MCAPI void ** $vftable ()
static MCAPI ::NameTagRenderObject _extractRenderTextObject (::Tessellator &tessellator, ::std::string const &str, ::std::vector< int > const &widths, ::Vec3 const &pos, ::mce::Color const &textColor, ::mce::MaterialPtr const *tagMatOverride, ::mce::MaterialPtr const *textMatOverride, ::mce::Color const &tagColor, float scale, ::std::optional<::Quaternion > const &rotation, float lineGapHeight)
static MCAPI ::mce::Color const & NAME_TAG_BACKGROUND_COLOR ()
static MCAPI ::mce::Color const & NAME_TAG_BACKGROUND_COLOR_EDU ()
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, ::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, ::BaseActorRenderContext &entityContext, ::Actor &entity, ::mce::Color const &overlay, ::mce::Color const &tintColor, ::mce::Color const &tintColor2, 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, ::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, ::BlockSource &source, ::BlockPos const &pos, float a, bool ignoreLighting, ::LightTexture &lightTexture, ::std::weak_ptr<::LightPropagation::LightVolumeManager > const &lightVolumeManager, ::Vec2 const &uvScale, ::Vec4 const &uvAnim, ::shaderpacking::BlockLightingFlags flags)
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 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< 8, 320, ::ActorTextureInfo > largeTex
::ll::TypedStorage< 8, 320, ::ActorTextureInfo > normalTex
::ll::TypedStorage< 8, 320, ::ActorTextureInfo > trappedLargeTex
::ll::TypedStorage< 8, 320, ::ActorTextureInfo > trappedTex
::ll::TypedStorage< 8, 320, ::ActorTextureInfo > enderTex
::ll::TypedStorage< 8, 1280, ::Bedrock::DenseEnumMap<::CopperType, ::ActorTextureInfo, 4 > > mCopperTextures
::ll::TypedStorage< 8, 1280, ::Bedrock::DenseEnumMap<::CopperType, ::ActorTextureInfo, 4 > > mLargeCopperTextures
::ll::TypedStorage< 8, 2072, ::ChestModel > mChestModel
::ll::TypedStorage< 8, 2072, ::ChestModel > mLargeChestModel
::ll::TypedStorage< 8, 16, ::mce::MaterialPtr > mNameTagBackgroundMat
::ll::TypedStorage< 8, 16, ::mce::MaterialPtr > mNameTagBackgroundWithBackfaceMat
::ll::TypedStorage< 8, 16, ::mce::MaterialPtr > mNameTagTextMat
::ll::TypedStorage< 8, 16, ::mce::MaterialPtr > mNameTagTextWithBackfaceMat
::ll::TypedStorage< 8, 16, ::mce::MaterialPtr > mDepthTestedNameTagMat
::ll::TypedStorage< 8, 16, ::mce::MaterialPtr > mDepthTestedNameTagWithBackfaceMat
::ll::TypedStorage< 8, 16, ::mce::MaterialPtr > mDepthTestedNameTextMat
::ll::TypedStorage< 8, 16, ::mce::MaterialPtr > mDepthTestedNameTextWithBackfaceMat
::ll::TypedStorage< 8, 16, ::mce::MaterialPtr > mEntityMaterial
::ll::TypedStorage< 8, 16, ::mce::MaterialPtr > mTransparentEntityMaterial
::ll::TypedStorage< 8, 16, ::mce::MaterialPtr > mStaticMaterial

Constructor & Destructor Documentation

◆ ChestRenderer()

MCAPI ChestRenderer::ChestRenderer ( ::std::shared_ptr<::mce::TextureGroup > textureGroup)
explicit
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.

Member Function Documentation

◆ render()

virtual void ChestRenderer::render ( ::BaseActorRenderContext & renderContext,
::BlockActorRenderData & blockEntityRenderData )
virtual

Implements BlockActorRenderer.

◆ $ctor() [1/2]

MCAPI void * ChestRenderer::$ctor ( ::std::shared_ptr<::mce::TextureGroup > textureGroup)
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.

◆ _renderModel() [1/3]

MCAPI void BlockActorRenderer::_renderModel ( ::ScreenContext & screenContext,
::dragon::RenderMetadata const & renderMetadata,
::Model & model,
::ActorTextureInfo const & actorTextureInfo,
::mce::MaterialPtr const & forcedMaterial,
::mce::ClientTexture const & forcedTexture ) const
inherited
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.

◆ _renderModel() [2/3]

MCAPI void BlockActorRenderer::_renderModel ( ::ScreenContext & screenContext,
::dragon::RenderMetadata const & renderMetadata,
::Model & model,
::PBRTexturePtrs const & actorTexturePtrs,
::mce::MaterialPtr const & forcedMaterial,
::mce::ClientTexture const & forcedTexture )
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.

◆ _renderModel() [3/3]

MCAPI void BlockActorRenderer::_renderModel ( ::ScreenContext & screenContext,
::dragon::RenderMetadata const & renderMetadata,
::Model & model,
::mce::ClientTexture const & texture,
::mce::MaterialPtr const & forcedMaterial,
::mce::ClientTexture const & forcedTexture )
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.

◆ $vftable()

MCAPI void ** BlockActorRenderer::$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.

◆ _extractRenderTextObject()

MCAPI ::NameTagRenderObject BaseActorRenderer::_extractRenderTextObject ( ::Tessellator & tessellator,
::std::string const & str,
::std::vector< int > const & widths,
::Vec3 const & pos,
::mce::Color const & textColor,
::mce::MaterialPtr const * tagMatOverride,
::mce::MaterialPtr const * textMatOverride,
::mce::Color const & tagColor,
float scale,
::std::optional<::Quaternion > const & rotation,
float lineGapHeight )
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.

◆ NAME_TAG_BACKGROUND_COLOR_EDU()

MCAPI ::mce::Color const & BaseActorRenderer::NAME_TAG_BACKGROUND_COLOR_EDU ( )
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.

◆ $ctor() [2/2]

MCAPI void * BaseActorRenderer::$ctor ( )
inherited
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.

◆ $dtor()

MCAPI void BaseActorRenderer::$dtor ( )
inherited
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.

◆ getEntityMaterial()

MCAPI::mce::MaterialPtr & ActorShaderManager::getEntityMaterial ( )
inherited
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.

◆ getStaticMaterial()

MCAPI::mce::MaterialPtr & ActorShaderManager::getStaticMaterial ( )
inherited
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.

◆ getTransparentEntityMaterial()

MCAPI::mce::MaterialPtr & ActorShaderManager::getTransparentEntityMaterial ( )
inherited
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.

◆ setupFoilShaderParameters() [1/3]

MCAPI void ActorShaderManager::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
inherited
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.

◆ setupFoilShaderParameters() [2/3]

MCAPI void ActorShaderManager::setupFoilShaderParameters ( ::ScreenContext & screenContext,
::TextureUVCoordinateSet const & icon )
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.

◆ setupFoilShaderParameters() [3/3]

MCAPI void ActorShaderManager::setupFoilShaderParameters ( ::ScreenContext & screenContext,
::mce::Color const & overlay,
::mce::Color const & changeColor,
::mce::Color const & changeColor2,
::Vec2 const & uvScale )
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.

◆ GLINT_ACTOR_TEXTURE_LOCATION()

MCAPI ::ResourceLocation const & ActorShaderManager::GLINT_ACTOR_TEXTURE_LOCATION ( )
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.

◆ GLINT_ITEM_TEXTURE_LOCATION()

MCAPI ::ResourceLocation const & ActorShaderManager::GLINT_ITEM_TEXTURE_LOCATION ( )
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: