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 BlockActor;
18class BlockPos;
19class BlockSource;
20class CommandOrigin;
21class ItemStack;
27class Vec3;
28struct ActorUniqueID;
29struct GuiMessage;
32struct PhotoRecord;
33struct TitleMessage;
34namespace Bedrock::PubSub { class Subscription; }
35namespace Core { class Path; }
36namespace mce { class UUID; }
37// clang-format on
38
40public:
41 // member variables
42 // NOLINTBEGIN
44 // NOLINTEND
45
46public:
47 // prevent constructor by default
51
52public:
53 // virtual functions
54 // NOLINTBEGIN
55 // vIndex: 0
56 virtual ~ClientInstanceScreenModel() /*override*/ = default;
57 // NOLINTEND
58
59public:
60 // member functions
61 // NOLINTBEGIN
63
64 MCNAPI void addPhotoToPortfolio(::std::string const& photoName, ::std::string const& newPhotoName);
65
66 MCNAPI bool canCollectFromCauldron(::BlockPos const& blockPos) const;
67
68 MCNAPI bool canEmptyIntoCauldron(::BlockPos const& blockPos) const;
69
70 MCNAPI bool canPlaceHeldBlock() const;
71
72 MCNAPI bool canPlaceHeldItem() const;
73
74 MCNAPI bool canPlaceWaterlily() const;
75
76 MCNAPI bool canTipArrows(::BlockPos const& blockPos) const;
77
78 MCNAPI bool canUseReed() const;
79
80 MCNAPI bool canUseSeed() const;
81
82 MCNAPI void clearTitleMessages();
83
84 MCNAPI ::std::unique_ptr<::MinecartCommandBlockManager>
85 createCommandBlockManager(bool isMinecart, ::BlockPos pos, ::ActorUniqueID entityUniqueID);
86
87 MCNAPI void createPhotoItem(::PhotoRecord const& record);
88
90 ::std::string const& message,
91 ::std::string const& ttsMessage,
92 ::ProfanityFilterContext profanityFilterContext
93 );
94
96
97 MCNAPI ::ChatMessageRestrictions executeCommand(::std::string const& commandLine);
98
99 MCNAPI bool findStructure(::StructureEditorData& structureData);
100
101 MCNAPI bool forceAllowEating() const;
102
103 MCNAPI ::BlockActor* getBlockEntity(::BlockPos const& pos, ::BlockActorType blockEntityType);
104
105 MCNAPI ::CoordinateCaptureType getCoordinateCaptureType() const;
106
107 MCNAPI ::std::vector<::GuiMessage>& getGuiMessageList();
108
109 MCNAPI ::std::string getInteractionText() const;
110
111 MCNAPI int getItemNameOffset(bool showClassicUI, bool showSurvivalUI, bool showLocatorBar) const;
112
113 MCNAPI ::std::string const getLastFilteredChatMessage();
114
115 MCNAPI ::ItemStack const& getOffhandSlot() const;
116
117 MCNAPI int getPlayerArmorValue() const;
118
119 MCNAPI ::std::unique_ptr<::CommandOrigin> getPlayerCommandOrigin() const;
120
121 MCNAPI ::BlockSource* getPlayerRegion() const;
122
123 MCNAPI ::ItemStack const& getSelectedItem() const;
124
125 MCNAPI ::Bedrock::Threading::Async<::ResourceLocation>
126 getThirdPartyGamerpic(::mce::UUID const& playerId, ::std::string const& platformOnlineID) const;
127
128 MCNAPI ::TitleMessage const& getTitleMessage() const;
129
130 MCNAPI float getXToScreenRatio(float x) const;
131
132 MCNAPI float getYToScreenRatio(float y) const;
133
134 MCNAPI ::StructureTemplate* importStructureBlock(::std::string const& structureName, ::Core::Path const& filePath);
135
137 ::std::string const& defaultName,
138 ::Core::Path const& originPath,
139 ::std::function<void(bool)> onComplete
140 );
141
142 MCNAPI ::std::shared_ptr<::MinecraftglTFExporter> initiateStructureModelExport(
143 ::BlockPos const& position,
144 ::StructureEditorData const& structureEditorData,
145 ::std::function<void(bool)> onFileReady
146 );
147
148 MCNAPI bool isBossProperlyRegistered(int index) const;
149
150 MCNAPI bool isChatMute() const;
151
152 MCNAPI bool isDimensionReady() const;
153
154 MCNAPI bool const isHudElementVisible(::HudElement hudElement) const;
155
156 MCNAPI bool isInteracting() const;
157
158 MCNAPI bool isPlayerFlying() const;
159
160 MCNAPI bool isPlayerHungry() const;
161
163
164 MCNAPI bool isTouchPressed() const;
165
166 MCNAPI bool itemFrameFilled(::BlockPos const& blockPos) const;
167
169 ::std::string const& structureName,
170 ::BlockPos const& structureBlockPosition,
171 ::StructureSettings const& structureSettings,
172 ::StructureTemplateRequestOperation exportOperation
173 );
174
175 MCNAPI void navigateToImmersiveReaderScreen(::std::string readerText);
176
177 MCNAPI void navigateToLeaveLevelScreen(bool switchScreen);
178
180
181 MCNAPI void queryBossInfo() const;
182
184
185 MCNAPI void requestDisconnectPlayer(::std::string const& userName);
186
188
190
191 MCNAPI ::ChatMessageRestrictions sendChatMessage(::std::string const& message);
192
194
195 MCNAPI void sendRespawnRequest() const;
196
197 MCNAPI void setMenuPointerPressed(bool pressed);
198
199 MCNAPI bool shouldDisplayDaysPlayed() const;
200
201 MCNAPI bool shouldDisplayPlayerPosition() const;
202
203 MCNAPI ::Bedrock::PubSub::Subscription subscribeToProfanityToggleEvent(::std::function<void(bool, bool)> callback);
204
205 MCNAPI bool thirdPartyGamerpicAllowed(::mce::UUID const& playerId) const;
206
207 MCNAPI void toggleChatMute();
208
209 MCNAPI bool tryBroadcastGlobalPause(bool status);
210
211 MCNAPI bool tryGetAgentPosition(::BlockPos& result) const;
212
214 // NOLINTEND
215
216public:
217 // constructor thunks
218 // NOLINTBEGIN
220 // NOLINTEND
221
222public:
223 // vftables
224 // NOLINTBEGIN
225 MCNAPI static void** $vftableForIDlcBatcher();
226
227 MCNAPI static void** $vftableForIMinecraftScreenModel();
228 // NOLINTEND
229};
Definition BlockActor.h:32
Definition BlockPos.h:14
Definition BlockSource.h:63
Definition ClientInstanceScreenModel.h:39
MCAPI ::std::unique_ptr<::CommandOrigin > getPlayerCommandOrigin() const
MCAPI::std::string const getLastFilteredChatMessage()
MCAPI bool canUseSeed() const
MCAPI bool tryBroadcastGlobalPause(bool status)
MCAPI bool forceAllowEating() 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 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 void requestDisconnectPlayer(::std::string const &userName)
MCAPI::BlockSource * getPlayerRegion() const
MCAPI void createPhotoItem(::PhotoRecord const &record)
MCAPI bool canPlaceWaterlily() const
MCAPI void navigateToServerStoreScreen()
MCAPI::StructureTemplate * importStructureBlock(::std::string const &structureName, ::Core::Path const &filePath)
MCAPI bool canCollectFromCauldron(::BlockPos const &blockPos) const
MCAPI ::std::vector<::GuiMessage > & getGuiMessageList()
MCAPI bool isDimensionReady() const
MCAPI float distanceSqrFromPlayerToBlockCenter(::Vec3 const &pos)
MCAPI bool isRemoteProfanityFilterEnabled() const
MCAPI void addPhotoToPortfolio(::std::string const &photoName, ::std::string const &newPhotoName)
MCAPI void unregisterNpcEventListener(::NpcEventListener &listener)
MCAPI bool isBossProperlyRegistered(int index) const
MCAPI bool canUseReed() const
MCAPI void resetCanTakeScreenshot()
MCAPI bool thirdPartyGamerpicAllowed(::mce::UUID const &playerId) const
MCAPI void sendRespawnRequest() const
static MCAPI void ** $vftableForIMinecraftScreenModel()
MCAPI void sendCommandBlockUpdatePacket(::BlockPos const &pos)
MCAPI void queryBossInfo() const
MCAPI void registerNpcEventListener(::NpcEventListener &listener)
MCAPI bool shouldDisplayPlayerPosition() const
static MCAPI void ** $vftableForIDlcBatcher()
MCAPI::TitleMessage const & getTitleMessage() const
MCAPI void clearTitleMessages()
MCAPI bool isPlayerHungry() const
MCAPI bool isChatMute() const
MCAPI ::std::unique_ptr<::MinecartCommandBlockManager > createCommandBlockManager(bool isMinecart, ::BlockPos pos, ::ActorUniqueID entityUniqueID)
MCAPI void sendBlockEntityUpdatePacket(::BlockPos const &pos)
MCAPI void navigateToLeaveLevelScreen(bool switchScreen)
MCAPI int getPlayerArmorValue() const
MCAPI::std::string getInteractionText() const
MCAPI bool isTouchPressed() const
MCAPI ClientInstanceScreenModel(::MinecraftScreenModel::Context context)
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::BlockActor * getBlockEntity(::BlockPos const &pos, ::BlockActorType blockEntityType)
MCAPI bool canTipArrows(::BlockPos const &blockPos) const
MCAPI::ChatMessageRestrictions executeCommand(::std::string const &commandLine)
MCAPI bool canPlaceHeldBlock() const
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 int getItemNameOffset(bool showClassicUI, bool showSurvivalUI, bool showLocatorBar) const
MCAPI bool tryGetAgentPosition(::BlockPos &result) const
MCAPI::ItemStack const & getOffhandSlot() const
MCAPI bool shouldDisplayDaysPlayed() const
MCAPI::CoordinateCaptureType getCoordinateCaptureType() const
MCAPI::Bedrock::PubSub::Subscription subscribeToProfanityToggleEvent(::std::function< void(bool, bool)> callback)
MCAPI float getYToScreenRatio(float y) const
MCAPI void * $ctor(::MinecraftScreenModel::Context context)
MCAPI bool canEmptyIntoCauldron(::BlockPos const &blockPos) const
MCAPI bool isPlayerFlying() const
MCAPI void navigateToImmersiveReaderScreen(::std::string readerText)
MCAPI bool findStructure(::StructureEditorData &structureData)
Definition CommandOrigin.h:30
Definition Path.h:10
Definition ItemStack.h:26
Definition NpcEventListener.h:14
Definition Path.h:16
Definition ResourceLocation.h:14
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 GuiMessage.h:5
Definition MinecartCommandBlockManager.h:5
Definition MinecraftScreenModel.h:15
Definition MinecraftScreenModel.h:5
Definition MinecraftglTFExporter.h:5
Definition PhotoRecord.h:5
Definition TitleMessage.h:5
Definition _HeaderOutputPredefine.h:273