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/SoundDirection.h"
8#include "mc/client/gui/screens/models/MinecraftScreenModel.h"
9#include "mc/client/util/ChatMessageRestrictions.h"
10#include "mc/deps/core/threading/Async.h"
11#include "mc/deps/input/enums/WYSIWYGState.h"
12#include "mc/legacy/ActorUniqueID.h"
13#include "mc/network/packet/StructureTemplateRequestOperation.h"
14#include "mc/util/HudElement.h"
15#include "mc/util/ProfanityFilterContext.h"
16#include "mc/world/actor/ActorType.h"
17#include "mc/world/level/block/actor/BlockActorType.h"
18#include "mc/world/level/block/actor/ChalkboardSize.h"
19
20// auto generated forward declare list
21// clang-format off
22class Block;
23class BlockActor;
25class BlockPos;
26class BlockSource;
28class BoundingBox;
29class CommandOrigin;
30class GuiMessage;
32class ItemStack;
38class RectangleArea;
44class TitleMessage;
45class Vec3;
46struct BossInfo;
47struct ModalScreenData;
48struct PhotoRecord;
49namespace Bedrock::PubSub { class Subscription; }
50namespace Bedrock::Safety { class RedactableString; }
51namespace Core { class Path; }
52namespace mce { class Color; }
53namespace mce { class UUID; }
54// clang-format on
55
57public:
58 // member variables
59 // NOLINTBEGIN
60 ::ll::TypedStorage<8, 64, ::std::unordered_map<::ActorUniqueID, ::BossInfo>> mBossInfo;
61 // NOLINTEND
62
63public:
64 // virtual functions
65 // NOLINTBEGIN
66 virtual ~ClientInstanceScreenModel() /*override*/;
67 // NOLINTEND
68
69public:
70 // member functions
71 // NOLINTBEGIN
72 MCAPI void addPhotoToPortfolio(::std::string const& photoName, ::std::string const& newPhotoName);
73
74 MCAPI void addToDevConsoleMessageHistory(::std::string const& message);
75
76 MCAPI void addToSentMessageHistory(::std::string const& message);
77
78 MCAPI void calculatePlacePos(uchar& face, ::BlockPos& pos) const;
79
80 MCAPI bool canAttachBalloonToBlock(::BlockPos const& blockPos) const;
81
82 MCAPI bool canAttachLeashedActorsToBlock(::BlockPos const& blockPos) const;
83
84 MCAPI bool canCollectFromCauldron(::BlockPos const& blockPos) const;
85
86 MCAPI bool canDrinkMedicine(::ItemStack const& medicine) const;
87
88 MCAPI bool canEmptyIntoCauldron(::BlockPos const& blockPos) const;
89
90 MCAPI bool canHangItemFrame(::ItemStack const& heldItemInstance, uchar face, ::BlockPos blockPos) const;
91
92 MCAPI bool canPlaceCamera(::ItemStack const& camera, ::BlockPos const& blockPos, uchar facing) const;
93
94 MCAPI bool canPlaceChalkboard(::ItemStack const& chalkboard, ::BlockPos const& blockPos, uchar facing) const;
95
96 MCAPI bool canPlaceHeldBlock() const;
97
98 MCAPI bool canPlaceHeldItem() const;
99
100 MCAPI bool canPlaceWaterlily() const;
101
102 MCAPI bool canTipArrows(::BlockPos const& blockPos) const;
103
104 MCAPI bool canUseReed() const;
105
106 MCAPI bool canUseSeed() const;
107
108 MCAPI void clearInvalidDownKeys();
109
110 MCAPI void clearTitleMessages();
111
112 MCAPI void consumeNewScreenModal(::ModalScreenData& outModalScreenData) const;
113
114 MCAPI ::std::unique_ptr<::BookScreenManager> createBookScreenManager(int bookSlot, ::BlockActor* lectern);
115
116 MCAPI ::std::unique_ptr<::MinecartCommandBlockManager>
117 createCommandBlockManager(bool isMinecart, ::BlockPos pos, ::ActorUniqueID entityUniqueID);
118
119 MCAPI ::std::shared_ptr<::HudContainerManagerController> createHudContainerManagerController();
120
121 MCAPI void createPhotoItem(::PhotoRecord const& record);
122
123 MCAPI ::std::unique_ptr<::PortfolioScreenManager> createPortfolioScreenManager();
124
125 MCAPI ::BoundingBox detectStructureBlockCorners(::BlockPos const& pos);
126
127 MCAPI void displaySubtitleMessage(::std::string const& message, ::SoundDirection direction, bool isLocalPlayer);
128
129 MCAPI void displaySystemMessage(
130 ::std::string const& message,
131 ::std::string const& ttsMessage,
132 ::ProfanityFilterContext profanityFilterContext
133 );
134
135 MCAPI float distanceSqrFromPlayerToBlockCenter(::Vec3 const& pos);
136
137 MCAPI bool doOtherConfigsExistInThisCategory() const;
138
139 MCAPI bool endPortalFrameBlockHasEye(::BlockPos const& blockPos) const;
140
141 MCAPI bool exportStructureBlock(::std::string const& structureName, ::Core::Path const& filePath);
142
143 MCAPI bool findStructure(::StructureEditorData& structureData);
144
145 MCAPI bool forceAllowEating() const;
146
147 MCAPI ::Block const& getBlockAt(::BlockPos const& blockPos) const;
148
149 MCAPI ::BlockActor* getBlockEntity(::BlockPos const& pos, ::BlockActorType blockEntityType);
150
151 MCAPI ::mce::Color getBossBarColor(int index) const;
152
153 MCAPI float getBossHealthPercentage(int index) const;
154
155 MCAPI ::Bedrock::Safety::RedactableString getBossName(int index) const;
156
157 MCAPI ::ChalkboardSize getChalkboardType(::BlockPos const& pos);
158
159 MCAPI ::CoordinateCaptureType getCoordinateCaptureType() const;
160
161 MCAPI ::std::unique_ptr<::CommandOrigin> getDevConsoleCommandOrigin() const;
162
163 MCAPI ::std::vector<::GuiMessage>& getGuiMessageList();
164
165 MCAPI ::std::string getInteractionText() const;
166
167 MCAPI int getItemNameOffset(bool showClassicUI, bool showSurvivalUI, bool showLocatorBar) const;
168
169 MCAPI ::std::string const& getLastChatMessage();
170
171 MCAPI ::std::string const getLastFilteredChatMessage();
172
173 MCAPI ::Block const& getLiquidBlockAt(::BlockPos const& blockPos) const;
174
175 MCAPI ::Bedrock::Threading::Async<::ResourceLocation> getLocalThirdPartyGamerpic() const;
176
177 MCAPI int getNumberOfActiveConfigs() const;
178
179 MCAPI int getNumberOfDaysPlayed() const;
180
181 MCAPI ::ItemStack const& getOffhandSlot() const;
182
183 MCAPI int getPlayerArmorValue() const;
184
185 MCAPI ::std::unique_ptr<::CommandOrigin> getPlayerCommandOrigin() const;
186
187 MCAPI float getPlayerExp();
188
189 MCAPI int getPlayerLevel();
190
191 MCAPI ::Vec3 getPlayerPosition() const;
192
193 MCAPI ::BlockSource* getPlayerRegion() const;
194
195 MCAPI ::std::vector<::GuiMessage> getPreexistingChatMessages();
196
197 MCAPI ::RectangleArea getSafeScreenZoneArea() const;
198
199 MCAPI ::ItemStack const& getSelectedItem() const;
200
201 MCAPI int getStackSplittingTrigger() const;
202
203 MCAPI ::std::string const& getStoreName() const;
204
205 MCAPI ::std::vector<::GuiMessage>& getSubtitleList();
206
207 MCAPI ::Bedrock::Threading::Async<::ResourceLocation>
208 getThirdPartyGamerpic(::mce::UUID const& playerId, ::std::string const& platformOnlineID) const;
209
210 MCAPI ::TitleMessage const& getTitleMessage() const;
211
212 MCAPI ::WYSIWYGState getWYSIWYGState() const;
213
214 MCAPI float getXToScreenRatio(float x) const;
215
216 MCAPI float getYToScreenRatio(float y) const;
217
218 MCAPI void handleQuitButtonPress();
219
220 MCAPI bool hasNewScreenModal() const;
221
222 MCAPI bool hasPlayerSleepFlagSet() const;
223
224 MCAPI ::StructureTemplate* importStructureBlock(::std::string const& structureName, ::Core::Path const& filePath);
225
226 MCAPI void initiateGLBFileSave(
227 ::std::string const& defaultName,
228 ::Core::Path const& originPath,
229 ::std::function<void(bool)> onComplete
230 );
231
232 MCAPI ::std::shared_ptr<::MinecraftglTFExporter> initiateStructureModelExport(
233 ::BlockPos const& position,
234 ::StructureEditorData const& structureEditorData,
235 ::std::function<void(bool)> onFileReady
236 );
237
238 MCAPI void insertStructureBlockRequest(::std::string const& structureName, ::StructureTemplate const& temp);
239
240 MCAPI bool isBossProperlyRegistered(int index) const;
241
242 MCFOLD bool isChatMute() const;
243
244 MCAPI bool isDimensionReady() const;
245
246 MCAPI bool isEmoteChatMute() const;
247
248 MCAPI bool const isHudElementVisible(::HudElement hudElement) const;
249
250 MCAPI bool isInteracting() const;
251
252 MCAPI bool isNoConfigSelected() const;
253
254 MCAPI bool isPlayerHungry() const;
255
256 MCAPI bool isPlayerOnGround() const;
257
258 MCAPI bool isPlayerRidingActorType(::ActorType type) const;
259
260 MCAPI bool isRemoteProfanityFilterEnabled() const;
261
262 MCAPI bool isTextToSpeechEnabled() const;
263
264 MCAPI bool isTouchPressed() const;
265
266 MCAPI bool isUsingItem() const;
267
268 MCAPI bool itemFrameFilled(::BlockPos const& blockPos) const;
269
270 MCAPI void loadMode(::BlockPos const& pos, ::StructureBlockActor* act);
271
272 MCAPI void makeStructureBlockRequest(
273 ::std::string const& structureName,
274 ::BlockPos const& structureBlockPosition,
275 ::StructureSettings const& structureSettings,
276 ::StructureTemplateRequestOperation exportOperation
277 );
278
279 MCAPI bool mayEditChalkboard(::BlockPos const& blockPos) const;
280
281 MCAPI void navigateToImmersiveReaderScreen(::std::string readerText);
282
283 MCAPI void navigateToLeaveLevelScreen(bool switchScreen);
284
285 MCAPI void navigateToModalScreen(::ModalScreenData const& modalScreenData);
286
287 MCAPI void navigateToServerStoreScreen();
288
289 MCAPI void queryBossInfo() const;
290
291 MCAPI void registerBlockEventListener(::BlockEventListener& listener);
292
293 MCAPI void registerClientPlayerEventCoordinatorListener(::PlayerEventListener& listener);
294
295 MCAPI void registerNpcEventListener(::NpcEventListener& listener);
296
297 MCAPI void requestClipboardData(::std::function<void(::std::string const&)> callback) const;
298
299 MCAPI void requestDisconnectPlayer(::std::string const& userName);
300
301 MCAPI void resetCanTakeScreenshot();
302
303 MCAPI void sendBlockEntityUpdatePacket(::BlockPos const& pos);
304
305 MCAPI ::ChatMessageRestrictions sendChatMessage(::std::string const& message);
306
307 MCAPI void sendCommandBlockUpdatePacket(::ActorUniqueID const& entityId);
308
309 MCAPI void sendCommandBlockUpdatePacket(::BlockPos const& pos);
310
311 MCAPI void sendRespawnRequest() const;
312
313 MCAPI void sendStructureBlockUpdatePacket(
314 ::BlockPos const& pos,
315 ::StructureEditorData const& structureEditorData,
316 bool trigger
317 );
318
319 MCAPI void setClipboardToPosition(::Vec3 const& pos);
320
321 MCAPI void setClipboardToPosition(::BlockPos const& pos);
322
323 MCAPI void setCoordinateCaptureType(::CoordinateCaptureType coordinateCaptureType);
324
325 MCAPI void setMenuPointerPressed(bool pressed);
326
327 MCAPI void setMuteChat(bool isMuted);
328
329 MCAPI void setPauseIntent(bool intent);
330
331 MCAPI bool shouldDisplayDaysPlayed() const;
332
333 MCAPI bool shouldDisplayPlayerPosition() const;
334
335 MCAPI void splitVibrate(int milliSeconds);
336
337 MCAPI ::Bedrock::PubSub::Subscription subscribeToProfanityToggleEvent(::std::function<void(bool, bool)> callback);
338
339 MCAPI bool thirdPartyGamerpicAllowed(::mce::UUID const& playerId) const;
340
341 MCAPI void toggleChatMute();
342
343 MCAPI void toggleEmoteChatMute();
344
345 MCAPI bool tryBroadcastGlobalPause(bool status);
346
347 MCAPI bool tryGetAgentPosition(::BlockPos& result) const;
348
349 MCAPI void unregisterBlockEventListener(::BlockEventListener& listener);
350
351 MCAPI void unregisterClientPlayerEventCoordinatorListener(::PlayerEventListener& listener);
352
353 MCAPI void unregisterNpcEventListener(::NpcEventListener& listener);
354 // NOLINTEND
355
356public:
357 // destructor thunk
358 // NOLINTBEGIN
359 MCAPI void $dtor();
360 // NOLINTEND
361
362public:
363 // vftables
364 // NOLINTBEGIN
365 MCNAPI static void** $vftableForIDlcBatcher();
366
367 MCNAPI static void** $vftableForIMinecraftScreenModel();
368 // NOLINTEND
369};
Definition Subscription.h:10
Definition RedactableString.h:10
Definition BlockActor.h:29
Definition BlockEventListener.h:22
Definition BlockPos.h:17
Definition BlockSource.h:71
Definition Block.h:41
Definition BookScreenManager.h:5
Definition BoundingBox.h:13
Definition ClientInstanceScreenModel.h:5
static MCAPI void ** $vftableForIMinecraftScreenModel()
static MCAPI void ** $vftableForIDlcBatcher()
Definition CommandOrigin.h:32
Definition Path.h:11
Definition GuiMessage.h:5
Definition HudContainerManagerController.h:14
Definition ItemStack.h:26
Definition MinecartCommandBlockManager.h:5
Definition MinecraftScreenModel.h:5
Definition MinecraftglTFExporter.h:5
Definition NpcEventListener.h:5
Definition PlayerEventListener.h:32
Definition PortfolioScreenManager.h:5
Definition RectangleArea.h:5
Definition ResourceLocation.h:15
Definition StructureBlockActor.h:24
Definition StructureEditorData.h:17
Definition StructureSettings.h:18
Definition StructureTemplate.h:34
Definition TitleMessage.h:5
Definition Vec3.h:10
Definition Color.h:13
Definition UUID.h:8
Definition BossInfo.h:5
Definition ModalScreenData.h:5
Definition PhotoRecord.h:5