3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/screens/models/ClientModel.h"
7#include "mc/deps/core/utility/NonOwnerPointer.h"
8#include "mc/world/level/GameType.h"
26 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::IClientInstance>> mClient;
32 virtual ~ClientInstanceModel() =
default;
34 virtual bool hasCommandsEnabled() const ;
36 virtual ::std::
string getFormattedHoverText(::ItemStackBase const& item,
bool const showCategory) ;
38 virtual
bool achievementsWillBeDisabledOnLoad() ;
40 virtual
bool hasAchievementsDisabled() ;
42 virtual ::std::
string getLevelName() ;
44 virtual
int getGameDifficulty() ;
46 virtual
int getGameType() ;
48 virtual
void setGameType(::GameType) ;
50 virtual
int getGenerator() ;
52 virtual
bool getStartWithMap() ;
54 virtual
bool isAlwaysDay() ;
56 virtual
bool isGameRule(::GameRuleId gameRule) ;
58 virtual
bool isImmutableWorld() ;
60 virtual ::std::unique_ptr<::PlayerCommandOrigin> makePlayerCommandOrigin() ;
62 virtual
void setCommandsEnabled(
bool val) ;
64 virtual
void disableAchievements() ;
66 virtual
float getGuiScale() const ;
68 virtual ::Vec2 getScreenSize() const ;
70 virtual ::RectangleArea getSafeScreenZoneArea() const ;
72 virtual ::RectangleArea getWYSIWYGSafeScreenZoneArea() const ;
74 virtual ::RectangleArea getLayoutCustomizationSubPanelRectangle() const ;
76 virtual ::RectangleArea getLayoutCustomizationMainPanelRectangle() const ;
78 virtual ::RectangleArea getWYSIWYGBottomHudReservedArea() const ;
80 virtual ::RectangleArea const& getHUDHotbarRectangle() const ;
82 virtual ::Option const& getGuiScaleOption() const ;
84 virtual
void setGuiScaleOffset(
int guiScale) ;
86 virtual ::FontHandle getFontHandle() const ;
88 virtual
void notifyForLeaveGame() ;
94 MCAPI
bool $hasCommandsEnabled() const;
96 MCAPI ::std::
string $getFormattedHoverText(::ItemStackBase const& item,
bool const showCategory);
98 MCAPI
bool $achievementsWillBeDisabledOnLoad();
100 MCAPI
bool $hasAchievementsDisabled();
102 MCAPI ::std::
string $getLevelName();
104 MCAPI
int $getGameDifficulty();
106 MCAPI
int $getGameType();
108 MCAPI
int $getGenerator();
110 MCAPI
bool $getStartWithMap();
112 MCAPI
bool $isAlwaysDay();
114 MCAPI
bool $isGameRule(::GameRuleId gameRule);
116 MCAPI
bool $isImmutableWorld();
118 MCAPI ::std::unique_ptr<::PlayerCommandOrigin> $makePlayerCommandOrigin();
120 MCAPI
void $setCommandsEnabled(
bool val);
122 MCAPI
void $disableAchievements();
124 MCAPI
float $getGuiScale() const;
126 MCAPI ::Vec2 $getScreenSize() const;
128 MCAPI ::RectangleArea $getSafeScreenZoneArea() const;
130 MCAPI ::RectangleArea $getWYSIWYGSafeScreenZoneArea() const;
132 MCAPI ::RectangleArea $getLayoutCustomizationSubPanelRectangle() const;
134 MCAPI ::RectangleArea $getLayoutCustomizationMainPanelRectangle() const;
136 MCAPI ::RectangleArea $getWYSIWYGBottomHudReservedArea() const;
138 MCAPI ::RectangleArea const& $getHUDHotbarRectangle() const;
140 MCAPI ::Option const& $getGuiScaleOption() const;
142 MCAPI
void $setGuiScaleOffset(
int guiScale);
144 MCAPI ::FontHandle $getFontHandle() const;
146 MCAPI
void $notifyForLeaveGame();
Definition ClientInstanceModel.h:5
static MCAPI void ** $vftable()
Definition ClientModel.h:5
Definition FontHandle.h:5
Definition IClientInstance.h:5
Definition ItemStackBase.h:44
Definition PlayerCommandOrigin.h:28
Definition RectangleArea.h:5
Definition GameRuleId.h:8