137class Player :
public ::Mob {
149 enum class SpawnPositionSource :
int {
156 enum class SpawnPositionState :
int {
157 InitializeSpawnPositionRandomizer = 0,
158 WaitForClientAck = 1,
159 DetermineDimension = 2,
161 WaitForDimension = 4,
163 CheckLoadedChunk = 6,
164 ChooseSpawnPosition = 7,
171 enum class Sound :
int {
180 ::ll::TypedStorage<4, 4, ::Player::AttackParameters::Sound> mSound;
181 ::ll::TypedStorage<1, 1, bool> mTriggerCooldown;
182 ::ll::TypedStorage<1, 1, bool> mCanCrit;
190 ::ll::TypedStorage<4, 4, ::DimensionType> mRespawnDimensionId;
191 ::ll::TypedStorage<4, 12, ::Vec3> mActualRespawnPosition;
192 ::ll::TypedStorage<4, 12, ::BlockPos> mRequestedRespawnPosition;
193 ::ll::TypedStorage<1, 1, bool> mHasRespawnPosition;
194 ::ll::TypedStorage<4, 12, ::BlockPos> mSharedSpawnPosition;
195 ::ll::TypedStorage<1, 1, bool> mRespawnReady;
196 ::ll::TypedStorage<4, 12, ::Vec3> mPlayerPos;
197 ::ll::TypedStorage<1, 1, bool> mIsForcedRespawn;
198 ::ll::TypedStorage<1, 1, bool> mIsAdventure;
199 ::ll::TypedStorage<1, 1, bool> mIsFlyingOrNotOverworld;
200 ::ll::TypedStorage<1, 1, bool> mPositionLoadedFromSave;
208 ::ll::TypedStorage<4, 12, ::Vec3> mPosition;
209 ::ll::TypedStorage<4, 4, ::PlayerSpawnFallbackType> mSpawnFallbackType;
217 ::ll::TypedStorage<4, 12, ::Vec3> mPosition;
218 ::ll::TypedStorage<1, 1, bool> mIsAboveLeaves;
226 ::ll::TypedStorage<4, 12, ::BlockPos> mSpawnBlockPos;
227 ::ll::TypedStorage<4, 12, ::BlockPos> mPlayerPosition;
228 ::ll::TypedStorage<4, 4, ::DimensionType> mDimension;
232 using PlayerFlagIDType = schar;
234 using PlayerListenerList = ::std::vector<::PlayerListener*>;
245 LLNDAPI SubClientId
const& getClientSubId()
const;
247 LLNDAPI
int getSelectedItemSlot()
const;
275 LLNDAPI std::optional<NetworkPeer::NetworkStatus> getNetworkStatus()
const;
286 LLAPI
void setAbility(::AbilitiesIndex index,
bool value);
313 LLNDAPI
static Player* tryGetFromEntity(
::EntityContext& entity,
bool includeRemoved);
318 ::ll::TypedStorage<8, 24, ::std::vector<ushort>> mFroglights;
319 ::ll::TypedStorage<4, 4, float const> mSneakHeight;
320 ::ll::TypedStorage<4, 4, float const> mSneakOffset;
321 ::ll::TypedStorage<4, 4, int> mScore;
322 ::ll::TypedStorage<4, 4, ::BuildPlatform> mBuildPlatform;
323 ::ll::TypedStorage<8, 32, ::std::string> mUniqueName;
324 ::ll::TypedStorage<8, 32, ::std::string> mServerId;
325 ::ll::TypedStorage<8, 32, ::std::string> mSelfSignedId;
326 ::ll::TypedStorage<8, 32, ::std::string> mPlatformOfflineId;
327 ::ll::TypedStorage<8, 8, uint64> mClientRandomId;
328 ::ll::TypedStorage<8, 32, ::std::string> mPlatformId;
329 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPendingVehicleID;
330 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPendingLeftShoulderPassengerID;
331 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPendingRightShoulderPassengerID;
332 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mInteractTarget;
333 ::ll::TypedStorage<4, 12, ::Vec3> mInteractTargetPos;
334 ::ll::TypedStorage<1, 1, bool> mHasFakeInventory;
335 ::ll::TypedStorage<1, 1, bool> mIsRegionSuspended;
336 ::ll::TypedStorage<1, 1, bool> mUpdateMobs;
337 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ChunkViewSource>> mChunkSource;
338 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ChunkViewSource>> mSpawnChunkSource;
339 ::ll::TypedStorage<4, 12, ::Vec3> mCapePosO;
340 ::ll::TypedStorage<4, 12, ::Vec3> mCapePos;
341 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ContainerManagerModel>> mContainerManager;
348 mContainerManagerSubscribers;
349 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PlayerInventory>> mInventory;
350 ::ll::TypedStorage<4, 20, ::InventoryOptions> mInventoryOptions;
351 ::ll::TypedStorage<4, 12, ::FurnaceOptions> mFurnaceOptions;
352 ::ll::TypedStorage<4, 12, ::FurnaceOptions> mBlastFurnaceOptions;
353 ::ll::TypedStorage<4, 12, ::FurnaceOptions> mSmokerOptions;
354 ::ll::TypedStorage<4, 4, float> mDistanceSinceTransformEvent;
355 ::ll::TypedStorage<8, 24, ::std::vector<::ItemInstance>> mCreativeItemList;
356 ::ll::TypedStorage<8, 32, ::std::string> mPlatformOnlineId;
357 ::ll::TypedStorage<4, 4, ::Player::SpawnPositionState> mSpawnPositionState;
358 ::ll::TypedStorage<4, 4, ::Player::SpawnPositionSource> mSpawnPositionSource;
359 ::ll::TypedStorage<4, 12, ::Vec3> mSpawnPositioningTestPosition;
360 ::ll::TypedStorage<4, 4, uint> mRespawnChunkBuilderPolicyHandle;
361 ::ll::TypedStorage<4, 64, ::Player::CachedSpawnData> mCachedSpawnData;
362 ::ll::TypedStorage<8, 16, ::OwnerPtr<::BlockSource>> mSpawnBlockSource;
363 ::ll::TypedStorage<8, 56, ::Stopwatch> mRespawnStopwatch_Searching;
364 ::ll::TypedStorage<4, 12, ::Vec3> mRespawnOriginalPosition;
365 ::ll::TypedStorage<4, 4, ::DimensionType> mRespawnOriginalDimension;
366 ::ll::TypedStorage<8, 32, ::std::string> mRespawnMessage;
367 ::ll::TypedStorage<1, 1, bool> mRespawnReady;
368 ::ll::TypedStorage<1, 1, bool> mIsInitialSpawnDone;
369 ::ll::TypedStorage<1, 1, bool> mRespawningFromTheEnd;
370 ::ll::TypedStorage<1, 1, bool> mPositionLoadedFromSave;
371 ::ll::TypedStorage<1, 1, bool> mBlockRespawnUntilClientMessage;
372 ::ll::TypedStorage<1, 1, bool> mHasSeenCredits;
373 ::ll::TypedStorage<4, 8, ::std::optional<::PlayerSpawnFallbackType>> mSpawnFallbackType;
374 ::ll::TypedStorage<4, 16, ::std::optional<::Vec3>> mSpawnFallbackPosition;
375 ::ll::TypedStorage<8, 168, ::PlayerItemInUse> mItemInUse;
376 ::ll::TypedStorage<4, 4, ::ActorType> mLastHurtBy;
377 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPreviousInteractEntity;
378 ::ll::TypedStorage<4, 4, int> mPreviousCarriedItem;
379 ::ll::TypedStorage<4, 4, int> mEmoteTicks;
380 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::NetworkChunkPublisher>> mChunkPublisherView;
381 ::ll::TypedStorage<8, 8, ::PacketSender&> mPacketSender;
382 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::HudContainerManagerModel>> mHudContainerManagerModel;
383 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::EnderChestContainer>> mEnderChestInventory;
384 ::ll::TypedStorage<8, 24, ::std::vector<::ActorUniqueID>> mTrackedBossIDs;
385 ::ll::TypedStorage<8, 136, ::ItemGroup> mCursorSelectedItemGroup;
386 ::ll::TypedStorage<8, 440, ::PlayerUIContainer> mPlayerUIContainer;
387 ::ll::TypedStorage<8, 48, ::InventoryTransactionManager> mTransactionManager;
388 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::GameMode>> mGameMode;
389 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PlayerRespawnRandomizer>> mSpawnRandomizer;
390 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::SerializedSkinRef>> mSkin;
391 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ItemStackNetManagerBase>> mItemStackNetManager;
392 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::AnimationComponent>> mUIAnimationComponent;
393 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::AnimationComponent>> mMapAnimationComponent;
394 ::ll::TypedStorage<4, 28, ::Player::PlayerSpawnPoint> mPlayerRespawnPoint;
395 ::ll::TypedStorage<4, 4, float> mServerBuildRatio;
396 ::ll::TypedStorage<1, 1, ::SubClientId> mClientId;
397 ::ll::TypedStorage<1, 1, bool> mInteractDataDirty;
398 ::ll::TypedStorage<1, 1, bool> mShouldClientGenerateChunks;
399 ::ll::TypedStorage<8, 24, ::std::vector<::BiomeIdType>> mOceanBiomes;
400 ::ll::TypedStorage<1, 1, bool> mUseMapAnimationComponent;
401 ::ll::TypedStorage<1, 1, bool> mIsDeferredRenderingFirstPersonObjects;
402 ::ll::TypedStorage<1, 1, bool> mDestroyingBlock;
403 ::ll::TypedStorage<1, 1, bool> mPlayerLevelChanged;
404 ::ll::TypedStorage<4, 4, int> mPreviousLevelRequirement;
405 ::ll::TypedStorage<4, 4, int> mLastLevelUpTime;
406 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::AnimationComponent>> mFirstPersonAnimationComponent;
407 ::ll::TypedStorage<8, 24, ::std::vector<::PlayerListener*>> mListeners;
408 ::ll::TypedStorage<4, 12, ::Vec3> mRespawnPositionCandidate;
409 ::ll::TypedStorage<4, 12, ::Vec3> mPreDimensionTransferSpawnPosition;
410 ::ll::TypedStorage<4, 4, int> mEnchantmentSeed;
411 ::ll::TypedStorage<8, 24, ::std::vector<uint>> mOnScreenAnimationTextures;
412 ::ll::TypedStorage<4, 4, int> mOnScreenAnimationTicks;
413 ::ll::TypedStorage<4, 4, uint> mChunkRadius;
414 ::ll::TypedStorage<4, 4, int> mMapIndex;
415 ::ll::TypedStorage<4, 4, float> mElytraVolume;
416 ::ll::TypedStorage<8, 8, uint64> mElytraLoop;
417 ::ll::TypedStorage<8, 8, int64> mStartedBlockingTimeStamp;
418 ::ll::TypedStorage<8, 8, int64> mBlockedUsingShieldTimeStamp;
419 ::ll::TypedStorage<8, 8, int64> mBlockedUsingDamagedShieldTimeStamp;
420 ::ll::TypedStorage<8, 32, ::std::string> mName;
421 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mChatNamePrefix;
422 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mChatNameSuffix;
423 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mChatMessagePrefix;
424 ::ll::TypedStorage<8, 32, ::std::string> mLastEmotePlayed;
425 ::ll::TypedStorage<8, 8, int64> mEmoteEasterEggEndTime;
426 ::ll::TypedStorage<4, 4, uint> mEmoteMessageCount;
427 ::ll::TypedStorage<8, 32, ::std::string> mDeviceId;
428 ::ll::TypedStorage<1, 1, bool> mFlagClientForBAIReset;
429 ::ll::TypedStorage<1, 1, bool> mSendInventoryOptionsToClient;
430 ::ll::TypedStorage<1, 1, bool> mIsHostingPlayer;
431 ::ll::TypedStorage<1, 1, bool> mPrevBlockedUsingShield;
432 ::ll::TypedStorage<1, 1, bool> mPrevBlockedUsingDamagedShield;
433 ::ll::TypedStorage<1, 1, bool> mUsedPotion;
434 ::ll::TypedStorage<8, 8, ::PlayerDestroyProgressCacheComponent&> mDestroyProgressCache;
439 Player& operator=(Player
const&);
440 Player(Player
const&);
455 virtual void destroyRegion();
457 virtual void suspendRegion();
459 virtual void _fireDimensionChanged();
461 virtual bool canChangeDimensionsUsingPortal() const ;
463 virtual
void changeDimensionWithCredits(::
DimensionType dimension);
465 virtual
void tickWorld(::
Tick const& currentTick);
469 virtual ::
std::vector<::
ChunkPos> const& getTickingOffsets() const;
471 virtual
void normalTick() ;
473 virtual
void moveView();
475 virtual
void moveSpawnView(::
Vec3 const& spawnPosition, ::
DimensionType dimensionType);
477 virtual
void onSynchedDataUpdate(
int dataId) ;
479 virtual
void aiStep() ;
481 virtual
bool isFireImmune() const ;
483 virtual
void checkMovementStats(::
Vec3 const& d);
485 virtual ::
HashedString getCurrentStructureFeature() const;
487 virtual
bool isAutoJumpEnabled() const;
489 virtual ::
Vec3 getInterpolatedRidingOffset(
float,
int const) const ;
491 virtual
void passengerTick() ;
495 virtual
void remove() ;
497 virtual
void respawn();
499 virtual
bool shouldDropDeathLoot() const ;
503 virtual
void dropEquipmentOnDeath() ;
505 virtual
void clearVanishEnchantedItemsOnDeath() ;
507 virtual
bool drop(::
ItemStack const& item,
bool const randomly) ;
509 virtual
void resetRot();
511 virtual
void resetUserPos(::ActorResetRule resetRule) ;
513 virtual
bool isInTrialMode();
515 virtual
void setSpeed(
float _speed) ;
517 virtual
int getItemUseDuration() const ;
519 virtual
float getItemUseStartupProgress() const ;
521 virtual
float getItemUseIntervalProgress() const ;
523 virtual
bool isBlocking() const ;
527 virtual
void handleEntityEvent(::ActorEvent
id,
int data) ;
529 virtual ::
std::vector<::
ItemStack const*> getAllHandEquipment() const ;
531 virtual ::
std::vector<::
ItemStack const*> getAllEquipment() const ;
535 virtual ::CommandPermissionLevel getCommandPermissionLevel() const ;
537 virtual ::
ActorHurtResult attack(::Actor& actor, ::SharedTypes::Legacy::ActorDamageCause const& cause) ;
539 virtual ::
ItemStack const& getCarriedItem() const ;
541 virtual
void setCarriedItem(::
ItemStack const& item) ;
543 virtual
void damageCarriedItemOnAttack(::Actor& target,
float damageDealtToTarget) ;
545 virtual
void openPortfolio();
547 virtual
void openBook(
int bookSlot,
bool editable,
int page, ::
BlockActor* lectern);
549 virtual
void openTrading(::
ActorUniqueID const& uniqueID,
bool useNewScreen);
554 virtual void openNpcInteractScreen(::std::shared_ptr<::INpcDialogueData> npc);
556 virtual void openNpcInteractScreen(::std::shared_ptr<::INpcDialogueData> data);
559 virtual void openInventory();
561 virtual void displayChatMessage(
562 ::std::string
const& author,
563 ::std::string
const& message,
564 ::std::optional<::std::string>
const filteredMessage
568 displayClientMessage(::std::string
const& message, ::std::optional<::std::string>
const filteredMessage);
570 virtual void displayTextObjectMessage(
572 ::std::string
const& fromXuid,
573 ::std::string
const& fromPlatformId
576 virtual void displayTextObjectWhisperMessage(
578 ::std::string
const& xuid,
579 ::std::string
const& platformId
582 virtual void displayTextObjectWhisperMessage(
583 ::std::string
const& message,
584 ::std::string
const& xuid,
585 ::std::string
const& platformId
588 virtual void displayWhisperMessage(
589 ::std::string
const& author,
590 ::std::string
const& message,
591 ::std::optional<::std::string>
const filteredMessage,
592 ::std::string
const& xuid,
593 ::std::string
const& platformId
596 virtual float getShadowRadius() const ;
598 virtual
bool isSleeping() const ;
600 virtual
void setSleeping(
bool val) ;
602 virtual ::BedSleepingResult startSleepInBed(::
BlockPos const& bedBlockPos);
604 virtual
void stopSleepInBed(
bool forcefulWakeUp,
bool updateLevelList);
606 virtual
bool canStartSleepInBed();
608 virtual
void sendInventory(
bool shouldSelectSlot) ;
610 virtual
void openSign(::
BlockPos const& position,
bool isFrontSide);
612 virtual
void playEmote(::
std::
string const& pieceId,
bool const playChatMessage);
614 virtual
bool isSilentObserver() const ;
616 virtual
void useItem(::
ItemStackBase& instance, ::ItemUseMethod itemUseMethod,
bool consumeItem) ;
618 virtual
bool isLoading() const;
620 virtual
bool isPlayerInitialized() const;
622 virtual
void stopLoading();
624 virtual
float getSpeed() const ;
626 virtual
void setPlayerGameType(::GameType gameType);
628 virtual
void initHUDContainerManager();
630 virtual
void emitCriticalHitParticles(::Actor const& target,
int particleCount);
632 virtual
bool isImmobile() const ;
634 virtual
void sendMotionPacketIfNeeded() ;
638 virtual uint getUserId() const;
640 virtual
void addExperience(
int xp);
642 virtual
void addLevels(
int levels);
644 virtual
void setArmor(::SharedTypes::Legacy::ArmorSlot slot, ::
ItemStack const& item) ;
646 virtual
void setOffhandSlot(::
ItemStack const& item) ;
648 virtual ::
std::unique_ptr<::
Packet> tryCreateAddActorPacket() ;
658 virtual
void deleteContainerManager();
660 virtual ::
ItemStack const& getEquippedTotem() const ;
662 virtual
bool consumeTotem() ;
664 virtual
bool isActorRelevant(::Actor const& actor);
666 virtual
float getMapDecorationRotation() const ;
668 virtual
void teleportTo(
670 bool shouldStopRiding,
672 int sourceEntityType,
676 virtual
bool startRiding(::Actor& vehicle,
bool forceRiding) ;
678 virtual
void startSwimming() ;
680 virtual
void stopSwimming() ;
682 virtual
bool isTeacher() const = 0;
684 virtual
void onSuspension();
686 virtual
void onLinkedSlotsChanged();
688 virtual
bool canBePulledIntoVehicle() const ;
690 virtual
void feed(
int itemId) ;
697 virtual
void sendNetworkPacket(::
Packet& packet) const;
699 virtual
bool canExistWhenDisallowMob() const ;
701 virtual ::mce::Color getNameTagTextColor() const ;
703 virtual
bool canAddPassenger(::Actor& passenger) const ;
707 virtual
bool isSimulated() const;
709 virtual ::
std::
string getXuid() const;
713 virtual
bool canFreeze() const ;
715 virtual
bool canInteractWithOtherEntitiesInGame() const ;
717 virtual
bool canObstructSpawningAndBlockPlacement() const ;
719 virtual ::
std::optional<::
BlockPos> getLastDeathPos() const ;
723 virtual
bool hasDiedBefore() const ;
725 virtual
void doEnterWaterSplashEffect() ;
727 virtual
void doExitWaterSplashEffect() ;
731 virtual
void requestMissingSubChunk(::
SubChunkPos const& scp);
733 virtual uchar getMaxChunkBuildRadius() const;
735 virtual
float causeFallDamageToActor(
float distance,
float multiplier, ::
ActorDamageSource source) ;
737 virtual
void setBehaviorCommandStatus(::
std::
string const& name, ::BehaviorStatus status);
740 virtual void setRemotePlayerTicked(
bool);
742 virtual void setRemotePlayerTicked(
bool ticked);
745 virtual ::std::unique_ptr<::ISparseContainerSetListener> createSparseContainerListener();
747 virtual ::ActorHurtResult
752 virtual void addAdditionalSaveData(
::CompoundTag& entityTag)
const ;
754 virtual void onMovePlayerPacketNormal(
::Vec3 const& pos,
::Vec2 const& rot,
float yHeadRot);
756 virtual bool _shouldProvideFeedbackOnHandContainerItemSet(::HandSlot handSlot,
::ItemStack const& item)
const
759 virtual bool _shouldProvideFeedbackOnArmorSet(::SharedTypes::Legacy::ArmorSlot slot,
::ItemStack const& item)
const
762 virtual ::std::shared_ptr<::ChunkViewSource> _createChunkSource(
::ChunkSource& mainChunkSource);
766 virtual ::AnimationComponent& getAnimationComponent() ;
768 virtual ::HashedString
const& getActorRendererId() const ;
770 virtual ::Bedrock::NonOwnerPointer<::Editor::IEditorPlayer> getEditorPlayer() const = 0;
772 virtual
void destroyEditorPlayer() = 0;
774 virtual
void _serverInitItemStackIds() ;
785 ::GameType playerGameType,
786 bool isHostingPlayer,
790 ::
std::
string const& deviceId,
791 ::PlayerAuthenticationType authType,
794 ::
std::
string const& platformId,
795 ::
std::
string const& platformOnlineId
798 MCAPI
void _addLevels(
int levels);
802 MCAPI
bool _canChangeGameType(::GameType newGameType) const;
804 MCAPI
bool _checkAndFixSpawnPosition(
805 ::
Vec3& spawnPosition,
807 bool adjustYToSolidGround,
809 bool positionFromSave
812 MCAPI
void _checkMovementShouldStopEmoting();
814 MCAPI
void _chooseSpawnArea();
816 MCAPI
bool _chooseSpawnPositionWithinArea();
818 MCAPI
bool _findFallbackSpawnPosition(
819 ::
Vec3& spawnPosition,
822 bool checkStoredFallback
825 MCAPI
void _fireWillChangeDimension();
827 MCAPI
bool _fixup4JBedSpawnPosition(::
Vec3& pos);
829 MCAPI
void _handleCarriedItemInteractText();
831 MCAPI
bool _isChunkSourceLoaded(::
Vec3 const& spawnPosition, ::
BlockSource const& region) const;
833 MCAPI
void _loadBlastFurnaceOptions(::
CompoundTag const& tag);
835 MCAPI
void _loadFurnaceOptions(::
CompoundTag const& tag);
837 MCAPI
void _loadInventoryOptions(::
CompoundTag const& tag);
839 MCAPI
void _loadSmokerOptions(::
CompoundTag const& tag);
841 MCAPI
void _preSpawnBuildSpawnDataCache();
843 MCAPI
void _registerElytraLoopSound();
845 MCAPI
void _registerPlayerAttributes();
847 MCAPI
void _resetClientAnimations();
849 MCAPI
void _saveInventoryOptions(::
CompoundTag& tag) const;
851 MCAPI
void _sendShieldUpdatePacket(
855 ::ContainerID container,
859 MCAPI
void _setPlayerGameType(::GameType gameType);
861 MCAPI
void _setPreDimensionTransferSpawnPosition(::
Vec3 pos);
864 MCAPI
void _setStartedBlockingTimeStamp(int64 timeStamp);
867 MCAPI
bool _shouldCrit(::Actor
const& target)
const;
869 MCAPI
void _tickItemCooldowns();
871 MCAPI
bool _updateFroglightCountAndTestForAchievement(
::ItemStack const& oldItem,
::ItemStack const& newItem);
873 MCAPI
void _updateInteraction();
875 MCAPI
bool _validateSpawnPositionAvailability(
878 ::Vec3 const*
const AABBoffset
885 MCAPI ::ActorHurtResult attack(
887 ::SharedTypes::Legacy::ActorDamageCause
const& cause,
891 MCAPI
void broadcastPlayerSpawnedMobEvent(::ActorType spawnedType, ::MobSpawnMethod spawnMethod);
893 MCAPI
bool canBeSeenOnMap()
const;
895 MCAPI
bool canJump();
897 MCAPI
bool canOpenContainerScreen();
899 MCAPI
bool canSleep()
const;
901 MCAPI
bool canStackInOffhand(
::ItemStack const& item)
const;
903 MCAPI
bool canUseAbility(::AbilitiesIndex abilityIndex)
const;
905 MCAPI
bool canUseOperatorBlocks()
const;
907 MCAPI
void causeFoodExhaustion(
float exhaustionAmount);
911 MCAPI
bool checkNeedAutoJump(
float inputMoveX,
float inputMoveZ);
913 MCAPI
bool checkSpawnBlock(
::BlockSource const& region)
const;
915 MCAPI
void clearRespawnPosition();
917 MCAPI
void completeUsingItem();
920 MCAPI
void crackBlock(
::BlockPos const& pos, uchar face);
925 MCAPI
void eat(
int hungerValue,
float saturationModifier);
927 MCAPI
bool equippedArmorItemCanBeMoved(
::ItemStack const& item)
const;
931 MCAPI
bool forceAllowEating()
const;
933 MCFOLD ::LayeredAbilities
const& getAbilities()
const;
935 MCFOLD ::LayeredAbilities& getAbilities();
937 MCAPI ::Agent* getAgent()
const;
939 MCAPI ::ActorUniqueID getAgentID()
const;
941 MCAPI ::Agent* getAgentIfAllowed(
bool callerCanAccessOtherAgents,
::ActorUniqueID callerAgentID)
const;
943 MCAPI ::SharedTypes::Legacy::LevelSoundEvent getAttackHitSound()
const;
945 MCAPI ::SharedTypes::Legacy::LevelSoundEvent getAttackMissSound()
const;
947 MCFOLD ::BlockPos
const& getBedPosition()
const;
950 MCAPI ::FurnaceOptions
const& getBlastFurnaceOptions()
const;
953 MCAPI int64 getBlockedUsingDamagedShieldTimeStamp()
const;
955 MCAPI int64 getBlockedUsingShieldTimeStamp()
const;
957 MCAPI int64 getBlockingStartTimeStamp()
const;
959 MCAPI ::Vec3 getCapePos(
float a);
961 MCAPI ::std::string getChatDisplayName()
const;
963 MCAPI ::std::optional<::std::string>
const& getChatMessagePrefix()
const;
965 MCAPI ::std::optional<::std::string>
const& getChatNamePrefix()
const;
967 MCAPI ::std::optional<::std::string>
const& getChatNameSuffix()
const;
969 MCAPI uint getChunkRadius()
const;
971 MCFOLD ::std::weak_ptr<::IContainerManager> getContainerManager()
const;
974 MCFOLD ::std::weak_ptr<::ContainerManagerModel> getContainerManagerModel()
const;
977 MCAPI ::gsl::not_null<::StackRefResult<::IContainerRegistryAccess>> getContainerRegistryAccess()
const;
979 MCAPI ::gsl::not_null<::StackRefResult<::IContainerRegistryTracker>> getContainerRegistryTracker()
const;
982 MCAPI ::std::vector<::ItemInstance>
const& getCreativeItemList()
const;
985 MCAPI ::ItemStack
const& getCurrentActiveShield()
const;
988 MCAPI uint getCurrentOnScreenAnimationEffectID()
const;
991 MCAPI
float getDestroyProgress(
::Block const& block);
993 MCAPI
int getDirection()
const;
995 MCAPI ::gsl::not_null<::StackRefResult<::IDynamicContainerSerialization>> getDynamicContainerSerialization()
const;
997 MCAPI
int getEnchantmentSeed()
const;
999 MCAPI ::DimensionType getExpectedSpawnDimensionId()
const;
1001 MCAPI ::BlockPos
const& getExpectedSpawnPosition()
const;
1004 MCAPI ::FurnaceOptions
const& getFurnaceOptions()
const;
1007 MCAPI ::GameMode& getGameMode()
const;
1010 MCAPI ::std::weak_ptr<::HudContainerManagerModel> getHudContainerManagerModel()
const;
1013 MCAPI ::std::string getInteractText()
const;
1016 MCAPI ::std::string
const& getInteractTextKey()
const;
1019 MCAPI ::Container& getInventory();
1022 MCAPI ::InventoryOptions
const& getInventoryOptions()
const;
1025 MCAPI ::ItemStack
const& getItem(
int slot)
const;
1027 MCAPI
int getItemCooldownLeft(
::HashedString const& category)
const;
1029 MCAPI
int getItemCooldownLeft(uint64 categoryHash)
const;
1032 MCAPI
float getItemCooldownProgress(
::HashedString const& category)
const;
1035 MCFOLD ::ItemStack
const& getItemInUse()
const;
1037 MCAPI
int getItemInUseSlot()
const;
1039 MCAPI ::std::string getItemInteractText(
::Item const& item)
const;
1041 MCFOLD ::ItemStackNetManagerBase
const* getItemStackNetManager()
const;
1043 MCFOLD ::ItemStackNetManagerBase* getItemStackNetManager();
1046 MCAPI ::ActorType getLastHurtBy()
const;
1048 MCAPI
float getLevelProgress()
const;
1051 MCAPI
float getLuck();
1053 MCAPI
int getMapIndex();
1055 MCAPI
int getMaxItemCooldownLeft()
const;
1057 MCAPI ::std::string
const& getName()
const;
1059 MCAPI
void getNewEnchantmentSeed();
1062 MCFOLD ::std::vector<::BiomeIdType>& getOceanBiomes();
1064 MCAPI
int getOnScreenAnimationTicks()
const;
1067 MCAPI ::AABB getPickupArea()
const;
1069 MCAPI ::BuildPlatform getPlatform()
const;
1071 MCAPI ::std::string
const& getPlatformOnlineId()
const;
1073 MCAPI ::GameType getPlayerGameType()
const;
1075 MCAPI
int getPlayerIndex()
const;
1077 MCAPI
int getPlayerLevel()
const;
1079 MCAPI ::PlayerPermissionLevel getPlayerPermissionLevel()
const;
1081 MCAPI ::std::string
const& getPlayerSessionId()
const;
1083 MCAPI ::ItemStack
const& getPlayerUIItem(::PlayerUISlot slot);
1085 MCFOLD ::BlockPos
const& getRespawnAnchorPosition()
const;
1087 MCFOLD ::ItemStack
const& getSelectedItem()
const;
1089 MCAPI ::SerializedSkinRef
const& getSkin()
const;
1091 MCAPI
float getSleepRotation()
const;
1094 MCAPI ::FurnaceOptions
const& getSmokerOptions()
const;
1097 MCAPI ::DimensionType getSpawnDimension()
const;
1099 MCAPI ::BlockPos
const& getSpawnPosition()
const;
1101 MCFOLD ::PlayerInventory
const& getSupplies()
const;
1103 MCFOLD ::PlayerInventory& getSupplies();
1106 MCAPI
int getTicksUsingItem()
const;
1109 MCAPI ::std::vector<::ActorUniqueID>
const& getTrackedBosses()
const;
1111 MCAPI
bool getUsedPotion();
1113 MCAPI
int getXpEarnedAtCurrentLevel()
const;
1115 MCAPI uint getXpNeededForLevelRange(
int startlevel,
int endlevel)
const;
1117 MCAPI
int getXpNeededForNextLevel()
const;
1120 MCAPI
void handleMovePlayerPacket(
1121 ::PlayerPositionModeComponent::PositionMode mode,
1126 int sourceEntityType
1130 MCAPI
bool hasBedPosition()
const;
1132 MCAPI
bool hasOpenContainer()
const;
1134 MCAPI
bool hasOpenContainerOfContainerType(::SharedTypes::Legacy::ContainerType containerType)
const;
1136 MCAPI
bool hasOwnedChunkSource()
const;
1140 MCAPI
bool hasRespawnAnchorPosition()
const;
1142 MCFOLD
bool hasRespawnPosition()
const;
1145 MCFOLD
bool hasSleepFlagSet();
1148 MCAPI ::InteractionResult interact(::Actor& actor,
::Vec3 const& location);
1150 MCAPI
void inventoryChanged(
1161 MCAPI
bool isCrawling();
1164 MCAPI
bool isCurrentSkinTrusted()
const;
1167 MCAPI
bool isEmoteMessageEasterEgg()
const;
1170 MCAPI
bool isEmoting()
const;
1172 MCAPI
bool isEquipmentHidden()
const;
1174 MCAPI
bool isFlying()
const;
1176 MCAPI
bool isForcedRespawn()
const;
1178 MCAPI
bool isHiddenFrom(::Mob& target)
const;
1180 MCAPI
bool isHostingPlayer()
const;
1182 MCAPI
bool isHungry()
const;
1184 MCAPI
bool isHurt();
1186 MCAPI
bool isInRaid()
const;
1188 MCAPI
bool isItemOnCooldown(
::HashedString const& category)
const;
1190 MCAPI
bool isItemOnCooldown(
::Item const& item)
const;
1192 MCAPI
bool isRespawningFromTheEnd()
const;
1195 MCAPI
bool isScoping()
const;
1198 MCAPI
bool isSleepingLongEnough()
const;
1200 MCAPI
bool isSpawned()
const;
1202 MCAPI
bool isUsingItem()
const;
1204 MCFOLD
bool isValidSpawn()
const;
1211 MCAPI
void onResetBAI(
int);
1214 MCAPI
void passengerCheckMovementStats();
1216 MCAPI
void playFallOrLandSound(
int expectedDamage,
::Block const& onBlock,
::Block const& blockAbove);
1218 MCAPI
void playPredictiveSynchronizedSound(
1219 ::SharedTypes::Legacy::LevelSoundEvent type,
1226 MCAPI
void queueOnScreenTextureAnimation(uint effectID);
1229 MCAPI
void recheckSpawnPosition();
1233 MCAPI
void releaseUsingItem();
1239 MCAPI
void resendAllChunks();
1242 MCAPI
void resetEmoteMessageData();
1244 MCAPI
void resetOnScreenAnimationTicks();
1247 MCAPI
void resetPlayerLevel();
1249 MCAPI
void resetPublisherInitialSpawn();
1251 MCAPI
void resetToDefaultGameMode();
1257 MCAPI
void sendPlayerTeleported();
1259 MCAPI
void sendSpawnExperienceOrbPacketToServer(
::Vec3 const& pos,
int count);
1261 MCAPI
void setAgent(
::Agent* agent);
1263 MCAPI
void setBedRespawnPosition(
::BlockPos const& bedPosition);
1269 MCAPI
void setBlockRespawnUntilClientMessage(
bool val);
1271 MCAPI
void setChatMessagePrefix(::std::optional<::std::string> prefix);
1273 MCAPI
void setChatNamePrefix(::std::optional<::std::string> prefix);
1275 MCAPI
void setChatNameSuffix(::std::optional<::std::string> suffix);
1277 MCAPI
void setChunkRadius(uint chunkRadius);
1279 MCAPI
void setCommandPermissions(::CommandPermissionLevel permissions);
1281 MCAPI
void setContainerManagerModel(::std::shared_ptr<::ContainerManagerModel> manager);
1283 MCAPI
void setCursorSelectedItem(
::ItemStack const& item);
1285 MCAPI
void setCursorSelectedItemGroup(
::ItemGroup const& itemGroup);
1287 MCAPI
void setEmotingStatus(uint emoteTicks);
1289 MCAPI
void setEnchantmentSeed(
int newSeed);
1295 MCAPI
void setHasSeenCredits(
bool value);
1300 MCAPI
void setIsDeferredRenderingFirstPersonObjects(
bool isRenderingDeferredFirstPersonObjects);
1303 MCAPI
void setItem(
::ItemStack const& item,
int slot);
1306 MCAPI
void setLastHurtBy(::ActorType lastHurtBy);
1309 MCAPI
void setMapIndex(
int mapIndex);
1311 MCAPI
void setName(::std::string
const& newName);
1314 MCAPI
void setPlatform(::BuildPlatform platform);
1317 MCAPI
void setPlatformOnlineId(::std::string
const& platformOnlineId);
1319 MCAPI
void setPlayerIndex(
int index);
1321 MCAPI
void setPlayerUIItem(::PlayerUISlot slot,
::ItemStack const& item,
bool forceBalance);
1330 MCAPI
void setRespawnPositionCandidate();
1332 MCAPI
void setRespawnReady(
::Vec3 const& respawnPosition);
1334 MCAPI
void setSelectedItem(
::ItemStack const& item);
1336 MCAPI ::ItemStack
const& setSelectedSlot(
int slot);
1344 MCAPI
void setUsedPotion(
bool used);
1346 MCAPI
bool shouldShowCredits()
const;
1348 MCAPI
void startDestroying();
1350 MCAPI
void startGliding();
1352 MCAPI
void startItemCooldown(
::Item const& item,
bool updateClient);
1354 MCAPI
void startItemCooldown(
::HashedString const& type,
int tickDuration,
bool updateClient);
1359 MCAPI
void startUsingItem(
::ItemStack const& instance,
int duration);
1361 MCAPI
void stopDestroying();
1363 MCAPI
void stopGliding();
1367 MCAPI
void stopUsingItem();
1369 MCAPI
bool take(::Actor& actor,
int favoredSlot,
int);
1371 MCAPI
void tickArmor();
1373 MCAPI
void tryDisableShield();
1375 MCAPI
bool tryStartGliding();
1382 MCAPI
bool updateEmoteMessageData(
::PersonaPiece const& emotePiece);
1385 MCAPI
void updateInventoryTransactions();
1389 MCAPI
void updateTouch();
1391 MCAPI
void updateTrackedBosses();
1394 MCAPI
void useMapAnimationComponent(
bool InMap);
1397 MCAPI
void useSelectedItem(::ItemUseMethod itemUseMethod,
bool consumeItem);
1404 MCAPI static ::PlayerSpawnFallbackType
1405 _findSpawnFallbackType(
::Vec3 const& spawnPosition, ::gsl::not_null<::BlockSource*>& region);
1408 MCAPI
static bool _isDangerousBlockForSpawn(
::Block const& block);
1410 MCAPI
static bool _isDangerousBlock_DEPRECATED(
::Block const& block,
bool checkForLava);
1413 MCAPI static ::std::optional<::Player::FixedSpawnPositionData> checkAndFixSpawnPosition(
1414 ::Vec3 const& spawnPosition,
1415 ::std::vector<::gsl::not_null<::BlockSource*>> regions,
1417 bool adjustYToSolidGround,
1419 bool positionFromSave,
1420 bool spawningAtForcedSpawn,
1421 short dimensionHeight
1425 MCAPI static ::std::optional<::Player::FixedSpawnPositionData_DEPRECATED> checkAndFixSpawnPosition_DEPRECATED(
1426 ::Vec3 const& spawnPosition,
1427 ::std::vector<::gsl::not_null<::BlockSource*>> regions,
1429 bool adjustYToSolidGround,
1431 bool positionFromSave,
1432 bool spawningAtForcedSpawn,
1433 bool dimensionHeight,
1437 MCAPI
static bool checkNeedAutoJump(
1441 float movementSpeed,
1448 MCAPI static ::std::optional<::SharedTypes::Legacy::LevelSoundEvent>
1449 getCustomHurtSound(::Mob
const& mob, ::SharedTypes::Legacy::ActorDamageCause cause);
1451 MCAPI
static bool isDangerousVolumeForSpawn(
::BlockSource& region,
::AABB const& centeredAABB);
1453 MCFOLD static ::Player
const*
1456 MCFOLD static ::Player*
1462 updatePlayerGameTypeEntityData(
::EntityContext& entity, ::GameType gameType, ::GameType defaultGameType);
1468 MCAPI
static float const& DEFAULT_BB_HEIGHT();
1470 MCAPI
static float const& DEFAULT_BB_WIDTH();
1472 MCAPI
static float const& DEFAULT_PLAYER_EYE_OFFSET();
1474 MCAPI
static float const& DEFAULT_PLAYER_HEIGHT_OFFSET();
1476 MCAPI
static float const& DISTANCE_TO_TRANSFORM_EVENT();
1478 MCAPI
static float const& DISTANCE_TO_TRAVELLED_EVENT();
1480 MCAPI static ::Attribute
const& EXHAUSTION();
1482 MCAPI static ::Attribute
const& EXPERIENCE();
1484 MCAPI
static int const& GLIDE_STOP_DELAY();
1486 MCAPI static ::Attribute
const& HUNGER();
1488 MCAPI static ::Attribute
const& LEVEL();
1490 MCAPI
static float const& PLAYER_SLEEPING_HEIGHT();
1492 MCAPI static ::Attribute
const& SATURATION();
1501 ::GameType playerGameType,
1502 bool isHostingPlayer,
1504 ::SubClientId subid,
1506 ::std::string
const& deviceId,
1507 ::PlayerAuthenticationType authType,
1510 ::std::string
const& platformId,
1511 ::std::string
const& platformOnlineId
1524 MCAPI
void $initializeComponents(::ActorInitializationMethod method,
::VariantParameterList const& params);
1530 MCAPI
void $destroyRegion();
1532 MCAPI
void $suspendRegion();
1534 MCAPI
void $_fireDimensionChanged();
1536 MCAPI
bool $canChangeDimensionsUsingPortal()
const;
1540 MCAPI
void $tickWorld(
::Tick const& currentTick);
1542 MCAPI ::std::vector<::ChunkPos>
const& $getTickingOffsets()
const;
1544 MCAPI
void $normalTick();
1546 MCAPI
void $moveView();
1550 MCFOLD
void $onSynchedDataUpdate(
int dataId);
1552 MCAPI
void $aiStep();
1554 MCAPI
bool $isFireImmune()
const;
1556 MCFOLD
void $checkMovementStats(
::Vec3 const& d);
1558 MCFOLD ::HashedString $getCurrentStructureFeature()
const;
1560 MCFOLD
bool $isAutoJumpEnabled()
const;
1562 MCAPI ::Vec3 $getInterpolatedRidingOffset(
float,
int const)
const;
1564 MCAPI
void $passengerTick();
1568 MCAPI
void $remove();
1570 MCAPI
void $respawn();
1572 MCAPI
bool $shouldDropDeathLoot()
const;
1576 MCAPI
void $dropEquipmentOnDeath();
1578 MCFOLD
void $clearVanishEnchantedItemsOnDeath();
1580 MCAPI
bool $drop(
::ItemStack const& item,
bool const randomly);
1582 MCFOLD
void $resetRot();
1584 MCAPI
void $resetUserPos(::ActorResetRule resetRule);
1586 MCFOLD
bool $isInTrialMode();
1588 MCAPI
void $setSpeed(
float _speed);
1590 MCAPI
int $getItemUseDuration()
const;
1592 MCAPI
float $getItemUseStartupProgress()
const;
1594 MCAPI
float $getItemUseIntervalProgress()
const;
1596 MCAPI
bool $isBlocking()
const;
1600 MCAPI
void $handleEntityEvent(::ActorEvent
id,
int data);
1602 MCAPI ::std::vector<::ItemStack const*> $getAllHandEquipment()
const;
1604 MCAPI ::std::vector<::ItemStack const*> $getAllEquipment()
const;
1608 MCAPI ::CommandPermissionLevel $getCommandPermissionLevel()
const;
1610 MCAPI ::ActorHurtResult $attack(::Actor& actor, ::SharedTypes::Legacy::ActorDamageCause
const& cause);
1612 MCFOLD ::ItemStack
const& $getCarriedItem()
const;
1614 MCAPI
void $setCarriedItem(
::ItemStack const& item);
1616 MCAPI
void $damageCarriedItemOnAttack(::Actor& target,
float damageDealtToTarget);
1618 MCFOLD
void $openPortfolio();
1620 MCFOLD
void $openBook(
int bookSlot,
bool editable,
int page,
::BlockActor* lectern);
1622 MCFOLD
void $openTrading(
::ActorUniqueID const& uniqueID,
bool useNewScreen);
1626 MCFOLD
void $openNpcInteractScreen(::std::shared_ptr<::INpcDialogueData> npc);
1628 MCFOLD
void $openInventory();
1630 MCFOLD
void $displayChatMessage(
1631 ::std::string
const& author,
1632 ::std::string
const& message,
1633 ::std::optional<::std::string>
const filteredMessage
1637 $displayClientMessage(::std::string
const& message, ::std::optional<::std::string>
const filteredMessage);
1639 MCFOLD
void $displayTextObjectMessage(
1641 ::std::string
const& fromXuid,
1642 ::std::string
const& fromPlatformId
1645 MCFOLD
void $displayTextObjectWhisperMessage(
1647 ::std::string
const& xuid,
1648 ::std::string
const& platformId
1651 MCFOLD
void $displayTextObjectWhisperMessage(
1652 ::std::string
const& message,
1653 ::std::string
const& xuid,
1654 ::std::string
const& platformId
1657 MCFOLD
void $displayWhisperMessage(
1658 ::std::string
const& author,
1659 ::std::string
const& message,
1660 ::std::optional<::std::string>
const filteredMessage,
1661 ::std::string
const& xuid,
1662 ::std::string
const& platformId
1665 MCAPI
float $getShadowRadius()
const;
1667 MCAPI
bool $isSleeping()
const;
1669 MCAPI
void $setSleeping(
bool val);
1671 MCAPI ::BedSleepingResult $startSleepInBed(
::BlockPos const& bedBlockPos);
1673 MCAPI
void $stopSleepInBed(
bool forcefulWakeUp,
bool updateLevelList);
1675 MCAPI
bool $canStartSleepInBed();
1677 MCFOLD
void $sendInventory(
bool shouldSelectSlot);
1679 MCFOLD
void $openSign(
::BlockPos const& position,
bool isFrontSide);
1681 MCFOLD
void $playEmote(::std::string
const& pieceId,
bool const playChatMessage);
1683 MCAPI
bool $isSilentObserver()
const;
1685 MCAPI
void $useItem(
::ItemStackBase& instance, ::ItemUseMethod itemUseMethod,
bool consumeItem);
1687 MCFOLD
bool $isLoading()
const;
1689 MCFOLD
bool $isPlayerInitialized()
const;
1691 MCFOLD
void $stopLoading();
1693 MCAPI
float $getSpeed()
const;
1695 MCAPI
void $setPlayerGameType(::GameType gameType);
1697 MCAPI
void $initHUDContainerManager();
1699 MCAPI
void $emitCriticalHitParticles(::Actor
const& target,
int particleCount);
1701 MCAPI
bool $isImmobile()
const;
1703 MCFOLD
void $sendMotionPacketIfNeeded();
1705 MCAPI ::IMinecraftEventing* $getEventing()
const;
1707 MCFOLD uint $getUserId()
const;
1709 MCAPI
void $addExperience(
int xp);
1711 MCAPI
void $addLevels(
int levels);
1713 MCAPI
void $setArmor(::SharedTypes::Legacy::ArmorSlot slot,
::ItemStack const& item);
1715 MCAPI
void $setOffhandSlot(
::ItemStack const& item);
1717 MCAPI ::std::unique_ptr<::Packet> $tryCreateAddActorPacket();
1721 MCAPI
void $deleteContainerManager();
1723 MCAPI ::ItemStack
const& $getEquippedTotem()
const;
1725 MCAPI
bool $consumeTotem();
1727 MCFOLD
bool $isActorRelevant(::Actor
const& actor);
1729 MCAPI
float $getMapDecorationRotation()
const;
1732 $teleportTo(
::Vec3 const& pos,
bool shouldStopRiding,
int cause,
int sourceEntityType,
bool keepVelocity);
1734 MCAPI
bool $startRiding(::Actor& vehicle,
bool forceRiding);
1736 MCAPI
void $startSwimming();
1738 MCAPI
void $stopSwimming();
1740 MCFOLD
void $onSuspension();
1742 MCFOLD
void $onLinkedSlotsChanged();
1744 MCFOLD
bool $canBePulledIntoVehicle()
const;
1746 MCAPI
void $feed(
int itemId);
1748 MCFOLD
void $sendNetworkPacket(
::Packet& packet)
const;
1750 MCFOLD
bool $canExistWhenDisallowMob()
const;
1752 MCAPI ::mce::Color $getNameTagTextColor()
const;
1754 MCAPI
bool $canAddPassenger(::Actor& passenger)
const;
1756 MCFOLD
bool $isSimulated()
const;
1758 MCAPI ::std::string $getXuid()
const;
1760 MCAPI ::PlayerMovementSettings
const& $getMovementSettings()
const;
1762 MCAPI
bool $canFreeze()
const;
1764 MCAPI
bool $canInteractWithOtherEntitiesInGame()
const;
1766 MCAPI
bool $canObstructSpawningAndBlockPlacement()
const;
1768 MCAPI ::std::optional<::BlockPos> $getLastDeathPos()
const;
1770 MCAPI ::std::optional<::DimensionType> $getLastDeathDimension()
const;
1772 MCAPI
bool $hasDiedBefore()
const;
1774 MCAPI
void $doEnterWaterSplashEffect();
1776 MCAPI
void $doExitWaterSplashEffect();
1778 MCFOLD ::std::optional<::PlayerPartyInfo> $getPartyInfo_UNTRUSTED()
const;
1780 MCFOLD
void $requestMissingSubChunk(
::SubChunkPos const& scp);
1782 MCAPI uchar $getMaxChunkBuildRadius()
const;
1784 MCAPI
float $causeFallDamageToActor(
float distance,
float multiplier,
::ActorDamageSource source);
1786 MCFOLD
void $setBehaviorCommandStatus(::std::string
const& name, ::BehaviorStatus status);
1788 MCFOLD
void $setRemotePlayerTicked(
bool);
1790 MCFOLD ::std::unique_ptr<::ISparseContainerSetListener> $createSparseContainerListener();
1792 MCAPI ::ActorHurtResult $_hurt(
::ActorDamageSource const& source,
float damage,
bool knock,
bool ignite);
1796 MCAPI
void $addAdditionalSaveData(
::CompoundTag& entityTag)
const;
1798 MCAPI
void $onMovePlayerPacketNormal(
::Vec3 const& pos,
::Vec2 const& rot,
float yHeadRot);
1800 MCAPI
bool $_shouldProvideFeedbackOnHandContainerItemSet(::HandSlot handSlot,
::ItemStack const& item)
const;
1802 MCAPI
bool $_shouldProvideFeedbackOnArmorSet(::SharedTypes::Legacy::ArmorSlot slot,
::ItemStack const& item)
const;
1804 MCAPI ::std::shared_ptr<::ChunkViewSource> $_createChunkSource(
::ChunkSource& mainChunkSource);
1808 MCAPI ::AnimationComponent& $getAnimationComponent();
1810 MCAPI ::HashedString
const& $getActorRendererId()
const;
1812 MCFOLD
void $_serverInitItemStackIds();
1814 MCAPI ::std::unique_ptr<::BodyControl> $initBodyControl();
1822 MCAPI
static void** $vftable();