Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
HudHungerRenderer.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
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"
9
10// auto generated forward declare list
11// clang-format off
12class IClientInstance;
14class UIControl;
16class UIScene;
17// clang-format on
18
20public:
21 // HudHungerRenderer inner types define
22 enum class HungerType : int {
23 Background = 0,
24 BackgroundEffect = 1,
25 Full = 2,
26 FullEffect = 3,
27 Half = 4,
28 HalfEffect = 5,
29 Count = 6,
30 };
31
32public:
33 // member variables
34 // NOLINTBEGIN
35 ::ll::TypedStorage<4, 4, int> mTickCount;
36 ::ll::TypedStorage<1, 1, bool> mHasLoadedTextures;
37 ::ll::TypedStorage<1, 1, bool> mShouldRender;
38 ::ll::TypedStorage<1, 1, bool> mUseHungerEffect;
39 ::ll::TypedStorage<1, 1, bool> mAnimatedLastFrame;
40 ::ll::TypedStorage<8, 8, uint64> mNumFullIcons;
41 ::ll::TypedStorage<8, 8, uint64> mNumHalfIcons;
42 ::ll::TypedStorage<8, 192, ::std::array<::mce::TexturePtr, 6>> mHungerTextures;
43 ::ll::TypedStorage<8, 3648, ::std::array<::mce::Mesh, 6>> mHungerMeshes;
44 ::ll::TypedStorage<4, 120, ::std::array<::glm::vec3, 10>> mIconPosition;
45 // NOLINTEND
46
47public:
48 // virtual functions
49 // NOLINTBEGIN
50 virtual ~HudHungerRenderer() /*override*/ = default;
51
52 virtual ::std::shared_ptr<::UICustomRenderer> clone() const /*override*/;
53
54 virtual void
55 render(::MinecraftUIRenderContext& renderContext, ::IClientInstance&, ::UIControl& owner, int) /*override*/;
56
57 virtual bool update(::IClientInstance& client, ::UIControl& owner, ::UIScene const& scene) /*override*/;
58 // NOLINTEND
59
60public:
61 // member functions
62 // NOLINTBEGIN
64 // NOLINTEND
65
66public:
67 // constructor thunks
68 // NOLINTBEGIN
69 MCNAPI void* $ctor();
70 // NOLINTEND
71
72public:
73 // virtual function thunks
74 // NOLINTBEGIN
75 MCNAPI ::std::shared_ptr<::UICustomRenderer> $clone() const;
76
77 MCAPI void $render(::MinecraftUIRenderContext& renderContext, ::IClientInstance&, ::UIControl& owner, int);
78
79 MCNAPI bool $update(::IClientInstance& client, ::UIControl& owner, ::UIScene const& scene);
80 // NOLINTEND
81};
Definition HudHungerRenderer.h:5
MCAPI bool $update(::IClientInstance &client, ::UIControl &owner, ::UIScene const &scene)
MCAPI ::std::shared_ptr<::UICustomRenderer > $clone() const
MCAPI void * $ctor()
MCAPI HudHungerRenderer()
Definition IClientInstance.h:5
Definition MinecraftUICustomRenderer.h:5
Definition MinecraftUIRenderContext.h:5
Definition UIControl.h:5
Definition UICustomRenderer.h:5
Definition UIScene.h:5
STL namespace.