Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ItemIconManager.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
9class ItemStackBase;
13namespace cg { class TextureSetImageContainer; }
14// clang-format on
15
16class ItemIconManager {
17public:
18 // static functions
19 // NOLINTBEGIN
20 MCNAPI static ::TextureUVCoordinateSet const& getIcon(::ResolvedItemIconInfo const& texInfo, bool inInventoryPane);
21
22 MCNAPI static ::TextureUVCoordinateSet const&
23 getIcon(::ItemStackBase const& item, int newAnimationFrame, bool inInventoryPane);
24
25 MCNAPI static ::TextureUVCoordinateSet const& getTextureUVCoordinateSet(::std::string const& name, int id);
26
27 MCNAPI static void initTextureTessellatorData(
28 ::ItemRegistryRef registry,
29 ::std::unordered_map<::ResourceLocation, ::cg::TextureSetImageContainer>&& availableIconTextures
30 );
31
33 ::std::unordered_map<::ResourceLocation, ::cg::TextureSetImageContainer>&& maybeUpdatedTextures
34 );
35 // NOLINTEND
36
37public:
38 // static variables
39 // NOLINTBEGIN
40 MCNAPI static ::TextureUVCoordinateSet const& mInvalidTextureUVCoordinateSet();
41
42 MCNAPI static ::std::weak_ptr<::AtlasItemManager>& mItemTextureItems();
43
44 MCNAPI static ::std::unordered_map<::ResourceLocation, ::cg::TextureSetImageContainer>&
46
47 MCNAPI static ::std::unordered_map<::std::string, ::TextureUVCoordinateSet>& mUnstoredFrameSet();
48 // NOLINTEND
49};
Definition AtlasItemManager.h:5
Definition ItemIconManager.h:5
static MCAPI ::std::unordered_map<::std::string, ::TextureUVCoordinateSet > & mUnstoredFrameSet()
static MCAPI ::TextureUVCoordinateSet const & getTextureUVCoordinateSet(::std::string const &name, int id)
static MCAPI ::std::weak_ptr<::AtlasItemManager > & mItemTextureItems()
static MCAPI void initTextureTessellatorData(::ItemRegistryRef registry, ::std::unordered_map<::ResourceLocation, ::cg::TextureSetImageContainer > &&availableIconTextures)
static MCAPI ::TextureUVCoordinateSet const & getIcon(::ResolvedItemIconInfo const &texInfo, bool inInventoryPane)
static MCAPI ::TextureUVCoordinateSet const & mInvalidTextureUVCoordinateSet()
static MCAPI ::std::unordered_map<::ResourceLocation, ::cg::TextureSetImageContainer > & mTextureTessellatorSourceData()
static MCAPI void updateTextureTessellatorDataForHotReload(::std::unordered_map<::ResourceLocation, ::cg::TextureSetImageContainer > &&maybeUpdatedTextures)
static MCAPI ::TextureUVCoordinateSet const & getIcon(::ItemStackBase const &item, int newAnimationFrame, bool inInventoryPane)
Definition ItemRegistryRef.h:36
Definition ItemStackBase.h:45
Definition ResourceLocation.h:15
Definition TextureSetImageContainer.h:20
Definition ResolvedItemIconInfo.h:8
Definition TextureUVCoordinateSet.h:5