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