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/world/level/block/BlockShape.h"
47 ::ll::UntypedStorage<4, 12> mUnkcd7850;
48 ::ll::UntypedStorage<4, 4> mUnkf1067b;
49 ::ll::UntypedStorage<4, 4> mUnk5e0da4;
54 GuiItemPopTransform& operator=(GuiItemPopTransform
const&);
55 GuiItemPopTransform(GuiItemPopTransform
const&);
56 GuiItemPopTransform();
64 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::BlockTessellator>> mBlockTessellator;
65 ::ll::TypedStorage<4, 64, float[16]> mRandomFloats;
66 ::ll::TypedStorage<8, 64, ::std::unordered_map<short, ::ItemGraphics>> mItemGraphics;
67 ::ll::TypedStorage<8, 16, ::mce::MaterialPtr> mUIBlitMaterial;
68 ::ll::TypedStorage<8, 16, ::mce::MaterialPtr> mUIIconBlitMaterial;
69 ::ll::TypedStorage<8, 16, ::mce::MaterialPtr> mUIIconBlitMaterialMultiColorTint;
70 ::ll::TypedStorage<8, 16, ::mce::MaterialPtr> mUIIconUnblitMaterial;
71 ::ll::TypedStorage<8, 16, ::mce::MaterialPtr> mUIIconBlitGlintMaterial;
72 ::ll::TypedStorage<8, 16, ::mce::MaterialPtr> mEntityAlphatestChangeColorMaterial;
73 ::ll::TypedStorage<8, 16, ::mce::MaterialPtr> mEntityAlphatestChangeColorGlintMaterial;
74 ::ll::TypedStorage<8, 16, ::mce::MaterialPtr> mEntityAlphatestMultiColorTintMaterial;
75 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::BannerBlockActor>> mBannerEntity;
76 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::DecoratedPotBlockActor>> mDecoratedPotBlockEntity;
77 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::SkullBlockActor>> mSkullEntity;
78 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ConduitBlockActor>> mConduitEntity;
79 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ShulkerBoxBlockActor>> mShulkerBoxEntity;
80 ::ll::TypedStorage<1, 1, bool> mSupportsNewVertexFormat;
90 virtual ~ItemRenderer() =
default;
92 virtual void render(::BaseActorRenderContext& renderContext, ::ActorRenderData& entityRenderData) ;
98 MCAPI ItemRenderer(::std::shared_ptr<::mce::TextureGroup> textureGroup,
bool supportsNewVertexFormat);
100 MCAPI
void _renderBannerItem(
101 ::BaseActorRenderContext& renderContext,
102 ::ItemStack
const& item,
103 ::ItemActor& itemEntity,
105 float actorFrameAlpha
108 MCAPI
void _renderBlockItem(
109 ::BaseActorRenderContext& renderContext,
110 ::ItemStack
const& item,
111 ::ItemActor& itemEntity,
112 ::BlockType
const* blockType,
113 ::BlockShape
const shape,
114 float actorFrameAlpha,
118 MCAPI
void _renderDecoratedPotItem(
119 ::BaseActorRenderContext& renderContext,
120 ::ItemStack
const& item,
121 ::ItemActor& itemEntity,
125 MCAPI
void _renderGuiBlockTypeItem(
126 ::BaseActorRenderContext& renderContext,
127 ::ItemStack
const& item,
128 ::BlockGraphics
const* blockGraphics,
129 ::mce::TexturePtr
const& texture,
132 float lightMultiplier,
133 float alphaMultiplier,
135 float const pickupPopPercentage
138 MCAPI
void _renderGuiDataDrivenBlockItem(
139 ::BaseActorRenderContext& renderContext,
140 ::Block
const* block,
144 float const squeezeAmount,
148 MCAPI
bool _renderGuiEntityBlockItem(
149 ::BaseActorRenderContext& renderContext,
150 ::ItemRenderChunkType itemRenderChunkType,
151 ::dragon::RenderMetadata
const renderMetadata,
152 ::ItemStack
const& item,
155 float lightMultiplier,
159 MCAPI
void _renderItemGroup(
160 ::BaseActorRenderContext& renderContext,
161 ::ItemActor& itemEntity,
165 bool const useMatrixAsIs
168 MCAPI
void forceGraphicsLoad();
170 MCAPI ::ItemGraphics& getGraphics(::ItemStack
const& item);
173 ::BaseActorRenderContext& renderContext,
174 ::mce::TexturePtr
const& texture,
178 ::TextureUVCoordinateSet
const& iconTextureCoord,
181 float lightMultiplier,
182 float alphaMultiplier,
184 int secondaryColorMultiplier,
187 ::IconBlitGlint
const iconBlitGlint,
188 bool const useMultiColorTextureTinting
191 MCAPI
void renderGuiItemInChunk(
192 ::BaseActorRenderContext& renderContext,
193 ::ItemRenderChunkType itemRenderChunkType,
194 ::ItemStack
const& item,
197 float lightMultiplier,
198 float alphaMultiplier,
203 ::std::optional<::TextureUVCoordinateSet>
const& customIconUVCoords
206 MCAPI
void renderGuiItemNew(
207 ::BaseActorRenderContext& renderContext,
208 ::ItemStack
const& item,
212 bool renderEnchantmentFoil,
214 float lightMultiplier,
223 MCAPI
static void _getGuiItemColors(::ItemStack
const& item,
int& color,
int& secondaryColor);
225 MCAPI
static void _renderShieldItem(
226 ::BaseActorRenderContext& renderContext,
227 ::ItemStack
const& item,
228 ::ItemActor& itemEntity,
229 float actorFrameAlpha
232 MCAPI
static float getRenderYOffset(::ItemActor
const& itemEntity, ::BlockType
const* block,
float ageInSeconds);
238 MCAPI
void* $ctor(::std::shared_ptr<::mce::TextureGroup> textureGroup,
bool supportsNewVertexFormat);
244 MCAPI
void $render(::BaseActorRenderContext& renderContext, ::ActorRenderData& entityRenderData);
Definition ActorRenderData.h:5
Definition ActorRenderer.h:5
Definition BannerBlockActor.h:21
Definition BaseActorRenderContext.h:5
Definition BlockGraphics.h:5
Definition BlockTessellator.h:5
Definition BlockType.h:79
Definition ConduitBlockActor.h:20
Definition DecoratedPotBlockActor.h:23
Definition ItemActor.h:30
Definition ItemGraphics.h:5
Definition ItemRenderer.h:5
Definition ItemStack.h:24
Definition ShulkerBoxBlockActor.h:24
Definition SkullBlockActor.h:19
Definition TextureGroup.h:7
Definition TexturePtr.h:7
Definition TextureUVCoordinateSet.h:5