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"
30 enum class HeartType :
int {
58 ::ll::TypedStorage<4, 4, int> mHealth;
59 ::ll::TypedStorage<4, 4, int> mOldHealth;
60 ::ll::TypedStorage<4, 4, int> mMaxHealth;
61 ::ll::TypedStorage<4, 4, int> mAbsorption;
69 ::ll::TypedStorage<4, 4, ::HudHeartRenderer::HeartType> mType;
70 ::ll::TypedStorage<8, 8, uint64> mOffset;
71 ::ll::TypedStorage<8, 8, uint64> mCount;
78 ::ll::TypedStorage<1, 1, bool> mHasLoadedTextures;
79 ::ll::TypedStorage<1, 1, bool> mShouldRender;
80 ::ll::TypedStorage<8, 24, ::HudHeartRenderer::HeartIconData> mBackgroundIcon;
81 ::ll::TypedStorage<8, 24, ::HudHeartRenderer::HeartIconData> mFullFlashIcon;
82 ::ll::TypedStorage<8, 24, ::HudHeartRenderer::HeartIconData> mHalfFlashIcon;
83 ::ll::TypedStorage<8, 24, ::HudHeartRenderer::HeartIconData> mFullAbsorptionIcon;
84 ::ll::TypedStorage<8, 24, ::HudHeartRenderer::HeartIconData> mHalfAbsorptionIcon;
85 ::ll::TypedStorage<8, 24, ::HudHeartRenderer::HeartIconData> mFullIcon;
86 ::ll::TypedStorage<8, 24, ::HudHeartRenderer::HeartIconData> mHalfIcon;
87 ::ll::TypedStorage<8, 640, ::std::array<::mce::TexturePtr, 20>> mHeartTextures;
88 ::ll::TypedStorage<8, 11040, ::std::array<::mce::Mesh, 20>> mHeartMeshes;
89 ::ll::TypedStorage<8, 24, ::std::vector<::glm::vec3>> mIconPosition;
95 virtual ~HudHeartRenderer() =
default;
97 virtual ::std::shared_ptr<::UICustomRenderer> clone() const ;
100 render(::MinecraftUIRenderContext& renderContext, ::IClientInstance& owner, ::UIControl&,
int) ;
102 virtual
bool update(::IClientInstance& client, ::UIControl&, ::UIScene const&) ;
108 MCAPI HudHeartRenderer();
110 MCAPI
void _loadHeartTextures(::mce::TextureGroup& textureGroup,
bool isHardcore);
117 getSanitizedHealthData(::AttributeInstanceConstRef health, ::AttributeInstanceConstRef absorption,
int oldHealth);
129 MCAPI ::std::shared_ptr<::UICustomRenderer> $clone() const;
131 MCAPI
void $render(::MinecraftUIRenderContext& renderContext, ::IClientInstance& owner, ::UIControl&,
int);
133 MCAPI
bool $update(::IClientInstance& client, ::UIControl&, ::UIScene const&);
Definition AttributeInstanceConstRef.h:13
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