Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ClientInstanceModel.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/screens/models/ClientModel.h"
7#include "mc/deps/core/utility/NonOwnerPointer.h"
8#include "mc/world/level/GameType.h"
9
10// auto generated forward declare list
11// clang-format off
12class FontHandle;
13class IClientInstance;
14class ItemStackBase;
15class Option;
17class RectangleArea;
18class Vec2;
19struct GameRuleId;
20// clang-format on
21
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::IClientInstance>> mClient;
27 // NOLINTEND
28
29public:
30 // virtual functions
31 // NOLINTBEGIN
32 virtual ~ClientInstanceModel() /*override*/ = default;
33
34 virtual bool hasCommandsEnabled() const /*override*/;
35
36 virtual ::std::string getFormattedHoverText(::ItemStackBase const& item, bool const showCategory) /*override*/;
37
38 virtual ::std::string getFilteredItemName(::ItemStackBase const& item) /*override*/;
39
40 virtual bool achievementsWillBeDisabledOnLoad() /*override*/;
41
42 virtual bool hasAchievementsDisabled() /*override*/;
43
44 virtual ::std::string getLevelName() /*override*/;
45
46 virtual int getGameDifficulty() /*override*/;
47
48 virtual int getGameType() /*override*/;
49
50 virtual void setGameType(::GameType gameType) /*override*/;
51
52 virtual int getGenerator() /*override*/;
53
54 virtual bool getStartWithMap() /*override*/;
55
56 virtual bool isAlwaysDay() /*override*/;
57
58 virtual bool isGameRule(::GameRuleId gameRule) /*override*/;
59
60 virtual bool isImmutableWorld() /*override*/;
61
62 virtual ::std::unique_ptr<::PlayerCommandOrigin> makePlayerCommandOrigin() /*override*/;
63
64 virtual void setCommandsEnabled(bool val) /*override*/;
65
66 virtual void disableAchievements() /*override*/;
67
68 virtual float getGuiScale() const /*override*/;
69
70 virtual ::Vec2 getScreenSize() const /*override*/;
71
72 virtual ::RectangleArea getSafeScreenZoneArea() const /*override*/;
73
74 virtual ::RectangleArea getWYSIWYGSafeScreenZoneArea() const /*override*/;
75
76 virtual ::RectangleArea getLayoutCustomizationSubPanelRectangle() const /*override*/;
77
78 virtual ::RectangleArea getLayoutCustomizationMainPanelRectangle() const /*override*/;
79
80 virtual ::RectangleArea getWYSIWYGBottomHudReservedArea() const /*override*/;
81
82 virtual ::RectangleArea const& getHUDHotbarRectangle() const /*override*/;
83
84 virtual ::Option const& getGuiScaleOption() const /*override*/;
85
86 virtual void setGuiScaleOffset(int guiScale) /*override*/;
87
88 virtual ::FontHandle getFontHandle() const /*override*/;
89
90 virtual void notifyForLeaveGame() /*override*/;
91 // NOLINTEND
92
93public:
94 // virtual function thunks
95 // NOLINTBEGIN
96 MCNAPI bool $hasCommandsEnabled() const;
97
98 MCAPI ::std::string $getFormattedHoverText(::ItemStackBase const& item, bool const showCategory);
99
100 MCNAPI ::std::string $getFilteredItemName(::ItemStackBase const& item);
101
103
105
106 MCNAPI ::std::string $getLevelName();
107
108 MCNAPI int $getGameDifficulty();
109
110 MCNAPI int $getGameType();
111
112 MCNAPI void $setGameType(::GameType gameType);
113
114 MCNAPI int $getGenerator();
115
116 MCNAPI bool $getStartWithMap();
117
118 MCNAPI bool $isAlwaysDay();
119
120 MCNAPI bool $isGameRule(::GameRuleId gameRule);
121
122 MCNAPI bool $isImmutableWorld();
123
125
126 MCNAPI void $setCommandsEnabled(bool val);
127
128 MCNAPI void $disableAchievements();
129
130 MCNAPI float $getGuiScale() const;
131
132 MCNAPI ::Vec2 $getScreenSize() const;
133
135
137
139
141
143
144 MCNAPI ::RectangleArea const& $getHUDHotbarRectangle() const;
145
146 MCNAPI ::Option const& $getGuiScaleOption() const;
147
148 MCNAPI void $setGuiScaleOffset(int guiScale);
149
150 MCNAPI ::FontHandle $getFontHandle() const;
151
152 MCNAPI void $notifyForLeaveGame();
153 // NOLINTEND
154
155public:
156 // vftables
157 // NOLINTBEGIN
158 MCNAPI static void** $vftable();
159 // NOLINTEND
160};
Definition ClientInstanceModel.h:5
MCAPI void $disableAchievements()
MCAPI::RectangleArea $getLayoutCustomizationMainPanelRectangle() const
MCAPI::std::string $getFilteredItemName(::ItemStackBase const &item)
MCAPI bool $isGameRule(::GameRuleId gameRule)
MCAPI::Option const & $getGuiScaleOption() const
MCAPI::RectangleArea $getWYSIWYGSafeScreenZoneArea() const
static MCAPI void ** $vftable()
MCAPI bool $achievementsWillBeDisabledOnLoad()
MCAPI int $getGenerator()
MCAPI bool $hasAchievementsDisabled()
MCAPI int $getGameDifficulty()
MCAPI bool $hasCommandsEnabled() const
MCAPI bool $isImmutableWorld()
MCAPI bool $getStartWithMap()
MCAPI void $setCommandsEnabled(bool val)
MCAPI::RectangleArea $getLayoutCustomizationSubPanelRectangle() const
MCAPI int $getGameType()
MCAPI ::std::unique_ptr<::PlayerCommandOrigin > $makePlayerCommandOrigin()
MCAPI void $setGuiScaleOffset(int guiScale)
MCAPI float $getGuiScale() const
MCAPI::RectangleArea const & $getHUDHotbarRectangle() const
MCAPI void $setGameType(::GameType gameType)
MCAPI::RectangleArea $getSafeScreenZoneArea() const
MCAPI::RectangleArea $getWYSIWYGBottomHudReservedArea() const
MCAPI bool $isAlwaysDay()
MCAPI::std::string $getLevelName()
MCAPI::Vec2 $getScreenSize() const
MCAPI::FontHandle $getFontHandle() const
MCAPI void $notifyForLeaveGame()
Definition ClientModel.h:5
Definition FontHandle.h:5
Definition IClientInstance.h:5
Definition ItemStackBase.h:45
Definition Option.h:22
Definition PlayerCommandOrigin.h:28
Definition RectangleArea.h:5
Definition Vec2.h:5
STL namespace.
Definition GameRuleId.h:8