131 using PlayerFlagIDType = char;
137 ::ll::TypedStorage<4, 12, ::Vec3> mPosition;
138 ::ll::TypedStorage<1, 1, bool> mIsAboveLeaves;
146 ::ll::TypedStorage<4, 12, ::Vec3> mPosition;
147 ::ll::TypedStorage<4, 4, ::PlayerSpawnFallbackType> mSpawnFallbackType;
151 enum class SpawnPositionState :
int {
152 InitializeSpawnPositionRandomizer = 0,
153 WaitForClientAck = 1,
154 DetermineDimension = 2,
156 WaitForDimension = 4,
158 CheckLoadedChunk = 6,
159 ChooseSpawnPosition = 7,
163 enum class SpawnPositionSource :
int {
174 ::ll::TypedStorage<4, 4, ::DimensionType> mRespawnDimensionId;
175 ::ll::TypedStorage<4, 12, ::Vec3> mActualRespawnPosition;
176 ::ll::TypedStorage<4, 12, ::BlockPos> mRequestedRespawnPosition;
177 ::ll::TypedStorage<1, 1, bool> mHasRespawnPosition;
178 ::ll::TypedStorage<4, 12, ::BlockPos> mSharedSpawnPosition;
179 ::ll::TypedStorage<1, 1, bool> mRespawnReady;
180 ::ll::TypedStorage<4, 12, ::Vec3> mPlayerPos;
181 ::ll::TypedStorage<1, 1, bool> mIsForcedRespawn;
182 ::ll::TypedStorage<1, 1, bool> mIsAdventure;
183 ::ll::TypedStorage<1, 1, bool> mIsFlyingOrNotOverworld;
184 ::ll::TypedStorage<1, 1, bool> mPositionLoadedFromSave;
188 using PlayerListenerList = ::std::vector<::PlayerListener*>;
194 ::ll::TypedStorage<4, 12, ::BlockPos> mSpawnBlockPos;
195 ::ll::TypedStorage<4, 12, ::BlockPos> mPlayerPosition;
196 ::ll::TypedStorage<4, 4, ::DimensionType> mDimension;
218 LLNDAPI SubClientId
const& getClientSubId()
const;
220 LLNDAPI
int getSelectedItemSlot()
const;
248 LLNDAPI std::optional<NetworkPeer::NetworkStatus> getNetworkStatus()
const;
259 LLAPI
void setAbility(::AbilitiesIndex index,
bool value);
287 ::ll::TypedStorage<8, 24, ::std::vector<ushort>> mOceanBiomes;
288 ::ll::TypedStorage<8, 24, ::std::vector<ushort>> mFroglights;
289 ::ll::TypedStorage<4, 4, float const> mSneakHeight;
290 ::ll::TypedStorage<4, 4, float const> mSneakOffset;
291 ::ll::TypedStorage<4, 4, int> mScore;
292 ::ll::TypedStorage<4, 4, ::BuildPlatform> mBuildPlatform;
293 ::ll::TypedStorage<8, 32, ::std::string> mUniqueName;
294 ::ll::TypedStorage<8, 32, ::std::string> mServerId;
295 ::ll::TypedStorage<8, 32, ::std::string> mSelfSignedId;
296 ::ll::TypedStorage<8, 32, ::std::string> mPlatformOfflineId;
297 ::ll::TypedStorage<8, 8, uint64> mClientRandomId;
298 ::ll::TypedStorage<8, 32, ::std::string> mPlatformId;
299 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPendingVehicleID;
300 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPendingLeftShoulderPassengerID;
301 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPendingRightShoulderPassengerID;
302 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mInteractTarget;
303 ::ll::TypedStorage<4, 12, ::Vec3> mInteractTargetPos;
304 ::ll::TypedStorage<1, 1, bool> mHasFakeInventory;
305 ::ll::TypedStorage<1, 1, bool> mIsRegionSuspended;
306 ::ll::TypedStorage<1, 1, bool> mUpdateMobs;
307 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ChunkViewSource>> mChunkSource;
308 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ChunkViewSource>> mSpawnChunkSource;
309 ::ll::TypedStorage<4, 12, ::Vec3> mCapePosO;
310 ::ll::TypedStorage<4, 12, ::Vec3> mCapePos;
311 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ContainerManagerModel>> mContainerManager;
318 mContainerManagerSubscribers;
319 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PlayerInventory>> mInventory;
320 ::ll::TypedStorage<4, 20, ::InventoryOptions> mInventoryOptions;
321 ::ll::TypedStorage<4, 4, float> mDistanceSinceTransformEvent;
322 ::ll::TypedStorage<8, 24, ::std::vector<::ItemInstance>> mCreativeItemList;
323 ::ll::TypedStorage<8, 32, ::std::string> mPlatformOnlineId;
324 ::ll::TypedStorage<4, 4, ::Player::SpawnPositionState> mSpawnPositionState;
325 ::ll::TypedStorage<4, 4, ::Player::SpawnPositionSource> mSpawnPositionSource;
326 ::ll::TypedStorage<4, 12, ::Vec3> mSpawnPositioningTestPosition;
327 ::ll::TypedStorage<4, 4, uint> mRespawnChunkBuilderPolicyHandle;
328 ::ll::TypedStorage<4, 64, ::Player::CachedSpawnData> mCachedSpawnData;
329 ::ll::TypedStorage<8, 16, ::OwnerPtr<::BlockSource>> mSpawnBlockSource;
330 ::ll::TypedStorage<8, 56, ::Stopwatch> mRespawnStopwatch_Searching;
331 ::ll::TypedStorage<4, 12, ::Vec3> mRespawnOriginalPosition;
332 ::ll::TypedStorage<4, 4, ::DimensionType> mRespawnOriginalDimension;
333 ::ll::TypedStorage<8, 32, ::std::string> mRespawnMessage;
334 ::ll::TypedStorage<1, 1, bool> mRespawnReady;
335 ::ll::TypedStorage<1, 1, bool> mIsInitialSpawnDone;
336 ::ll::TypedStorage<1, 1, bool> mRespawningFromTheEnd;
337 ::ll::TypedStorage<1, 1, bool> mPositionLoadedFromSave;
338 ::ll::TypedStorage<1, 1, bool> mBlockRespawnUntilClientMessage;
339 ::ll::TypedStorage<1, 1, bool> mHasSeenCredits;
340 ::ll::TypedStorage<4, 8, ::std::optional<::PlayerSpawnFallbackType>> mSpawnFallbackType;
341 ::ll::TypedStorage<4, 16, ::std::optional<::Vec3>> mSpawnFallbackPosition;
342 ::ll::TypedStorage<8, 168, ::PlayerItemInUse> mItemInUse;
343 ::ll::TypedStorage<4, 4, ::ActorType> mLastHurtBy;
344 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPreviousInteractEntity;
345 ::ll::TypedStorage<4, 4, int> mPreviousCarriedItem;
346 ::ll::TypedStorage<4, 4, int> mEmoteTicks;
347 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::NetworkChunkPublisher>> mChunkPublisherView;
348 ::ll::TypedStorage<8, 8, ::PacketSender&> mPacketSender;
349 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::HudContainerManagerModel>> mHudContainerManagerModel;
350 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::EnderChestContainer>> mEnderChestInventory;
351 ::ll::TypedStorage<8, 24, ::std::vector<::ActorUniqueID>> mTrackedBossIDs;
352 ::ll::TypedStorage<8, 136, ::ItemGroup> mCursorSelectedItemGroup;
353 ::ll::TypedStorage<8, 440, ::PlayerUIContainer> mPlayerUIContainer;
354 ::ll::TypedStorage<8, 48, ::InventoryTransactionManager> mTransactionManager;
355 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::GameMode>> mGameMode;
356 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PlayerRespawnRandomizer>> mSpawnRandomizer;
357 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::SerializedSkin>> mSkin;
358 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ItemStackNetManagerBase>> mItemStackNetManager;
359 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::AnimationComponent>> mUIAnimationComponent;
360 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::AnimationComponent>> mMapAnimationComponent;
361 ::ll::TypedStorage<4, 28, ::Player::PlayerSpawnPoint> mPlayerRespawnPoint;
362 ::ll::TypedStorage<4, 4, float> mServerBuildRatio;
363 ::ll::TypedStorage<1, 1, ::SubClientId> mClientId;
364 ::ll::TypedStorage<1, 1, bool> mInteractDataDirty;
365 ::ll::TypedStorage<1, 1, bool> mShouldClientGenerateChunks;
366 ::ll::TypedStorage<1, 1, bool> mUseMapAnimationComponent;
367 ::ll::TypedStorage<1, 1, bool> mIsDeferredRenderingFirstPersonObjects;
368 ::ll::TypedStorage<1, 1, bool> mDestroyingBlock;
369 ::ll::TypedStorage<1, 1, bool> mPlayerLevelChanged;
370 ::ll::TypedStorage<4, 4, int> mPreviousLevelRequirement;
371 ::ll::TypedStorage<4, 4, int> mLastLevelUpTime;
372 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::AnimationComponent>> mFirstPersonAnimationComponent;
373 ::ll::TypedStorage<8, 24, ::std::vector<::PlayerListener*>> mListeners;
374 ::ll::TypedStorage<4, 12, ::Vec3> mRespawnPositionCandidate;
375 ::ll::TypedStorage<4, 12, ::Vec3> mPreDimensionTransferSpawnPosition;
376 ::ll::TypedStorage<4, 4, int> mEnchantmentSeed;
377 ::ll::TypedStorage<8, 24, ::std::vector<uint>> mOnScreenAnimationTextures;
378 ::ll::TypedStorage<4, 4, int> mOnScreenAnimationTicks;
379 ::ll::TypedStorage<4, 4, uint> mChunkRadius;
380 ::ll::TypedStorage<4, 4, int> mMapIndex;
381 ::ll::TypedStorage<4, 4, float> mElytraVolume;
382 ::ll::TypedStorage<8, 8, uint64> mElytraLoop;
383 ::ll::TypedStorage<8, 64, ::std::unordered_map<::HashedString, int>> mCooldowns;
384 ::ll::TypedStorage<8, 64, ::std::unordered_map<::HashedString, ::HashedString>> mVanillaCooldowns;
385 ::ll::TypedStorage<8, 8, int64> mStartedBlockingTimeStamp;
386 ::ll::TypedStorage<8, 8, int64> mBlockedUsingShieldTimeStamp;
387 ::ll::TypedStorage<8, 8, int64> mBlockedUsingDamagedShieldTimeStamp;
388 ::ll::TypedStorage<8, 32, ::std::string> mName;
389 ::ll::TypedStorage<8, 32, ::std::string> mLastEmotePlayed;
390 ::ll::TypedStorage<8, 8, int64> mEmoteEasterEggEndTime;
391 ::ll::TypedStorage<4, 4, uint> mEmoteMessageCount;
392 ::ll::TypedStorage<8, 32, ::std::string> mDeviceId;
393 ::ll::TypedStorage<1, 1, bool> mFlagClientForBAIReset;
394 ::ll::TypedStorage<1, 1, bool> mSendInventoryOptionsToClient;
395 ::ll::TypedStorage<1, 1, bool> mIsHostingPlayer;
396 ::ll::TypedStorage<1, 1, bool> mPrevBlockedUsingShield;
397 ::ll::TypedStorage<1, 1, bool> mPrevBlockedUsingDamagedShield;
398 ::ll::TypedStorage<1, 1, bool> mUsedPotion;
399 ::ll::TypedStorage<8, 8, ::PlayerDestroyProgressCacheComponent&> mDestroyProgressCache;
425 virtual void destroyRegion();
428 virtual void suspendRegion();
431 virtual void _fireDimensionChanged();
434 virtual bool canChangeDimensionsUsingPortal() const ;
440 virtual
void tickWorld(::
Tick const&);
446 virtual ::
std::vector<::
ChunkPos> const& getTickingOffsets() const;
449 virtual
void normalTick() ;
452 virtual
void moveView();
455 virtual
void moveSpawnView(::
Vec3 const& spawnPosition, ::
DimensionType dimensionType);
458 virtual
void onSynchedDataUpdate(
int dataId) ;
461 virtual
void aiStep() ;
464 virtual
bool isFireImmune() const ;
467 virtual
void checkMovementStats(::
Vec3 const&);
470 virtual ::
HashedString getCurrentStructureFeature() const;
473 virtual
bool isAutoJumpEnabled() const;
476 virtual ::
Vec3 getInterpolatedRidingOffset(
float,
int const) const ;
479 virtual
void passengerTick() ;
485 virtual
void remove() ;
488 virtual
void respawn();
491 virtual
bool shouldDropDeathLoot() const ;
497 virtual
void dropEquipmentOnDeath() ;
500 virtual
void clearVanishEnchantedItemsOnDeath() ;
503 virtual
bool drop(::
ItemStack const& item,
bool const randomly) ;
506 virtual
void resetRot();
509 virtual
void resetUserPos(::ActorResetRule resetRule) ;
512 virtual
bool isInTrialMode();
515 virtual
void setSpeed(
float _speed) ;
518 virtual
int getItemUseDuration() const ;
521 virtual
float getItemUseStartupProgress() const ;
524 virtual
float getItemUseIntervalProgress() const ;
527 virtual
bool isBlocking() const ;
533 virtual
void handleEntityEvent(::ActorEvent
id,
int data) ;
536 virtual ::
std::vector<::
ItemStack const*> getAllHand() const ;
539 virtual ::
std::vector<::
ItemStack const*> getAllEquipment() const ;
545 virtual ::CommandPermissionLevel getCommandPermissionLevel() const ;
548 virtual
bool attack(::
Actor&, ::SharedTypes::Legacy::ActorDamageCause const&) ;
551 virtual ::
ItemStack const& getCarriedItem() const ;
554 virtual
void setCarriedItem(::
ItemStack const& item) ;
557 virtual
void openPortfolio();
560 virtual
void openBook(
int,
bool,
int, ::
BlockActor*);
572 virtual
void openInventory();
575 virtual
void displayChatMessage(
576 ::
std::
string const& author,
577 ::
std::
string const& message,
578 ::
std::optional<::
std::
string> const filteredMessage
583 displayClientMessage(::
std::
string const& message, ::
std::optional<::
std::
string> const filteredMessage);
586 virtual
void displayTextObjectMessage(
588 ::
std::
string const& fromXuid,
589 ::
std::
string const& fromPlatformId
593 virtual
void displayTextObjectWhisperMessage(
595 ::
std::
string const& xuid,
596 ::
std::
string const& platformId
600 virtual
void displayTextObjectWhisperMessage(
601 ::
std::
string const& message,
602 ::
std::
string const& xuid,
603 ::
std::
string const& platformId
607 virtual
void displayWhisperMessage(
608 ::
std::
string const& author,
609 ::
std::
string const& message,
610 ::
std::optional<::
std::
string> const filteredMessage,
611 ::
std::
string const& xuid,
612 ::
std::
string const& platformId
616 virtual
float getShadowRadius() const ;
619 virtual
bool isSleeping() const ;
622 virtual
void setSleeping(
bool val) ;
625 virtual ::BedSleepingResult startSleepInBed(::
BlockPos const& bedBlockPos);
628 virtual
void stopSleepInBed(
bool forcefulWakeUp,
bool updateLevelList);
631 virtual
bool canStartSleepInBed();
634 virtual
void sendInventory(
bool) ;
637 virtual
void openSign(::
BlockPos const&,
bool);
640 virtual
void playEmote(::
std::
string const&,
bool const);
643 virtual
bool isSilentObserver() const ;
646 virtual
void useItem(::
ItemStackBase& item, ::ItemUseMethod itemUseMethod,
bool consumeItem) ;
649 virtual
bool isLoading() const;
652 virtual
bool isPlayerInitialized() const;
655 virtual
void stopLoading();
658 virtual
float getSpeed() const ;
661 virtual
void setPlayerGameType(::GameType);
664 virtual
void initHUDContainerManager();
667 virtual
void _crit(::
Actor& actor);
670 virtual
bool isImmobile() const ;
673 virtual
void sendMotionPacketIfNeeded() ;
679 virtual uint getUserId() const;
682 virtual
void addExperience(
int xp);
685 virtual
void addLevels(
int levels);
688 virtual
void setArmor(::SharedTypes::Legacy::ArmorSlot slot, ::
ItemStack const& item) ;
691 virtual
void setOffhandSlot(::
ItemStack const& item) ;
694 virtual ::
std::unique_ptr<::
Packet> tryCreateAddActorPacket() ;
709 virtual
void deleteContainerManager();
712 virtual ::
ItemStack const& getEquippedTotem() const ;
715 virtual
bool consumeTotem() ;
718 virtual
bool isActorRelevant(::
Actor const&);
721 virtual
float getMapDecorationRotation() const ;
724 virtual
void teleportTo(
726 bool shouldStopRiding,
728 int sourceEntityType,
733 virtual
bool startRiding(::
Actor& vehicle,
bool forceRiding) ;
736 virtual
void startSwimming() ;
739 virtual
void stopSwimming() ;
742 virtual
bool isTeacher() const = 0;
745 virtual
void onSuspension();
748 virtual
void onLinkedSlotsChanged();
751 virtual
bool canBePulledIntoVehicle() const ;
754 virtual
void feed(
int itemId) ;
763 virtual
void sendNetworkPacket(::
Packet& packet) const;
766 virtual
bool canExistWhenDisallowMob() const ;
769 virtual ::mce::Color getNameTagTextColor() const ;
772 virtual
bool canAddPassenger(::
Actor& passenger) const ;
778 virtual
bool isSimulated() const;
781 virtual ::
std::
string getXuid() const;
787 virtual
bool canFreeze() const ;
790 virtual
bool canInteractWithOtherEntitiesInGame() const ;
793 virtual
bool canObstructSpawningAndBlockPlacement() const ;
796 virtual ::
std::optional<::
BlockPos> getLastDeathPos() const ;
802 virtual
bool hasDiedBefore() const ;
805 virtual
void doEnterWaterSplashEffect() ;
808 virtual
void doExitWaterSplashEffect() ;
811 virtual
void requestMissingSubChunk(::
SubChunkPos const&);
814 virtual uchar getMaxChunkBuildRadius() const;
817 virtual
float causeFallDamageToActor(
float distance,
float multiplier, ::
ActorDamageSource source) ;
820 virtual
bool _hurt(::
ActorDamageSource const& source,
float damage,
bool knock,
bool ignite) ;
826 virtual
void addAdditionalSaveData(::
CompoundTag& entityTag) const ;
829 virtual
void onMovePlayerPacketNormal(::
Vec3 const& pos, ::
Vec2 const& rot,
float yHeadRot);
832 virtual
bool _shouldProvideFeedbackOnHandContainerItemSet(::HandSlot handSlot, ::
ItemStack const& item) const
836 virtual
bool _shouldProvideFeedbackOnArmorSet(::SharedTypes::Legacy::ArmorSlot slot, ::
ItemStack const& item) const
849 virtual ::
HashedString const& getActorRendererId() const ;
852 virtual ::Bedrock::NonOwnerPointer<::Editor::IEditorPlayer> getEditorPlayer() const = 0;
855 virtual
void destroyEditorPlayer() = 0;
858 virtual
void _serverInitItemStackIds() ;
870 ::GameType playerGameType,
871 bool isHostingPlayer,
875 ::
std::
string const& playFabId,
876 ::
std::
string const& deviceId,
877 ::PlayerAuthenticationType authType,
880 ::
std::
string const& platformId,
881 ::
std::
string const& platformOnlineId
884 MCAPI
void _addLevels(
int levels);
886 MCAPI
bool _attack(::
Actor& actor, ::SharedTypes::Legacy::ActorDamageCause const& cause,
bool doPredictiveSound);
890 MCAPI
bool _checkAndFixSpawnPosition(
891 ::
Vec3& spawnPosition,
893 bool adjustYToSolidGround,
895 bool positionFromSave
898 MCAPI
void _chooseSpawnArea();
900 MCAPI
bool _chooseSpawnPositionWithinArea();
902 MCAPI
void _ensureSafeSpawnPosition(::
Vec3& pos);
904 MCAPI
bool _findFallbackSpawnPosition(
905 ::
Vec3& spawnPosition,
908 bool checkStoredFallback
911 MCAPI ::
std::optional<::
BlockPos> _findValidPosWithVerticalSpace(::
BlockPos spawnPosition);
913 MCAPI
void _handleCarriedItemInteractText();
915 MCAPI
bool _isChunkSourceLoaded(::
Vec3 const& spawnPosition, ::
BlockSource const& region) const;
917 MCAPI
void _loadInventoryOptions(::
CompoundTag const& tag);
919 MCAPI
void _preSpawnBuildSpawnDataCache();
921 MCAPI
void _registerElytraLoopSound();
923 MCAPI
void _registerPlayerAttributes();
925 MCAPI
void _resetClientAnimations();
927 MCAPI
void _saveInventoryOptions(::
CompoundTag& tag) const;
929 MCAPI
void _sendShieldUpdatePacket(
933 ::ContainerID container,
937 MCAPI
void _setPlayerGameType(::GameType gameType);
939 MCAPI
bool _shouldCrit(::
Actor const& target) const;
941 MCAPI
void _updateInteraction();
943 MCAPI
bool _validateSpawnPositionAvailability(
946 ::
Vec3 const* const AABBoffset
949 MCAPI
bool canBeSeenOnMap() const;
951 MCAPI
bool canJump();
953 MCAPI
bool canOpenContainerScreen();
955 MCAPI
bool canSleep() const;
957 MCAPI
bool canStackInOffhand(::
ItemStack const& item) const;
959 MCAPI
bool canUseAbility(::AbilitiesIndex abilityIndex) const;
961 MCAPI
bool canUseOperatorBlocks() const;
963 MCAPI
void causeFoodExhaustion(
float exhaustionAmount);
965 MCAPI
bool checkBed(::
BlockSource* spawnBlockSource, ::
Vec3 const* const positionToCheck);
967 MCAPI
bool checkNeedAutoJump(
float inputMoveX,
float inputMoveZ);
969 MCAPI
bool checkSpawnBlock(::
BlockSource const& region) const;
971 MCAPI
void completeUsingItem();
973 MCAPI
void eat(::
ItemStack const& instance);
975 MCAPI
void eat(
int hungerValue,
float saturationModifier);
977 MCAPI
bool equippedArmorItemCanBeMoved(::
ItemStack const& item) const;
985 MCAPI ::
Agent* getAgent() const;
987 MCAPI ::
ItemStack const& getCurrentActiveShield() const;
989 MCAPI
float getDestroyProgress(::
Block const& block);
993 MCAPI ::
BlockPos const& getExpectedSpawnPosition() const;
995 MCAPI ::
std::
string getInteractText() const;
997 MCAPI
int getItemCooldownLeft(::
HashedString const& type) const;
999 MCAPI ::
std::
string getItemInteractText(::
Item const& item) const;
1001 MCAPI ::
AABB getPickupArea() const;
1003 MCAPI ::GameType getPlayerGameType() const;
1005 MCFOLD ::
ItemStack const& getSelectedItem() const;
1007 MCAPI
float getSleepRotation() const;
1009 MCAPI
int getXpNeededForNextLevel() const;
1011 MCFOLD
bool hasOwnedChunkSource() const;
1015 MCAPI
bool hasRespawnPosition() const;
1017 MCAPI
bool interact(::
Actor& actor, ::
Vec3 const& location);
1019 MCAPI
void inventoryChanged(
1029 MCAPI
bool isFlying() const;
1031 MCAPI
bool isForcedRespawn() const;
1033 MCAPI
bool isHiddenFrom(::
Mob& target) const;
1035 MCAPI
bool isInRaid() const;
1037 MCAPI
bool isItemOnCooldown(::
HashedString const& type) const;
1039 MCAPI
void loadLastDeathLocation(::
CompoundTag const& tag);
1041 MCAPI
void playFallOrLandSound(
int expectedDamage, ::
Block const& onBlock, ::
Block const& blockAbove);
1043 MCAPI
void playPredictiveSynchronizedSound(
1044 ::SharedTypes::Legacy::LevelSoundEvent type,
1050 MCAPI
void recheckSpawnPosition();
1052 MCAPI
void releaseUsingItem();
1054 MCAPI
void resetPlayerLevel();
1056 MCAPI
void saveLastDeathLocation(::
CompoundTag& tag) const;
1060 MCAPI
void setBedRespawnPosition(::
BlockPos const& bedPosition);
1064 MCAPI
void setHasDied(
bool hasDied);
1066 MCAPI
void setLastDeathDimension(::
DimensionType dimension);
1068 MCAPI
void setLastDeathPos(::
BlockPos pos);
1070 MCAPI
void setName(::
std::
string const& newName);
1072 MCAPI
void setPlatformOnlineId(::
std::
string const& platformOnlineId);
1074 MCAPI
void setPlayerUIItem(::PlayerUISlot slot, ::
ItemStack const& item,
bool forceBalance);
1078 MCAPI
void setRespawnPositionCandidate();
1080 MCAPI
void setSelectedItem(::
ItemStack const& item);
1082 MCAPI ::
ItemStack const& setSelectedSlot(
int slot);
1084 MCAPI
bool setSpawnBlockRespawnPosition(::
BlockPos const& spawnBlockPosition, ::
DimensionType dimension);
1086 MCAPI
void startCooldown(::
Item const* item,
bool updateClient);
1088 MCAPI
void startCooldown(::
HashedString const& type,
int tickDuration,
bool updateClient);
1090 MCAPI
void startGliding();
1095 MCAPI
void startUsingItem(::
ItemStack const& instance,
int duration);
1097 MCAPI
void stopGliding();
1101 MCAPI
void stopUsingItem();
1103 MCAPI
bool take(::
Actor& actor,
int,
int favoredSlot);
1105 MCAPI
void tickArmor();
1107 MCAPI
bool tryStartGliding();
1111 MCAPI
void updateInventoryTransactions();
1113 MCAPI
void updateSkin(::
SerializedSkin const& skin,
int clientSubID);
1115 MCAPI
void updateTrackedBosses();
1117 MCAPI
void useSelectedItem(::ItemUseMethod itemUseMethod,
bool consumeItem);
1126 ::
Vec3 const& spawnPosition,
1129 bool adjustYToSolidGround,
1132 bool positionFromSave,
1133 bool spawningAtForcedSpawn,
1134 short dimensionHeight
1137 MCAPI static
bool checkNeedAutoJump(
1141 float movementSpeed,
1148 MCAPI static ::
std::optional<::SharedTypes::Legacy::LevelSoundEvent>
1149 getCustomHurtSound(::
Mob& mob, ::SharedTypes::Legacy::ActorDamageCause cause);
1151 MCAPI static
bool isDangerousVolumeForSpawn(::
BlockSource& region, ::
AABB const& centeredAABB);
1154 isDangerousVolume_DEPRECATED(::
BlockSource& region, ::
AABB const& centeredAABB,
bool checkForLava);
1161 updatePlayerGameTypeEntityData(::
EntityContext& entity, ::GameType gameType, ::GameType defaultGameType);
1167 MCAPI static
float const& DEFAULT_BB_HEIGHT();
1169 MCAPI static
float const& DEFAULT_BB_WIDTH();
1171 MCAPI static
float const& DEFAULT_PLAYER_EYE_OFFSET();
1173 MCAPI static
float const& DEFAULT_PLAYER_HEIGHT_OFFSET();
1175 MCAPI static
float const& DISTANCE_TO_TRANSFORM_EVENT();
1177 MCAPI static ::
Attribute const& EXHAUSTION();
1179 MCAPI static ::
Attribute const& EXPERIENCE();
1181 MCAPI static
int const& GLIDE_STOP_DELAY();
1183 MCAPI static ::
Attribute const& HUNGER();
1185 MCAPI static ::
Attribute const& LEVEL();
1187 MCAPI static
float const& PLAYER_SLEEPING_HEIGHT();
1189 MCAPI static ::
Attribute const& SATURATION();
1198 ::GameType playerGameType,
1199 bool isHostingPlayer,
1201 ::SubClientId subid,
1203 ::
std::
string const& playFabId,
1204 ::
std::
string const& deviceId,
1205 ::PlayerAuthenticationType authType,
1208 ::
std::
string const& platformId,
1209 ::
std::
string const& platformOnlineId
1222 MCAPI
void $initializeComponents(::ActorInitializationMethod method, ::
VariantParameterList const& params);
1224 MCAPI
void $reloadHardcoded(::ActorInitializationMethod method, ::
VariantParameterList const& params);
1226 MCAPI
void $prepareRegion(::
ChunkSource& mainChunkSource);
1228 MCAPI
void $destroyRegion();
1230 MCAPI
void $suspendRegion();
1232 MCAPI
void $_fireDimensionChanged();
1234 MCAPI
bool $canChangeDimensionsUsingPortal() const;
1238 MCAPI
void $tickWorld(::
Tick const&);
1240 MCAPI ::
std::vector<::
ChunkPos> const& $getTickingOffsets() const;
1242 MCAPI
void $normalTick();
1244 MCAPI
void $moveView();
1246 MCAPI
void $moveSpawnView(::
Vec3 const& spawnPosition, ::
DimensionType dimensionType);
1248 MCFOLD
void $onSynchedDataUpdate(
int dataId);
1250 MCAPI
void $aiStep();
1252 MCAPI
bool $isFireImmune() const;
1254 MCFOLD
void $checkMovementStats(::
Vec3 const&);
1256 MCFOLD ::
HashedString $getCurrentStructureFeature() const;
1258 MCFOLD
bool $isAutoJumpEnabled() const;
1260 MCAPI ::
Vec3 $getInterpolatedRidingOffset(
float,
int const) const;
1262 MCAPI
void $passengerTick();
1266 MCAPI
void $remove();
1268 MCAPI
void $respawn();
1270 MCAPI
bool $shouldDropDeathLoot() const;
1274 MCAPI
void $dropEquipmentOnDeath();
1276 MCFOLD
void $clearVanishEnchantedItemsOnDeath();
1278 MCAPI
bool $drop(::
ItemStack const& item,
bool const randomly);
1280 MCFOLD
void $resetRot();
1282 MCAPI
void $resetUserPos(::ActorResetRule resetRule);
1284 MCFOLD
bool $isInTrialMode();
1286 MCAPI
void $setSpeed(
float _speed);
1288 MCAPI
int $getItemUseDuration() const;
1290 MCAPI
float $getItemUseStartupProgress() const;
1292 MCAPI
float $getItemUseIntervalProgress() const;
1294 MCAPI
bool $isBlocking() const;
1298 MCAPI
void $handleEntityEvent(::ActorEvent
id,
int data);
1300 MCAPI ::
std::vector<::
ItemStack const*> $getAllHand() const;
1302 MCAPI ::
std::vector<::
ItemStack const*> $getAllEquipment() const;
1306 MCFOLD ::
ItemStack const& $getCarriedItem() const;
1308 MCAPI
void $setCarriedItem(::
ItemStack const& item);
1310 MCFOLD
void $openPortfolio();
1312 MCFOLD
void $openBook(
int,
bool,
int, ::
BlockActor*);
1320 MCFOLD
void $openInventory();
1322 MCFOLD
void $displayChatMessage(
1323 ::
std::
string const& author,
1324 ::
std::
string const& message,
1325 ::
std::optional<::
std::
string> const filteredMessage
1329 $displayClientMessage(::
std::
string const& message, ::
std::optional<::
std::
string> const filteredMessage);
1331 MCFOLD
void $displayTextObjectMessage(
1333 ::
std::
string const& fromXuid,
1334 ::
std::
string const& fromPlatformId
1337 MCFOLD
void $displayTextObjectWhisperMessage(
1339 ::
std::
string const& xuid,
1340 ::
std::
string const& platformId
1343 MCFOLD
void $displayTextObjectWhisperMessage(
1344 ::
std::
string const& message,
1345 ::
std::
string const& xuid,
1346 ::
std::
string const& platformId
1349 MCFOLD
void $displayWhisperMessage(
1350 ::
std::
string const& author,
1351 ::
std::
string const& message,
1352 ::
std::optional<::
std::
string> const filteredMessage,
1353 ::
std::
string const& xuid,
1354 ::
std::
string const& platformId
1357 MCAPI
float $getShadowRadius() const;
1359 MCAPI
bool $isSleeping() const;
1361 MCAPI
void $setSleeping(
bool val);
1363 MCAPI ::BedSleepingResult $startSleepInBed(::
BlockPos const& bedBlockPos);
1365 MCAPI
void $stopSleepInBed(
bool forcefulWakeUp,
bool updateLevelList);
1367 MCAPI
bool $canStartSleepInBed();
1369 MCFOLD
void $sendInventory(
bool);
1371 MCFOLD
void $openSign(::
BlockPos const&,
bool);
1373 MCFOLD
void $playEmote(::
std::
string const&,
bool const);
1375 MCAPI
bool $isSilentObserver() const;
1377 MCAPI
void $useItem(::
ItemStackBase& item, ::ItemUseMethod itemUseMethod,
bool consumeItem);
1379 MCFOLD
bool $isLoading() const;
1381 MCFOLD
bool $isPlayerInitialized() const;
1383 MCFOLD
void $stopLoading();
1385 MCAPI
float $getSpeed() const;
1387 MCAPI
void $initHUDContainerManager();
1389 MCAPI
void $_crit(::
Actor& actor);
1391 MCAPI
bool $isImmobile() const;
1393 MCFOLD
void $sendMotionPacketIfNeeded();
1397 MCFOLD uint $getUserId() const;
1399 MCAPI
void $addExperience(
int xp);
1401 MCAPI
void $addLevels(
int levels);
1403 MCAPI
void $setArmor(::SharedTypes::Legacy::ArmorSlot slot, ::
ItemStack const& item);
1405 MCAPI
void $setOffhandSlot(::
ItemStack const& item);
1407 MCAPI ::
std::unique_ptr<::
Packet> $tryCreateAddActorPacket();
1411 MCAPI
void $deleteContainerManager();
1413 MCAPI ::
ItemStack const& $getEquippedTotem() const;
1415 MCAPI
bool $consumeTotem();
1417 MCFOLD
bool $isActorRelevant(::
Actor const&);
1419 MCAPI
float $getMapDecorationRotation() const;
1422 $teleportTo(::
Vec3 const& pos,
bool shouldStopRiding,
int cause,
int sourceEntityType,
bool keepVelocity);
1424 MCAPI
bool $startRiding(::
Actor& vehicle,
bool forceRiding);
1426 MCAPI
void $startSwimming();
1428 MCAPI
void $stopSwimming();
1430 MCFOLD
void $onSuspension();
1432 MCFOLD
void $onLinkedSlotsChanged();
1434 MCFOLD
bool $canBePulledIntoVehicle() const;
1436 MCAPI
void $feed(
int itemId);
1438 MCFOLD
void $sendNetworkPacket(::
Packet& packet) const;
1440 MCFOLD
bool $canExistWhenDisallowMob() const;
1442 MCAPI ::mce::Color $getNameTagTextColor() const;
1444 MCAPI
bool $canAddPassenger(::
Actor& passenger) const;
1446 MCFOLD
bool $isSimulated() const;
1448 MCAPI ::
std::
string $getXuid() const;
1452 MCAPI
bool $canFreeze() const;
1454 MCAPI
bool $canInteractWithOtherEntitiesInGame() const;
1456 MCAPI
bool $canObstructSpawningAndBlockPlacement() const;
1458 MCAPI ::
std::optional<::
BlockPos> $getLastDeathPos() const;
1462 MCAPI
bool $hasDiedBefore() const;
1464 MCAPI
void $doEnterWaterSplashEffect();
1466 MCAPI
void $doExitWaterSplashEffect();
1468 MCFOLD
void $requestMissingSubChunk(::
SubChunkPos const&);
1470 MCFOLD uchar $getMaxChunkBuildRadius() const;
1472 MCAPI
float $causeFallDamageToActor(
float distance,
float multiplier, ::
ActorDamageSource source);
1474 MCAPI
bool $_hurt(::
ActorDamageSource const& source,
float damage,
bool knock,
bool ignite);
1478 MCAPI
void $addAdditionalSaveData(::
CompoundTag& entityTag) const;
1480 MCAPI
void $onMovePlayerPacketNormal(::
Vec3 const& pos, ::
Vec2 const& rot,
float yHeadRot);
1482 MCAPI
bool $_shouldProvideFeedbackOnHandContainerItemSet(::HandSlot handSlot, ::
ItemStack const& item) const;
1484 MCAPI
bool $_shouldProvideFeedbackOnArmorSet(::SharedTypes::Legacy::ArmorSlot slot, ::
ItemStack const& item) const;
1492 MCAPI ::
HashedString const& $getActorRendererId() const;
1494 MCFOLD
void $_serverInitItemStackIds();