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 ScreenContext;
15class UIControl;
17class UIScene;
18namespace mce { class TextureGroup; }
19// clang-format on
20
22public:
23 // HudHungerRenderer inner types define
24 enum class HungerType : int {
25 Background = 0,
26 BackgroundEffect = 1,
27 Full = 2,
28 FullEffect = 3,
29 Half = 4,
30 HalfEffect = 5,
31 Count = 6,
32 };
33
34public:
35 // member variables
36 // NOLINTBEGIN
37 ::ll::TypedStorage<4, 4, int> mTickCount;
38 ::ll::TypedStorage<1, 1, bool> mHasLoadedTextures;
39 ::ll::TypedStorage<1, 1, bool> mShouldRender;
40 ::ll::TypedStorage<1, 1, bool> mUseHungerEffect;
41 ::ll::TypedStorage<1, 1, bool> mAnimatedLastFrame;
42 ::ll::TypedStorage<8, 8, uint64> mNumFullIcons;
43 ::ll::TypedStorage<8, 8, uint64> mNumHalfIcons;
44 ::ll::TypedStorage<8, 192, ::std::array<::mce::TexturePtr, 6>> mHungerTextures;
45 ::ll::TypedStorage<8, 3312, ::std::array<::mce::Mesh, 6>> mHungerMeshes;
46 ::ll::TypedStorage<4, 120, ::std::array<::glm::vec3, 10>> mIconPosition;
47 // NOLINTEND
48
49public:
50 // virtual functions
51 // NOLINTBEGIN
52 virtual ~HudHungerRenderer() /*override*/;
53
54 virtual ::std::shared_ptr<::UICustomRenderer> clone() const /*override*/;
55
56 virtual void
57 render(::MinecraftUIRenderContext& renderContext, ::IClientInstance& owner, ::UIControl&, int) /*override*/;
58
59 virtual bool update(::IClientInstance& client, ::UIControl&, ::UIScene const&) /*override*/;
60 // NOLINTEND
61
62public:
63 // member functions
64 // NOLINTBEGIN
65 MCAPI HudHungerRenderer();
66
67 MCAPI bool _areTexturesValid() const;
68
69 MCAPI void _loadHungerTextures(::std::shared_ptr<::mce::TextureGroup> textureGroup);
70
71 MCAPI bool _validateHungerMeshes(::ScreenContext& screenContext);
72 // NOLINTEND
73
74public:
75 // constructor thunks
76 // NOLINTBEGIN
77 MCAPI void* $ctor();
78 // NOLINTEND
79
80public:
81 // destructor thunk
82 // NOLINTBEGIN
83 MCAPI void $dtor();
84 // NOLINTEND
85
86public:
87 // virtual function thunks
88 // NOLINTBEGIN
89 MCAPI ::std::shared_ptr<::UICustomRenderer> $clone() const;
90
91 MCAPI void $render(::MinecraftUIRenderContext& renderContext, ::IClientInstance& owner, ::UIControl&, int);
92
93 MCAPI bool $update(::IClientInstance& client, ::UIControl&, ::UIScene const&);
94 // NOLINTEND
95
96public:
97 // vftables
98 // NOLINTBEGIN
99 MCNAPI static void** $vftable();
100 // NOLINTEND
101};
Definition HudHungerRenderer.h:5
static MCAPI void ** $vftable()
Definition IClientInstance.h:5
Definition MinecraftUICustomRenderer.h:5
Definition MinecraftUIRenderContext.h:5
Definition ScreenContext.h:5
Definition UIControl.h:5
Definition UICustomRenderer.h:5
Definition UIScene.h:5
Definition TextureGroup.h:7