LeviLamina
Loading...
Searching...
No Matches
ClientInstanceScreenModel.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/game/CoordinateCaptureType.h"
7#include "mc/client/gui/screens/models/ChatMessageRestrictions.h"
8#include "mc/client/gui/screens/models/MinecraftScreenModel.h"
9#include "mc/deps/core/threading/Async.h"
10#include "mc/network/packet/StructureTemplateRequestOperation.h"
11#include "mc/util/HudElement.h"
12#include "mc/util/ProfanityFilterContext.h"
13#include "mc/world/level/block/actor/BlockActorType.h"
14
15// auto generated forward declare list
16// clang-format off
17class Block;
18class BlockActor;
19class BlockPos;
20class BlockSource;
22class ItemStack;
29class Vec3;
30struct ActorUniqueID;
31struct BossInfo;
32struct GuiMessage;
34struct PhotoRecord;
35struct TitleMessage;
36namespace Bedrock::PubSub { class Subscription; }
37namespace Core { class Path; }
38namespace mce { class UUID; }
39// clang-format on
40
42public:
43 // member variables
44 // NOLINTBEGIN
45 ::ll::TypedStorage<8, 64, ::std::unordered_map<::ActorUniqueID, ::BossInfo>> mBossInfo;
46 // NOLINTEND
47
48public:
49 // prevent constructor by default
50 ClientInstanceScreenModel();
51
52public:
53 // virtual functions
54 // NOLINTBEGIN
55 virtual ~ClientInstanceScreenModel() /*override*/ = default;
56 // NOLINTEND
57
58public:
59 // member functions
60 // NOLINTBEGIN
61 MCAPI explicit ClientInstanceScreenModel(::MinecraftScreenModel::Context context);
62
63 MCAPI void addPhotoToPortfolio(::std::string const& photoName, ::std::string const& newPhotoName);
64
65 MCAPI bool canCollectFromCauldron(::BlockPos const& blockPos) const;
66
67 MCAPI bool canEmptyIntoCauldron(::BlockPos const& blockPos) const;
68
69 MCAPI bool canPlaceHeldBlock() const;
70
71 MCAPI bool canPlaceHeldItem() const;
72
73 MCAPI bool canPlaceWaterlily() const;
74
75 MCAPI bool canTipArrows(::BlockPos const& blockPos) const;
76
77 MCAPI bool canUseReed() const;
78
79 MCAPI bool canUseSeed() const;
80
81 MCAPI void clearTitleMessages();
82
83 MCAPI ::std::unique_ptr<::BookScreenManager> createBookScreenManager(int bookSlot, ::BlockActor* lectern);
84
85 MCAPI ::std::unique_ptr<::MinecartCommandBlockManager>
86 createCommandBlockManager(bool isMinecart, ::BlockPos pos, ::ActorUniqueID entityUniqueID);
87
88 MCAPI void createPhotoItem(::PhotoRecord const& record);
89
90 MCAPI void displaySystemMessage(
91 ::std::string const& message,
92 ::std::string const& ttsMessage,
93 ::ProfanityFilterContext profanityFilterContext
94 );
95
96 MCAPI float distanceSqrFromPlayerToBlockCenter(::Vec3 const& pos);
97
98 MCAPI ::ChatMessageRestrictions executeCommand(::std::string const& commandLine);
99
100 MCAPI bool exportStructureBlock(::std::string const& structureName, ::Core::Path const& filePath);
101
102 MCAPI bool findStructure(::StructureEditorData& structureData);
103
104 MCAPI bool forceAllowEating() const;
105
106 MCAPI ::Block const& getBlockAt(::BlockPos const& blockPos) const;
107
108 MCAPI ::BlockActor* getBlockEntity(::BlockPos const& pos, ::BlockActorType blockEntityType);
109
110 MCAPI ::CoordinateCaptureType getCoordinateCaptureType() const;
111
112 MCAPI ::std::vector<::GuiMessage>& getGuiMessageList();
113
114 MCAPI ::std::string getInteractionText() const;
115
116 MCAPI int getItemNameOffset(bool showClassicUI, bool showSurvivalUI, bool showLocatorBar) const;
117
118 MCAPI ::std::string const getLastFilteredChatMessage();
119
120 MCAPI int getNumberOfDaysPlayed() const;
121
122 MCAPI ::ItemStack const& getOffhandSlot() const;
123
124 MCAPI int getPlayerArmorValue() const;
125
126 MCAPI int getPlayerLevel();
127
128 MCAPI ::Vec3 getPlayerPosition() const;
129
130 MCAPI ::BlockSource* getPlayerRegion() const;
131
132 MCAPI ::ItemStack const& getSelectedItem() const;
133
134 MCAPI ::Bedrock::Threading::Async<::ResourceLocation>
135 getThirdPartyGamerpic(::mce::UUID const& playerId, ::std::string const& platformOnlineID) const;
136
137 MCAPI ::TitleMessage const& getTitleMessage() const;
138
139 MCAPI float getXToScreenRatio(float x) const;
140
141 MCAPI float getYToScreenRatio(float y) const;
142
143 MCAPI ::StructureTemplate* importStructureBlock(::std::string const& structureName, ::Core::Path const& filePath);
144
145 MCAPI void initiateGLBFileSave(
146 ::std::string const& defaultName,
147 ::Core::Path const& originPath,
148 ::std::function<void(bool)> onComplete
149 );
150
151 MCAPI ::std::shared_ptr<::MinecraftglTFExporter> initiateStructureModelExport(
152 ::BlockPos const& position,
153 ::StructureEditorData const& structureEditorData,
154 ::std::function<void(bool)> onFileReady
155 );
156
157 MCAPI bool isBossProperlyRegistered(int index) const;
158
159 MCAPI bool isChatMute() const;
160
161 MCAPI bool isDimensionReady() const;
162
163 MCAPI bool const isHudElementVisible(::HudElement hudElement) const;
164
165 MCAPI bool isInteracting() const;
166
167 MCAPI bool isPlayerFlying() const;
168
169 MCAPI bool isPlayerHungry() const;
170
171 MCAPI bool isRemoteProfanityFilterEnabled() const;
172
173 MCAPI bool isTouchPressed() const;
174
175 MCAPI bool itemFrameFilled(::BlockPos const& blockPos) const;
176
177 MCAPI void makeStructureBlockRequest(
178 ::std::string const& structureName,
179 ::BlockPos const& structureBlockPosition,
180 ::StructureSettings const& structureSettings,
181 ::StructureTemplateRequestOperation exportOperation
182 );
183
184 MCAPI void navigateToImmersiveReaderScreen(::std::string readerText);
185
186 MCAPI void navigateToLeaveLevelScreen(bool switchScreen);
187
188 MCAPI void navigateToServerStoreScreen();
189
190 MCAPI void queryBossInfo() const;
191
192 MCAPI void registerNpcEventListener(::NpcEventListener& listener);
193
194 MCAPI void requestDisconnectPlayer(::std::string const& userName);
195
196 MCAPI void resetCanTakeScreenshot();
197
198 MCAPI void sendBlockEntityUpdatePacket(::BlockPos const& pos);
199
200 MCAPI ::ChatMessageRestrictions sendChatMessage(::std::string const& message);
201
202 MCAPI void sendCommandBlockUpdatePacket(::ActorUniqueID const& entityId);
203
204 MCAPI void sendCommandBlockUpdatePacket(::BlockPos const& pos);
205
206 MCAPI void sendRespawnRequest() const;
207
208 MCAPI void setMenuPointerPressed(bool pressed);
209
210 MCAPI bool shouldDisplayDaysPlayed() const;
211
212 MCAPI bool shouldDisplayPlayerPosition() const;
213
214 MCAPI ::Bedrock::PubSub::Subscription subscribeToProfanityToggleEvent(::std::function<void(bool, bool)> callback);
215
216 MCAPI bool thirdPartyGamerpicAllowed(::mce::UUID const& playerId) const;
217
218 MCAPI void toggleChatMute();
219
220 MCAPI bool tryBroadcastGlobalPause(bool status);
221
222 MCAPI bool tryGetAgentPosition(::BlockPos& result) const;
223
224 MCAPI void unregisterNpcEventListener(::NpcEventListener& listener);
225 // NOLINTEND
226
227public:
228 // constructor thunks
229 // NOLINTBEGIN
230 MCAPI void* $ctor(::MinecraftScreenModel::Context context);
231 // NOLINTEND
232
233public:
234 // vftables
235 // NOLINTBEGIN
236 MCNAPI static void** $vftableForIDlcBatcher();
237
238 MCNAPI static void** $vftableForIMinecraftScreenModel();
239 // NOLINTEND
240};
Definition Subscription.h:10
Definition BlockActor.h:32
Definition BlockPos.h:19
Definition BlockSource.h:68
Definition Block.h:43
Definition BookScreenManager.h:5
Definition ClientInstanceScreenModel.h:5
static MCAPI void ** $vftableForIMinecraftScreenModel()
static MCAPI void ** $vftableForIDlcBatcher()
Definition Path.h:10
Definition ItemStack.h:26
Definition MinecartCommandBlockManager.h:5
Definition MinecraftScreenModel.h:5
Definition NpcEventListener.h:14
Definition ResourceLocation.h:15
Definition StructureEditorData.h:18
Definition StructureSettings.h:18
Definition StructureTemplate.h:35
Definition Vec3.h:10
Definition UUID.h:7
Definition ActorUniqueID.h:5
Definition BossInfo.h:5
Definition GuiMessage.h:5
Definition MinecraftglTFExporter.h:5
Definition PhotoRecord.h:5
Definition TitleMessage.h:5