3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/controls/renderers/MinecraftUICustomRenderer.h"
7#include "mc/deps/minecraft_renderer/renderer/Mesh.h"
8#include "mc/deps/minecraft_renderer/renderer/TexturePtr.h"
29 enum class HeartType :
int {
57 ::ll::TypedStorage<4, 4, int> mHealth;
58 ::ll::TypedStorage<4, 4, int> mOldHealth;
59 ::ll::TypedStorage<4, 4, int> mMaxHealth;
60 ::ll::TypedStorage<4, 4, int> mAbsorption;
68 ::ll::TypedStorage<4, 4, ::HudHeartRenderer::HeartType> mType;
69 ::ll::TypedStorage<8, 8, uint64> mOffset;
70 ::ll::TypedStorage<8, 8, uint64> mCount;
77 ::ll::TypedStorage<1, 1, bool> mHasLoadedTextures;
78 ::ll::TypedStorage<1, 1, bool> mShouldRender;
79 ::ll::TypedStorage<8, 24, ::HudHeartRenderer::HeartIconData> mBackgroundIcon;
80 ::ll::TypedStorage<8, 24, ::HudHeartRenderer::HeartIconData> mFullFlashIcon;
81 ::ll::TypedStorage<8, 24, ::HudHeartRenderer::HeartIconData> mHalfFlashIcon;
82 ::ll::TypedStorage<8, 24, ::HudHeartRenderer::HeartIconData> mFullAbsorptionIcon;
83 ::ll::TypedStorage<8, 24, ::HudHeartRenderer::HeartIconData> mHalfAbsorptionIcon;
84 ::ll::TypedStorage<8, 24, ::HudHeartRenderer::HeartIconData> mFullIcon;
85 ::ll::TypedStorage<8, 24, ::HudHeartRenderer::HeartIconData> mHalfIcon;
86 ::ll::TypedStorage<8, 640, ::std::array<::mce::TexturePtr, 20>> mHeartTextures;
87 ::ll::TypedStorage<8, 12640, ::std::array<::mce::Mesh, 20>> mHeartMeshes;
88 ::ll::TypedStorage<8, 24, ::std::vector<::glm::vec3>> mIconPosition;
94 virtual ~HudHeartRenderer() =
default;
96 virtual ::std::shared_ptr<::UICustomRenderer> clone() const ;
99 render(::MinecraftUIRenderContext& renderContext, ::IClientInstance&, ::UIControl& owner,
int) ;
101 virtual
bool update(::IClientInstance& client, ::UIControl& owner, ::UIScene const& scene) ;
107 MCAPI
void _loadHeartTextures(::mce::TextureGroup& textureGroup,
bool isHardcore);
113 MCAPI ::std::shared_ptr<::UICustomRenderer> $clone() const;
115 MCAPI
void $render(::MinecraftUIRenderContext& renderContext, ::IClientInstance&, ::UIControl& owner,
int);
117 MCAPI
bool $update(::IClientInstance& client, ::UIControl& owner, ::UIScene const& scene);
Definition HudHeartRenderer.h:5
static MCAPI void ** $vftable()
Definition IClientInstance.h:5
Definition MinecraftUICustomRenderer.h:5
Definition MinecraftUIRenderContext.h:5
Definition UICustomRenderer.h:5
Definition TextureGroup.h:7
Definition HudHeartRenderer.h:18
Definition HudHeartRenderer.h:16