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