3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/certificates/identity/PlayerAuthenticationType.h"
7#include "mc/client/world/actor/player/ClientLocatorBar.h"
8#include "mc/common/Brightness.h"
9#include "mc/common/SubClientId.h"
10#include "mc/deps/application/LowMemorySeverity.h"
11#include "mc/deps/core/math/Vec3.h"
12#include "mc/deps/core/string/HashedString.h"
13#include "mc/deps/core/utility/CrashDumpLogStringID.h"
14#include "mc/deps/core/utility/NonOwnerPointer.h"
15#include "mc/deps/core/utility/pub_sub/Publisher.h"
16#include "mc/deps/core/utility/pub_sub/Subscription.h"
17#include "mc/deps/shared_types/legacy/ContainerType.h"
18#include "mc/deps/shared_types/legacy/EquipmentSlot.h"
19#include "mc/deps/shared_types/legacy/Side.h"
20#include "mc/deps/shared_types/legacy/actor/ArmorSlot.h"
21#include "mc/events/OpenCodeMethod.h"
22#include "mc/network/packet/PlayerRespawnState.h"
23#include "mc/platform/UUID.h"
24#include "mc/world/actor/ActorEvent.h"
25#include "mc/world/actor/ActorInitializationMethod.h"
26#include "mc/world/actor/ActorResetRule.h"
27#include "mc/world/actor/ActorSwingSource.h"
28#include "mc/world/actor/bhave/BehaviorStatus.h"
29#include "mc/world/actor/player/BedSleepingResult.h"
30#include "mc/world/actor/player/Player.h"
31#include "mc/world/containers/ContainerEnumName.h"
32#include "mc/world/inventory/InventoryMenu.h"
33#include "mc/world/inventory/network/TypedClientNetId.h"
34#include "mc/world/item/ItemStack.h"
35#include "mc/world/level/BlockPos.h"
36#include "mc/world/level/GameType.h"
37#include "mc/world/level/chunk/NetworkChunkSubscriber.h"
108 virtual ~RegionListener() =
default;
110 virtual void onRegionDestroyed() = 0;
124 ::ll::TypedStorage<8, 8, int64> mEmoteButtonDownStartTime;
125 ::ll::TypedStorage<1, 1, bool> mIsExpediateSelectionActive;
131 MCAPI
void emoteButtonEntered();
133 MCFOLD int64 getEmoteButtonDownStartTime()
const;
135 MCAPI
bool getIsExpediateSelectionActive()
const;
139 MCFOLD
void setIsExpediateSelectionActive(
bool isExpediateSelectionActive);
146 enum class FallState : uchar {
148 TickCheckAliveTicks = 1,
156 ::ll::TypedStorage<1, 1, ::LocalPlayer::FellFromWorldHeightAchievementTracker::FallState> mState;
157 ::ll::TypedStorage<4, 4, int> mCheckAliveTicks;
158 ::ll::TypedStorage<1, 1, bool> mHasSentAchievement;
164 MCAPI
void tick(
float fallDistance, ::Vec3
const& pos, ::Dimension& dimension, ::LocalPlayer* player);
172 ::ll::TypedStorage<1, 1, bool> mIsUndergroundCurrentTick;
173 ::ll::TypedStorage<1, 1, bool> mWasUndergroundPreviousTick;
174 ::ll::TypedStorage<1, 1, bool> mForceInitialEventingPropertyUpdate;
175 ::ll::TypedStorage<4, 12, ::BlockPos> mPreviousBlockPos;
176 ::ll::TypedStorage<1, 1, ::Brightness> mPreviousNaturalLightLevel;
182 MCAPI
void tick(::LocalPlayer& owner);
190 ::ll::TypedStorage<1, 1, ::SharedTypes::Legacy::ContainerType> mContainerTypeToClose;
191 ::ll::TypedStorage<1, 1, bool> mShouldCloseContainerScreen;
198 ::ll::TypedStorage<8, 112, ::InventoryMenu> mInventoryMenu;
199 ::ll::TypedStorage<4, 4, float> mPortalEffectTime;
200 ::ll::TypedStorage<4, 4, float> mOPortalEffectTime;
201 ::ll::TypedStorage<8, 16, ::LocalPlayer::EmoteExpediateData> mEmoteExpediateData;
202 ::ll::TypedStorage<4, 20, ::LocalPlayer::UndergroundTelemetryHeuristic> mUndergroundTelemetryHeuristic;
203 ::ll::TypedStorage<4, 12, ::LocalPlayer::FellFromWorldHeightAchievementTracker>
204 mFellFromWorldHeightAchievementTracker;
205 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mLowMemorySubscription;
206 ::ll::TypedStorage<8, 8, ::IClientInstance&> mClient;
207 ::ll::TypedStorage<4, 4, int> mCanCloseScreenOnHurtAfterTime;
208 ::ll::TypedStorage<4, 12, ::Vec3> mlastFrameDelta;
209 ::ll::TypedStorage<1, 1, bool> mEnablePortalEffect;
210 ::ll::TypedStorage<8, 152, ::ItemStack> mSentOffhandItem;
211 ::ll::TypedStorage<8, 152, ::ItemStack> mSentInventoryItem;
212 ::ll::TypedStorage<4, 4, int> mSentSelectedSlot;
213 ::ll::TypedStorage<1, 2, ::LocalPlayer::ContainerCloseInfo> mContainerCloseInfo;
214 ::ll::TypedStorage<8, 72, ::ClientLocatorBar> mClientLocatorBar;
215 ::ll::TypedStorage<8, 8, uint64> mSessionTickCount;
216 ::ll::TypedStorage<8, 24, ::std::vector<::LocalPlayer::RegionListener*>> mRegionListeners;
217 ::ll::TypedStorage<1, 1, bool> mDamagedByMobThisFrame;
218 ::ll::TypedStorage<1, 1, bool> mIsTeacher;
219 ::ll::TypedStorage<1, 1, bool> mHasBeenInitialized;
220 ::ll::TypedStorage<1, 1, bool> mPrevTransitionBlocking;
221 ::ll::TypedStorage<8, 32, ::std::string> mInventorySearchString;
222 ::ll::TypedStorage<8, 64, ::std::unordered_set<::mce::UUID>> mAllSentEmotePieceIds;
223 ::ll::TypedStorage<8, 48, ::HashedString> mCurrentStructureFeature;
224 ::ll::TypedStorage<8, 152, ::ItemStack> mItemActivationItem;
225 ::ll::TypedStorage<4, 4, int> mItemActivationTicks;
226 ::ll::TypedStorage<4, 4, float> mItemActivationOffsetX;
227 ::ll::TypedStorage<4, 4, float> mItemActivationOffsetY;
228 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PlayerAutomationObserver>> mAutomationObserver;
229 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::SubChunkRequestSubscriber>> mSubChunkSubscriber;
230 ::ll::TypedStorage<4, 4, uint> mTickingAreaChunkIndexToCheckForRequests;
231 ::ll::TypedStorage<8, 32, ::NetworkChunkSubscriber> mChunkSubscriberView;
232 ::ll::TypedStorage<1, 1, ::PlayerRespawnState> mClientRespawnState;
233 ::ll::TypedStorage<4, 12, ::Vec3> mClientRespawnPotentialPosition;
234 ::ll::TypedStorage<4, 4, int> mRenderChunkRadiusLowMemoryWatermark;
235 ::ll::TypedStorage<8, 32, ::std::string> mLastDeathInfo;
236 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Editor::IEditorPlayer>> mEditorClientPlayer;
237 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Bedrock::DDUI::DataStoreSyncClient>> mDataStoreSync;
238 ::ll::TypedStorage<4, 4, float> mCurrentExpCache;
239 ::ll::TypedStorage<4, 4, int> mCurrentLevelCache;
240 ::ll::TypedStorage<8, 8, ::std::chrono::steady_clock::time_point> mLastLevelChangedTimePoint;
241 ::ll::TypedStorage<8, 8, ::std::chrono::steady_clock::time_point> mLastXPContainerClosedTimePoint;
242 ::ll::TypedStorage<1, 1, bool> mPreparedMainChunkSource;
243 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mVisibleTouchJoystickLockSubscription;
244 ::ll::TypedStorage<8, 48, ::Bedrock::PubSub::Publisher<void(), ::Bedrock::PubSub::ThreadModel::SingleThreaded, 0>>
245 mClientPlayerGameTypePublisher;
246 ::ll::TypedStorage<8, 48, ::Bedrock::PubSub::Publisher<void(), ::Bedrock::PubSub::ThreadModel::SingleThreaded, 0>>
247 mLocalPlayerDeathPublisher;
248 ::ll::TypedStorage<8, 48, ::Bedrock::PubSub::Publisher<void(), ::Bedrock::PubSub::ThreadModel::SingleThreaded, 0>>
249 mLocalPlayerRespawnPublisher;
254 LocalPlayer& operator=(LocalPlayer
const&);
255 LocalPlayer(LocalPlayer
const&);
261 virtual ~LocalPlayer() ;
263 virtual void reloadHardcodedClient(::ActorInitializationMethod method) ;
265 virtual void prepareRegion(::ChunkSource& mainChunkSource) ;
267 virtual void suspendRegion() ;
269 virtual void destroyRegion() ;
271 virtual void tickWorld(::Tick
const& currentTick) ;
273 virtual void frameUpdate(::FrameUpdateContextBase&) ;
275 virtual ::std::vector<::ChunkPos>
const& getTickingOffsets() const ;
277 virtual
void normalTick() ;
279 virtual
bool startRiding(::Actor& vehicle,
bool forceRiding) ;
281 virtual
void aiStep() ;
283 virtual
void addAdditionalSaveData(::CompoundTag& entityTag) const ;
285 virtual
void readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) ;
287 virtual
void deleteContainerManager() ;
289 virtual
void openPortfolio() ;
291 virtual
void openBook(
int bookSlot,
bool editable,
int page, ::BlockActor* lectern) ;
293 virtual
void openChalkboard(::ChalkboardBlockActor& chalkboard,
bool showLockToggle) ;
295 virtual
void openNpcInteractScreen(::std::shared_ptr<::INpcDialogueData> data) ;
297 virtual
void openTrading(::ActorUniqueID const& uniqueID,
bool useNewScreen) ;
299 virtual
void openInventory() ;
301 virtual
void setContainerData(::IContainerManager&,
int,
int) ;
303 virtual
void slotChanged(
304 ::IContainerManager& menu,
307 ::ItemStack const& newItem,
308 ::ItemStack const& isResultSlot,
312 virtual
void refreshContainer(::IContainerManager&) ;
314 virtual
bool isLoading() const ;
316 virtual
void stopLoading() ;
318 virtual
void respawn() ;
320 virtual
void displayClientMessage(
321 ::std::
string const& message,
322 ::std::optional<::std::
string> const filteredMessage
325 virtual
void displayTextObjectMessage(
326 ::TextObjectRoot const& textObject,
327 ::std::
string const& fromXuid,
328 ::std::
string const& fromPlatformId
331 virtual
void displayWhisperMessage(
332 ::std::
string const& author,
333 ::std::
string const& message,
334 ::std::optional<::std::
string> const filteredMessage,
335 ::std::
string const& xuid,
336 ::std::
string const& platformId
339 virtual ::BedSleepingResult startSleepInBed(::BlockPos const& pos) ;
341 virtual
void stopSleepInBed(
bool forcefulWakeUp,
bool updateLevelList) ;
343 virtual
bool canStartSleepInBed() ;
345 virtual
void handleInsidePortal(::BlockPos const& portalPos) ;
347 virtual
bool swing(::ActorSwingSource swingSource) ;
349 virtual
void setSneaking(
bool _isSneaking) ;
351 virtual
void setSprinting(
bool _isSprinting) ;
353 virtual
void playEmote(::std::
string const& pieceId,
bool const playChatMessage) ;
355 virtual
void resetRot() ;
357 virtual
void resetUserPos(::ActorResetRule resetRule) ;
359 virtual
void teleportTo(
361 bool shouldStopRiding,
363 int sourceEntityType,
367 virtual
void changeDimension(::DimensionType toId) ;
369 virtual
void changeDimension(::ChangeDimensionPacket const& packet) ;
371 virtual
void setPlayerGameType(::GameType gameType) ;
373 virtual ::ActorUniqueID getControllingPlayer() const ;
375 virtual
void _fireDimensionChanged() ;
377 virtual
bool isAutoJumpEnabled() const ;
379 virtual
bool setItemSlot(::SharedTypes::Legacy::EquipmentSlot slot, ::ItemStack const& item) ;
381 virtual
void setOffhandSlot(::ItemStack const& item) ;
383 virtual
void setArmor(::SharedTypes::Legacy::ArmorSlot slot, ::ItemStack const& item) ;
385 virtual ::IMinecraftEventing* getEventing() const ;
387 virtual uint getUserId() const ;
389 virtual
bool isInTrialMode() ;
391 virtual
void setAbilities(::LayeredAbilities const& newAbilities) ;
393 virtual
void die(::ActorDamageSource const& source) ;
395 virtual
void onEffectRemoved(::MobEffectInstance& effect) ;
397 virtual
void addExperience(
int xp) ;
399 virtual
void addLevels(
int levels) ;
401 virtual
bool isActorRelevant(::Actor const&) ;
403 virtual
void handleEntityEvent(::ActorEvent
id,
int data) ;
405 virtual
void checkMovementStats(::Vec3 const& d) ;
407 virtual ::HashedString getCurrentStructureFeature() const ;
409 virtual
bool isTeacher() const ;
411 virtual
void sendInventoryTransaction(::InventoryTransaction const& transaction) const ;
413 virtual
void sendComplexInventoryTransaction(::std::unique_ptr<::ComplexInventoryTransaction> transaction) const
416 virtual
void sendNetworkPacket(::Packet& packet) const ;
418 virtual ::PlayerEventCoordinator& getPlayerEventCoordinator() ;
420 virtual
void applySnapshot(
421 ::EntityContext const& snapshotEntity,
422 ::MovementDataExtractionUtility::SnapshotAccessor const& originalSnapshotEntity
425 virtual
void destroyEditorPlayer() ;
427 virtual ::Bedrock::NonOwnerPointer<::Editor::IEditorPlayer> getEditorPlayer() const ;
429 virtual
void requestMissingSubChunk(::SubChunkPos const& scp) ;
431 virtual uchar getMaxChunkBuildRadius() const ;
433 virtual
void setBehaviorCommandStatus(::std::
string const& name, ::BehaviorStatus status) ;
435 virtual ::std::unique_ptr<::ISparseContainerSetListener> createSparseContainerListener() ;
437 virtual
void emitCriticalHitParticles(::Actor const& target,
int particleCount) ;
439 virtual ::ActorHurtResult
440 _hurt(::ActorDamageSource const& source,
float damage,
bool knock,
bool ignite) ;
447 ::IClientInstance& client,
449 ::std::
string const& playerName,
450 ::GameType playerGameType,
451 bool isHostingPlayer,
452 ::NetworkIdentifier const& owner,
455 ::std::
string const& deviceId,
456 ::PlayerAuthenticationType authType,
457 ::PlayerAuthenticationInfo const& authInfo,
458 ::EntityContext& entityContext
461 MCAPI
void _applyTurnDelta(::Vec2 const& turnOffset);
463 MCAPI
void _checkForTickingAreaSubchunkRequests();
465 MCAPI
void _forceCameraCut();
467 MCAPI ::CrashDumpLogStringID _getCrashDumpLogCategory();
469 MCAPI
void _handleDebugTracking();
471 MCAPI
void _logCDEvent(
472 ::CrashDumpLogStringID option1,
473 ::CrashDumpLogStringID option2,
474 ::CrashDumpLogStringID option3,
475 ::CrashDumpLogStringID option4
478 MCAPI
void _onLowMemory(::LowMemorySeverity severity);
480 MCAPI
void _prepareMainChunkSource(::ChunkPos const& center);
482 MCAPI
void addRegionListener(::LocalPlayer::
RegionListener* listener);
484 MCAPI
float checkSecondsSinceLevelChanged();
486 MCAPI
float checkSecondsSinceXPContainerClosed() const;
488 MCAPI
void clearMovementState();
490 MCAPI
void closeContainerScreen(::SharedTypes::Legacy::ContainerType containerType);
492 MCAPI
void closeNpcInteractScreen(::ActorUniqueID const& npcId);
494 MCAPI
void createEditorPlayer(::Bedrock::NonOwnerPointer<::Editor::IEditorManager> editorManager);
496 MCAPI
void describeBlock();
498 MCAPI
void fireEventPersonaEmotePlayed(
bool emoteEndedEarly);
500 MCAPI ::ItemStack const& getActivatedItem() const;
502 MCAPI ::IClientInstance& getClientInstance() const;
504 MCAPI ::ClientLocatorBar& getClientLocatorBar();
506 MCAPI ::NetworkIdentifier const& getConnectionId() const;
508 MCAPI ::SharedTypes::Legacy::ContainerType getContainerTypeToClose();
510 MCAPI ::Bedrock::DDUI::DataStoreSyncClient& getDataStoreSync();
514 MCAPI
float getFieldOfViewModifier() const;
516 MCAPI ::InventoryMenu& getInventoryMenu();
518 MCAPI ::std::
string const& getInventorySearchString() const;
520 MCAPI
int getItemActivationOffsetX() const;
522 MCAPI
int getItemActivationOffsetY() const;
524 MCAPI
int getItemActivationTicks() const;
526 MCFOLD ::ItemStackNetManagerClient& getItemStackNetManagerClient();
528 MCAPI ::std::
string const& getLastDeathInfo() const;
530 MCAPI ::NetworkChunkSubscriber& getNetworkChunkSubscriber();
532 MCAPI
float getOPortalEffectTime() const;
534 MCAPI
float getPickRange() const;
536 MCAPI
float getPortalEffectTime() const;
538 MCAPI uint getViewBlockRadius() const;
540 MCAPI
void handleArmorDamage(::ArmorSlotAndDamagePair const& armorSlotAndDamage);
542 MCAPI
void handleChunkGenerationRequests(
543 ::ChunkPos moveCenter,
545 ::std::vector<::ChunkPos> const& serverChunks
548 MCAPI
bool hasBossRegistered(::ActorUniqueID) const;
550 MCAPI
void hurtTo(
int newHealth);
552 MCAPI
void initializeItemStackNetManager(
bool enableItemStackNetManager);
554 MCAPI
bool isAbleToRespawn() const;
556 MCAPI
bool isPlaying() const;
558 MCAPI
void localPlayerTurn(::Vec2 const& deltaRot);
560 MCAPI
void markUIAnimationComponentDirty();
562 MCAPI
void missedSwing();
564 MCAPI
void onStopRidingCameraForceCut();
566 MCAPI
void openCodeScreen(::OpenCodeMethod openMethod);
568 MCAPI
void pickBlock(::HitResult const& hitResult,
bool withData);
570 MCAPI
void playEmoteSlot(
int slotIndex,
bool playChatMessage);
572 MCAPI
void pushChangeDimensionLoadingScreen(::DimensionType toId);
574 MCAPI ::Bedrock::PubSub::Subscription registerLocalPlayerDeathListener(::std::function<
void()> callback);
576 MCAPI ::Bedrock::PubSub::Subscription registerLocalPlayerRespawnListener(::std::function<
void()> callback);
578 MCAPI ::Bedrock::PubSub::Subscription registerPlayerGameTypeChangedListener(::std::function<
void()> callback);
580 MCAPI
void removeRegionListener(::LocalPlayer::
RegionListener* listener);
582 MCAPI
void requestChunkRadius(uint chunkRadius);
584 MCAPI
void resetLastDeathInfo();
586 MCAPI
void sendBlockPickRequestPacket(::BlockSource& region, ::BlockPos const& hitResultBlockPos,
bool withData);
588 MCAPI
void sendEmotes();
590 MCAPI
void sendInput();
592 MCAPI
void setAllEmotePlayedTelemetryData(::std::
string const& emoteProductId,
int emoteSlotNumber);
594 MCAPI
void setAndSaveBlastFurnaceOptions(::FurnaceOptions const& options);
596 MCAPI
void setAndSaveFurnaceOptions(::FurnaceOptions const& options);
598 MCAPI
void setAndSaveInventoryOptions(::InventoryOptions const& options);
600 MCAPI
void setAndSaveSmokerOptions(::FurnaceOptions const& options);
602 MCAPI
void setClientRespawnPotentialPosition(::Vec3 const& pos);
604 MCAPI
void setClientRespawnState(::PlayerRespawnState const& state);
606 MCAPI
void setConnectionId(::NetworkIdentifier const&
id);
608 MCAPI
void setCurrentStructureFeature(::HashedString structureFeature);
610 MCAPI
void setInventorySearchString(::std::
string const& inventorySearchString);
612 MCAPI
void setLastDeathInfo(::std::
string const& info);
614 MCAPI
void setPlayerGameTypeWithoutServerNotification(::GameType gameType);
616 MCAPI
bool shouldCloseContainer();
618 MCAPI
bool shouldRotateWithCamera() const;
620 MCAPI
void startPaddling(::SharedTypes::Side side);
622 MCAPI
void stopPaddling(::SharedTypes::Side side);
624 MCAPI
void updateSecondsSinceXPContainerClosed();
630 MCAPI static
void _populateLegacyTransactionRequest(
631 ::ItemStackLegacyRequestId& legacyRequestId,
632 ::std::vector<::std::pair<::ContainerEnumName, ::std::vector<uchar>>>& legacySetItemSlots,
633 ::ItemStackNetManagerClient const& itemStackNetManager
636 MCAPI static
void sendInput(::EntityContext& entity, ::PacketSender& packetSender);
638 MCAPI static ::LocalPlayer* tryGetFromEntity(::EntityContext& entity,
bool includeRemoved);
645 ::IClientInstance& client,
647 ::std::
string const& playerName,
648 ::GameType playerGameType,
649 bool isHostingPlayer,
650 ::NetworkIdentifier const& owner,
653 ::std::
string const& deviceId,
654 ::PlayerAuthenticationType authType,
655 ::PlayerAuthenticationInfo const& authInfo,
656 ::EntityContext& entityContext
669 MCAPI
void $reloadHardcodedClient(::ActorInitializationMethod method);
671 MCAPI
void $prepareRegion(::ChunkSource& mainChunkSource);
673 MCAPI
void $suspendRegion();
675 MCAPI
void $destroyRegion();
677 MCAPI
void $tickWorld(::Tick const& currentTick);
679 MCFOLD
void $frameUpdate(::FrameUpdateContextBase&);
681 MCAPI ::std::vector<::ChunkPos> const& $getTickingOffsets() const;
683 MCAPI
void $normalTick();
685 MCAPI
bool $startRiding(::Actor& vehicle,
bool forceRiding);
687 MCAPI
void $aiStep();
689 MCAPI
void $addAdditionalSaveData(::CompoundTag& entityTag) const;
691 MCAPI
void $readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
693 MCAPI
void $deleteContainerManager();
695 MCAPI
void $openPortfolio();
697 MCAPI
void $openBook(
int bookSlot,
bool editable,
int page, ::BlockActor* lectern);
699 MCAPI
void $openChalkboard(::ChalkboardBlockActor& chalkboard,
bool showLockToggle);
701 MCAPI
void $openNpcInteractScreen(::std::shared_ptr<::INpcDialogueData> data);
703 MCAPI
void $openTrading(::ActorUniqueID const& uniqueID,
bool useNewScreen);
705 MCAPI
void $openInventory();
707 MCFOLD
void $setContainerData(::IContainerManager&,
int,
int);
709 MCAPI
void $slotChanged(
710 ::IContainerManager& menu,
713 ::ItemStack const& newItem,
714 ::ItemStack const& isResultSlot,
718 MCFOLD
void $refreshContainer(::IContainerManager&);
720 MCAPI
bool $isLoading() const;
722 MCAPI
void $stopLoading();
724 MCAPI
void $respawn();
727 $displayClientMessage(::std::
string const& message, ::std::optional<::std::
string> const filteredMessage);
729 MCAPI
void $displayTextObjectMessage(
730 ::TextObjectRoot const& textObject,
731 ::std::
string const& fromXuid,
732 ::std::
string const& fromPlatformId
735 MCAPI
void $displayWhisperMessage(
736 ::std::
string const& author,
737 ::std::
string const& message,
738 ::std::optional<::std::
string> const filteredMessage,
739 ::std::
string const& xuid,
740 ::std::
string const& platformId
743 MCAPI ::BedSleepingResult $startSleepInBed(::BlockPos const& pos);
745 MCAPI
void $stopSleepInBed(
bool forcefulWakeUp,
bool updateLevelList);
747 MCAPI
bool $canStartSleepInBed();
749 MCAPI
void $handleInsidePortal(::BlockPos const& portalPos);
751 MCAPI
bool $swing(::ActorSwingSource swingSource);
753 MCAPI
void $setSneaking(
bool _isSneaking);
755 MCAPI
void $setSprinting(
bool _isSprinting);
757 MCAPI
void $playEmote(::std::
string const& pieceId,
bool const playChatMessage);
759 MCAPI
void $resetRot();
761 MCAPI
void $resetUserPos(::ActorResetRule resetRule);
764 $teleportTo(::Vec3 const& pos,
bool shouldStopRiding,
int cause,
int sourceEntityType,
bool keepVelocity);
766 MCFOLD
void $changeDimension(::DimensionType toId);
768 MCAPI
void $changeDimension(::ChangeDimensionPacket const& packet);
770 MCAPI
void $setPlayerGameType(::GameType gameType);
772 MCFOLD ::ActorUniqueID $getControllingPlayer() const;
774 MCAPI
void $_fireDimensionChanged();
776 MCAPI
bool $isAutoJumpEnabled() const;
778 MCAPI
bool $setItemSlot(::SharedTypes::Legacy::EquipmentSlot slot, ::ItemStack const& item);
780 MCAPI
void $setOffhandSlot(::ItemStack const& item);
782 MCAPI
void $setArmor(::SharedTypes::Legacy::ArmorSlot slot, ::ItemStack const& item);
784 MCAPI ::IMinecraftEventing* $getEventing() const;
786 MCAPI uint $getUserId() const;
788 MCAPI
bool $isInTrialMode();
790 MCAPI
void $setAbilities(::LayeredAbilities const& newAbilities);
792 MCAPI
void $die(::ActorDamageSource const& source);
794 MCAPI
void $onEffectRemoved(::MobEffectInstance& effect);
796 MCFOLD
void $addExperience(
int xp);
798 MCFOLD
void $addLevels(
int levels);
800 MCFOLD
bool $isActorRelevant(::Actor const&);
802 MCAPI
void $handleEntityEvent(::ActorEvent
id,
int data);
804 MCAPI
void $checkMovementStats(::Vec3 const& d);
806 MCAPI ::HashedString $getCurrentStructureFeature() const;
808 MCAPI
bool $isTeacher() const;
810 MCAPI
void $sendInventoryTransaction(::InventoryTransaction const& transaction) const;
812 MCAPI
void $sendComplexInventoryTransaction(::std::unique_ptr<::ComplexInventoryTransaction> transaction) const;
814 MCAPI
void $sendNetworkPacket(::Packet& packet) const;
816 MCAPI ::PlayerEventCoordinator& $getPlayerEventCoordinator();
818 MCAPI
void $applySnapshot(
819 ::EntityContext const& snapshotEntity,
820 ::MovementDataExtractionUtility::SnapshotAccessor const& originalSnapshotEntity
823 MCAPI
void $destroyEditorPlayer();
825 MCAPI ::Bedrock::NonOwnerPointer<::Editor::IEditorPlayer> $getEditorPlayer() const;
827 MCAPI
void $requestMissingSubChunk(::SubChunkPos const& scp);
829 MCAPI uchar $getMaxChunkBuildRadius() const;
831 MCAPI
void $setBehaviorCommandStatus(::std::
string const& name, ::BehaviorStatus status);
833 MCAPI ::std::unique_ptr<::ISparseContainerSetListener> $createSparseContainerListener();
835 MCAPI
void $emitCriticalHitParticles(::Actor const& target,
int particleCount);
837 MCAPI ::ActorHurtResult $_hurt(::ActorDamageSource const& source,
float damage,
bool knock,
bool ignite);
Definition ActorDamageSource.h:18
Definition ActorHurtResult.h:5
Definition DataStoreSyncClient.h:7
Definition BlockActor.h:30
Definition BlockSource.h:73
Definition ChalkboardBlockActor.h:26
Definition ChangeDimensionPacket.h:19
Definition ChunkSource.h:37
Definition ComplexInventoryTransaction.h:21
Definition CompoundTag.h:23
Definition Container.h:34
Definition DataLoadHelper.h:20
Definition Dimension.h:89
Definition IEditorManager.h:25
Definition IEditorPlayer.h:16
Definition EntityContext.h:17
Definition FrameUpdateContextBase.h:5
Definition HitResult.h:19
Definition IClientInstance.h:5
Definition IContainerManager.h:16
Definition IMinecraftEventing.h:138
Definition ISparseContainerSetListener.h:11
Definition InventoryTransaction.h:22
Definition ItemStackNetManagerClient.h:43
Definition LayeredAbilities.h:21
Definition LocalPlayer.h:19
Definition LocalPlayer.h:21
Definition LocalPlayer.h:17
Definition LocalPlayer.h:27
Definition LocalPlayer.h:5
static MCAPI void ** $vftable()
Definition MobEffectInstance.h:20
Definition NetworkIdentifier.h:10
Definition PacketSender.h:17
Definition PlayerAutomationObserver.h:5
Definition PlayerEventCoordinator.h:28
Definition SubChunkPos.h:5
Definition SubChunkRequestSubscriber.h:15
Definition TextObjectRoot.h:17
Definition ActorUniqueID.h:10
Definition ArmorSlotAndDamagePair.h:8
Definition SingleThreaded.h:7
Definition DimensionType.h:5
Definition FurnaceOptions.h:5
Definition INpcDialogueData.h:12
Definition InventoryOptions.h:10
Definition ItemStackLegacyRequestIdTag.h:5
Definition LocalPlayer.h:29
Definition PlayerAuthenticationInfo.h:9