3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/controls/UIMaterialType.h"
7#include "mc/client/gui/controls/renderers/MinecraftUICustomRenderer.h"
8#include "mc/client/gui/screens/UIBatchType.h"
9#include "mc/client/renderer/ActorShaderManager.h"
10#include "mc/client/renderer/actor/ItemRenderChunkType.h"
11#include "mc/client/renderer/texture/TextureUVCoordinateSet.h"
12#include "mc/common/WeakPtr.h"
13#include "mc/deps/core/resource/ResourceFileSystem.h"
14#include "mc/world/item/ItemStack.h"
41 ::ll::TypedStorage<4, 4, int> mCacheVersion;
42 ::ll::TypedStorage<4, 4, int> mItemIdAux;
43 ::ll::TypedStorage<4, 4, int> mChargedItem;
44 ::ll::TypedStorage<4, 4, int> mCustomColor;
45 ::ll::TypedStorage<1, 1, bool> mIsFiltered;
46 ::ll::TypedStorage<8, 8, int64> mRawPickUpTime;
47 ::ll::TypedStorage<1, 1, bool> mIsShowPickup;
54 ::ll::TypedStorage<4, 4, int> mCustomId;
55 ::ll::TypedStorage<4, 4, int> mItemId;
56 ::ll::TypedStorage<4, 4, int> mAuxVal;
57 ::ll::TypedStorage<4, 4, int> mCustomColor;
58 ::ll::TypedStorage<8, 8, ::std::chrono::steady_clock::time_point> mPickupTime;
59 ::ll::TypedStorage<1, 1, bool> mIsShowPickup;
60 ::ll::TypedStorage<1, 1, bool> mIsFiltered;
61 ::ll::TypedStorage<4, 4, int> mAnimationFrame;
62 ::ll::TypedStorage<1, 1, bool> mIsEnchanted;
63 ::ll::TypedStorage<1, 1, bool> mHidingIcon;
64 ::ll::TypedStorage<4, 8, ::glm::vec2> mPosition;
65 ::ll::TypedStorage<8, 32, ::std::string> mTextureName;
66 ::ll::TypedStorage<4, 4, ::UIMaterialType> mUIMaterialType;
67 ::ll::TypedStorage<4, 4, ::ResourceFileSystem> mTextureFileSystem;
68 ::ll::TypedStorage<8, 88, ::TextureUVCoordinateSet> mIcon;
69 ::ll::TypedStorage<8, 8, ::WeakPtr<::Item>> mItem;
70 ::ll::TypedStorage<8, 152, ::ItemStack> mItemInstance;
71 ::ll::TypedStorage<4, 4, ::ItemRenderChunkType> mItemRenderType;
72 ::ll::TypedStorage<8, 40, ::InventoryItemRenderer::CachedProperties> mCachedProperties;
78 virtual ~InventoryItemRenderer() ;
80 virtual ::std::shared_ptr<::UICustomRenderer> clone() const ;
82 virtual
void preRenderSetup(::MinecraftUIRenderContext& renderContext) ;
84 virtual
bool update(::IClientInstance& client, ::UIControl& owner, ::UIScene const&) ;
87 ::MinecraftUIRenderContext& renderContext,
88 ::IClientInstance& client,
93 virtual ::UIBatchType getBatchType() const ;
95 virtual
int getCustomId() const ;
97 virtual
int getNumRenderPasses() const ;
99 virtual ::UIMaterialType getUIMaterialType(
int pass) const ;
101 virtual ::ResourceLocation getResourceLocation(
int textureSlot,
int pass) const ;
103 virtual
bool getRequiresPreRenderSetup(
int pass) const ;
105 virtual ::UIItemRenderInfo getItemRenderInfo() const ;
111 MCAPI InventoryItemRenderer();
113 MCAPI
void _onItemChanged(::ItemRegistryRef itemRegistry,
int itemId,
int newAuxVal);
115 MCAPI
void _updateCachedProperties(::UIControl const& owner);
121 MCAPI static ::UIItemRenderInfo getItemRenderInfo(::ItemStack const& item);
123 MCAPI static ::ItemRenderChunkType getRenderTypeFromItem(::ItemStack const& item);
141 MCAPI ::std::shared_ptr<::UICustomRenderer> $clone() const;
143 MCAPI
void $preRenderSetup(::MinecraftUIRenderContext& renderContext);
145 MCAPI
bool $update(::IClientInstance& client, ::UIControl& owner, ::UIScene const&);
148 $render(::MinecraftUIRenderContext& renderContext, ::IClientInstance& client, ::UIControl& owner,
int pass);
150 MCAPI ::UIBatchType $getBatchType() const;
152 MCFOLD
int $getCustomId() const;
154 MCAPI
int $getNumRenderPasses() const;
156 MCAPI ::UIMaterialType $getUIMaterialType(
int pass) const;
158 MCAPI ::ResourceLocation $getResourceLocation(
int textureSlot,
int pass) const;
160 MCFOLD
bool $getRequiresPreRenderSetup(
int pass) const;
162 MCAPI ::UIItemRenderInfo $getItemRenderInfo() const;
Definition ActorShaderManager.h:5
Definition IClientInstance.h:5
Definition InventoryItemRenderer.h:13
Definition InventoryItemRenderer.h:5
static MCAPI void ** $vftableForMinecraftUICustomRenderer()
static MCAPI void ** $vftableForActorShaderManager()
Definition ItemRegistryRef.h:36
Definition MinecraftUICustomRenderer.h:5
Definition MinecraftUIRenderContext.h:5
Definition ResourceLocation.h:15
Definition UICustomRenderer.h:5
Definition UIItemRenderInfo.h:5