LeviLamina
Loading...
Searching...
No Matches
ClientModel.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/GameType.h"
7
8// auto generated forward declare list
9// clang-format off
10class FontHandle;
11class ItemStackBase;
12class Option;
13class PlayerCommandOrigin;
14class RectangleArea;
15class Vec2;
16struct GameRuleId;
17// clang-format on
18
19class ClientModel {
20public:
21 // virtual functions
22 // NOLINTBEGIN
23 virtual ~ClientModel() = default;
24
25 virtual bool hasCommandsEnabled() const = 0;
26
27 virtual ::std::string getFormattedHoverText(::ItemStackBase const&, bool const) = 0;
28
29 virtual bool achievementsWillBeDisabledOnLoad() = 0;
30
31 virtual bool hasAchievementsDisabled() = 0;
32
33 virtual ::std::string getLevelName() = 0;
34
35 virtual int getGameDifficulty() = 0;
36
37 virtual int getGameType() = 0;
38
39 virtual void setGameType(::GameType) = 0;
40
41 virtual int getGenerator() = 0;
42
43 virtual bool getStartWithMap() = 0;
44
45 virtual bool isAlwaysDay() = 0;
46
47 virtual bool isGameRule(::GameRuleId) = 0;
48
49 virtual bool isImmutableWorld() = 0;
50
51 virtual ::std::unique_ptr<::PlayerCommandOrigin> makePlayerCommandOrigin() = 0;
52
53 virtual void setCommandsEnabled(bool) = 0;
54
55 virtual void disableAchievements() = 0;
56
57 virtual float getGuiScale() const = 0;
58
59 virtual ::Vec2 getScreenSize() const = 0;
60
61 virtual ::RectangleArea getSafeScreenZoneArea() const = 0;
62
63 virtual ::RectangleArea getWYSIWYGSafeScreenZoneArea() const = 0;
64
65 virtual ::RectangleArea getLayoutCustomizationSubPanelRectangle() const = 0;
66
67 virtual ::RectangleArea getLayoutCustomizationMainPanelRectangle() const = 0;
68
69 virtual ::RectangleArea getWYSIWYGBottomHudReservedArea() const = 0;
70
71 virtual ::RectangleArea const& getHUDHotbarRectangle() const = 0;
72
73 virtual ::Option const& getGuiScaleOption() const = 0;
74
75 virtual void setGuiScaleOffset(int) = 0;
76
77 virtual ::FontHandle getFontHandle() const = 0;
78
79 virtual void notifyForLeaveGame() = 0;
80 // NOLINTEND
81
82public:
83 // virtual function thunks
84 // NOLINTBEGIN
85
86 // NOLINTEND
87};
Definition ClientModel.h:5
Definition FontHandle.h:5