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/MinecraftScreenModel.h"
8#include "mc/client/util/ChatMessageRestrictions.h"
9#include "mc/deps/core/threading/Async.h"
10#include "mc/legacy/ActorUniqueID.h"
11#include "mc/network/packet/StructureTemplateRequestOperation.h"
12#include "mc/util/HudElement.h"
13#include "mc/util/ProfanityFilterContext.h"
14#include "mc/world/level/block/actor/BlockActorType.h"
15
16// auto generated forward declare list
17// clang-format off
18class Block;
19class BlockActor;
20class BlockPos;
21class BlockSource;
23class GuiMessage;
24class ItemStack;
32class TitleMessage;
33class Vec3;
34struct BossInfo;
35struct PhotoRecord;
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 bool exportStructureBlock(::std::string const& structureName, ::Core::Path const& filePath);
99
100 MCAPI bool findStructure(::StructureEditorData& structureData);
101
102 MCAPI bool forceAllowEating() const;
103
104 MCAPI ::Block const& getBlockAt(::BlockPos const& blockPos) const;
105
106 MCAPI ::BlockActor* getBlockEntity(::BlockPos const& pos, ::BlockActorType blockEntityType);
107
108 MCAPI ::CoordinateCaptureType getCoordinateCaptureType() const;
109
110 MCAPI ::std::vector<::GuiMessage>& getGuiMessageList();
111
112 MCAPI ::std::string getInteractionText() const;
113
114 MCAPI int getItemNameOffset(bool showClassicUI, bool showSurvivalUI, bool showLocatorBar) const;
115
116 MCAPI ::std::string const getLastFilteredChatMessage();
117
118 MCAPI int getNumberOfDaysPlayed() const;
119
120 MCAPI ::ItemStack const& getOffhandSlot() const;
121
122 MCAPI int getPlayerArmorValue() const;
123
124 MCAPI int getPlayerLevel();
125
126 MCAPI ::Vec3 getPlayerPosition() const;
127
128 MCAPI ::BlockSource* getPlayerRegion() const;
129
130 MCAPI ::ItemStack const& getSelectedItem() const;
131
132 MCAPI ::std::vector<::GuiMessage>& getSubtitleList();
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 ::Bedrock::PubSub::Subscription subscribeToSoundEvent(
217 ::std::function<void(
218 ::std::string const&,
219 ::std::optional<::std::string>,
220 ::Vec3 const&,
221 float,
222 ::Vec3 const&,
223 ::Vec3 const&
224 )> callback
225 );
226
227 MCAPI bool thirdPartyGamerpicAllowed(::mce::UUID const& playerId) const;
228
229 MCAPI void toggleChatMute();
230
231 MCAPI bool tryBroadcastGlobalPause(bool status);
232
233 MCAPI bool tryGetAgentPosition(::BlockPos& result) const;
234
235 MCAPI void unregisterNpcEventListener(::NpcEventListener& listener);
236 // NOLINTEND
237
238public:
239 // constructor thunks
240 // NOLINTBEGIN
241 MCAPI void* $ctor(::MinecraftScreenModel::Context context);
242 // NOLINTEND
243
244public:
245 // vftables
246 // NOLINTBEGIN
247 MCNAPI static void** $vftableForIDlcBatcher();
248
249 MCNAPI static void** $vftableForIMinecraftScreenModel();
250 // NOLINTEND
251};
Definition Subscription.h:10
Definition BlockActor.h:30
Definition BlockPos.h:19
Definition BlockSource.h:71
Definition Block.h:43
Definition BookScreenManager.h:5
Definition ClientInstanceScreenModel.h:5
static MCAPI void ** $vftableForIMinecraftScreenModel()
static MCAPI void ** $vftableForIDlcBatcher()
Definition Path.h:17
Definition GuiMessage.h:5
Definition ItemStack.h:26
Definition MinecartCommandBlockManager.h:5
Definition MinecraftScreenModel.h:5
Definition MinecraftglTFExporter.h:5
Definition NpcEventListener.h:14
Definition ResourceLocation.h:15
Definition StructureEditorData.h:18
Definition StructureSettings.h:18
Definition StructureTemplate.h:35
Definition TitleMessage.h:5
Definition Vec3.h:10
Definition UUID.h:7
Definition BossInfo.h:5
Definition PhotoRecord.h:5