3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/renderer/actor/ActorRenderer.h"
7#include "mc/client/renderer/actor/IconBlitGlint.h"
8#include "mc/client/renderer/actor/ItemRenderChunkType.h"
9#include "mc/deps/minecraft_renderer/renderer/MaterialPtr.h"
10#include "mc/deps/renderer/MatrixStack.h"
11#include "mc/world/level/block/BlockShape.h"
40 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::BlockTessellator>> mBlockTessellator;
41 ::ll::TypedStorage<4, 64, float[16]> mRandomFloats;
42 ::ll::TypedStorage<8, 64, ::std::unordered_map<short, ::ItemGraphics>> mItemGraphics;
43 ::ll::TypedStorage<8, 16, ::mce::MaterialPtr> mUIBlitMaterial;
44 ::ll::TypedStorage<8, 16, ::mce::MaterialPtr> mUIIconBlitMaterial;
45 ::ll::TypedStorage<8, 16, ::mce::MaterialPtr> mUIIconBlitMaterialMultiColorTint;
46 ::ll::TypedStorage<8, 16, ::mce::MaterialPtr> mUIIconUnblitMaterial;
47 ::ll::TypedStorage<8, 16, ::mce::MaterialPtr> mUIIconBlitGlintMaterial;
48 ::ll::TypedStorage<8, 16, ::mce::MaterialPtr> mEntityAlphatestChangeColorMaterial;
49 ::ll::TypedStorage<8, 16, ::mce::MaterialPtr> mEntityAlphatestChangeColorGlintMaterial;
50 ::ll::TypedStorage<8, 16, ::mce::MaterialPtr> mEntityAlphatestMultiColorTintMaterial;
51 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::BannerBlockActor>> mBannerEntity;
52 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::DecoratedPotBlockActor>> mDecoratedPotBlockEntity;
53 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::SkullBlockActor>> mSkullEntity;
54 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ConduitBlockActor>> mConduitEntity;
55 ::ll::TypedStorage<1, 1, bool> mSupportsNewVertexFormat;
65 virtual ~ItemRenderer() ;
67 virtual void render(::BaseActorRenderContext& renderContext, ::ActorRenderData& entityRenderData) ;
73 MCAPI ItemRenderer(::std::shared_ptr<::mce::TextureGroup> textureGroup,
bool supportsNewVertexFormat);
75 MCAPI
void _applyBlockItemTransforms(
76 ::MatrixStack::MatrixStackRef& worldMatrix,
77 ::BlockType
const* blockType,
85 _getGuiBlockItemTransforms(::Block
const* block, ::Vec3 offset,
float scale,
float squeezeAmount)
const;
87 MCAPI
void _getGuiItemColors(::ItemStack
const& item,
int& color,
int& secondaryColor)
const;
89 MCAPI ::IconBlitGlint _getIconBlitGlint(::ItemRenderChunkType itemRenderChunkType, ::ItemStack
const& item)
const;
91 MCAPI ::mce::TexturePtr _getShulkerBoxTexture(::ItemStack
const& item);
93 MCAPI
void _renderBannerItem(
94 ::BaseActorRenderContext& renderContext,
95 ::ItemStack
const& item,
96 ::ItemActor& itemEntity,
101 MCAPI
void _renderBlockItem(
102 ::BaseActorRenderContext& renderContext,
103 ::ItemStack
const& item,
104 ::ItemActor& itemEntity,
105 ::BlockType
const* blockType,
107 float actorFrameAlpha,
111 MCAPI
void _renderDecoratedPotItem(
112 ::BaseActorRenderContext& renderContext,
113 ::ItemStack
const& item,
114 ::ItemActor& itemEntity,
118 MCAPI
void _renderGuiBlockTypeItem(
119 ::BaseActorRenderContext& renderContext,
120 ::ItemStack
const& item,
121 ::BlockGraphics
const* blockGraphics,
122 ::mce::TexturePtr
const& texture,
125 float lightMultiplier,
126 float alphaMultiplier,
128 float pickupPopPercentage,
132 MCAPI
void _renderGuiDataDrivenBlockItem(
133 ::BaseActorRenderContext& renderContext,
134 ::Block
const* block,
142 MCAPI
bool _renderGuiEntityBlockItem(
143 ::BaseActorRenderContext& renderContext,
144 ::ItemRenderChunkType itemRenderChunkType,
145 ::dragon::RenderMetadata renderMetadata,
146 ::ItemStack
const& item,
149 float lightMultiplier,
153 MCAPI
void _renderItemGroup(
154 ::BaseActorRenderContext& renderContext,
155 ::ItemActor& itemEntity,
162 MCAPI
void _renderShieldItem(
163 ::BaseActorRenderContext& renderContext,
164 ::ItemStack
const& item,
165 ::ItemActor& itemEntity,
166 float actorFrameAlpha
169 MCAPI
void forceGraphicsLoad();
171 MCAPI ::ItemGraphics& getGraphics(::ItemStack
const& item);
174 ::BaseActorRenderContext& renderContext,
175 ::mce::TexturePtr
const& texture,
179 ::TextureUVCoordinateSet
const& iconTextureCoord,
182 float lightMultiplier,
183 float alphaMultiplier,
185 int secondaryColorMultiplier,
188 ::IconBlitGlint iconBlitGlint,
189 bool useMultiColorTextureTinting
192 MCAPI
void renderGuiItemInChunk(
193 ::BaseActorRenderContext& renderContext,
194 ::ItemRenderChunkType itemRenderChunkType,
195 ::ItemStack
const& item,
198 float lightMultiplier,
199 float alphaMultiplier,
204 ::std::optional<::TextureUVCoordinateSet>
const& customIconUVCoords
207 MCAPI
void renderGuiItemNew(
208 ::BaseActorRenderContext& renderContext,
209 ::ItemStack
const& item,
213 bool renderEnchantmentFoil,
215 float lightMultiplier,
224 MCAPI
void*
$ctor(::std::shared_ptr<::mce::TextureGroup> textureGroup,
bool supportsNewVertexFormat);
236 MCAPI
void $render(::BaseActorRenderContext& renderContext, ::ActorRenderData& entityRenderData);
Definition ActorRenderer.h:5
Definition BannerBlockActor.h:22
Definition BaseActorRenderContext.h:34
Definition BlockType.h:84
Definition ConduitBlockActor.h:20
Definition DecoratedPotBlockActor.h:23
Definition ItemActor.h:29
Definition ItemRenderer.h:5
static MCAPI void ** $vftable()
Definition ItemStack.h:26
Definition SkullBlockActor.h:19
Definition TextureGroup.h:7
Definition TexturePtr.h:19
Definition ActorRenderData.h:5
Definition BlockGraphics.h:5
Definition BlockTessellator.h:5
Definition ItemGraphics.h:5
Definition TextureUVCoordinateSet.h:5