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;
14namespace cg { class TextureSetImageContainer; }
15// clang-format on
16
17class ItemIconManager {
18public:
19 // static functions
20 // NOLINTBEGIN
21 MCAPI static void clearTextureTessellatorData();
22
23 MCAPI static ::TextureUVCoordinateSet const& getIcon(::ResolvedItemIconInfo const& texInfo, bool);
24
25 MCAPI static ::TextureUVCoordinateSet const&
26 getIcon(::ItemStackBase const& item, int newAnimationFrame, bool inInventoryPane);
27
28 MCAPI static ::TextureAtlasItem const& getTextureItem(::std::string const& name);
29
30 MCAPI static ::TextureUVCoordinateSet const& getTextureUVCoordinateSet(::std::string const& name, int id);
31
32 MCAPI static void initTextureTessellatorData(
33 ::ItemRegistryRef registry,
34 ::std::unordered_map<::ResourceLocation, ::cg::TextureSetImageContainer>&& availableIconTextures
35 );
36
37 MCAPI static bool trySetIconInfo(::std::string const& iconName, int& outFrameCount);
38
39 MCAPI static void updateTextureTessellatorDataForHotReload(
40 ::std::unordered_map<::ResourceLocation, ::cg::TextureSetImageContainer>&& maybeUpdatedTextures
41 );
42 // NOLINTEND
43
44public:
45 // static variables
46 // NOLINTBEGIN
47 MCAPI static ::TextureUVCoordinateSet const& mInvalidTextureUVCoordinateSet();
48
49 MCAPI static ::std::weak_ptr<::AtlasItemManager>& mItemTextureItems();
50
51 MCAPI static ::std::unordered_map<::ResourceLocation, ::cg::TextureSetImageContainer>&
52 mTextureTessellatorSourceData();
53
54 MCAPI static ::std::unordered_map<::std::string, ::TextureUVCoordinateSet>& mUnstoredFrameSet();
55 // NOLINTEND
56};
Definition AtlasItemManager.h:5
Definition ItemIconManager.h:5
Definition ItemRegistryRef.h:36
Definition ItemStackBase.h:44
Definition ResourceLocation.h:15
Definition TextureAtlasItem.h:5
Definition TextureSetImageContainer.h:20
Definition ResolvedItemIconInfo.h:8
Definition TextureUVCoordinateSet.h:5