125class Player :
public ::Mob {
138 enum class SpawnPositionSource :
int {
145 enum class SpawnPositionState :
int {
146 InitializeSpawnPositionRandomizer = 0,
147 WaitForClientAck = 1,
148 DetermineDimension = 2,
150 WaitForDimension = 4,
152 CheckLoadedChunk = 6,
153 ChooseSpawnPosition = 7,
160 enum class Sound :
int {
169 ::ll::TypedStorage<4, 4, ::Player::AttackParameters::Sound> mSound;
170 ::ll::TypedStorage<1, 1, bool> mTriggerCooldown;
171 ::ll::TypedStorage<1, 1, bool> mCanCrit;
179 ::ll::TypedStorage<4, 4, ::DimensionType> mRespawnDimensionId;
180 ::ll::TypedStorage<4, 12, ::Vec3> mActualRespawnPosition;
181 ::ll::TypedStorage<4, 12, ::BlockPos> mRequestedRespawnPosition;
182 ::ll::TypedStorage<1, 1, bool> mHasRespawnPosition;
183 ::ll::TypedStorage<4, 12, ::BlockPos> mSharedSpawnPosition;
184 ::ll::TypedStorage<1, 1, bool> mRespawnReady;
185 ::ll::TypedStorage<4, 12, ::Vec3> mPlayerPos;
186 ::ll::TypedStorage<1, 1, bool> mIsForcedRespawn;
187 ::ll::TypedStorage<1, 1, bool> mIsAdventure;
188 ::ll::TypedStorage<1, 1, bool> mIsFlyingOrNotOverworld;
189 ::ll::TypedStorage<1, 1, bool> mPositionLoadedFromSave;
197 ::ll::TypedStorage<4, 12, ::Vec3> mPosition;
198 ::ll::TypedStorage<4, 4, ::PlayerSpawnFallbackType> mSpawnFallbackType;
206 ::ll::TypedStorage<4, 12, ::Vec3> mPosition;
207 ::ll::TypedStorage<1, 1, bool> mIsAboveLeaves;
215 ::ll::TypedStorage<4, 4, int> mTicksLeft;
216 ::ll::TypedStorage<4, 4, int> mTotalTicks;
224 ::ll::TypedStorage<4, 12, ::BlockPos> mSpawnBlockPos;
225 ::ll::TypedStorage<4, 12, ::BlockPos> mPlayerPosition;
226 ::ll::TypedStorage<4, 4, ::DimensionType> mDimension;
233 setSpawnPoint(
::BlockPos const& playerPosition, ::DimensionType dimension,
::BlockPos const& spawnBlock);
237 using PlayerFlagIDType = schar;
239 using PlayerListenerList = ::std::vector<::PlayerListener*>;
250 LLNDAPI SubClientId
const& getClientSubId()
const;
252 LLNDAPI
int getSelectedItemSlot()
const;
280 LLNDAPI std::optional<NetworkPeer::NetworkStatus> getNetworkStatus()
const;
291 LLAPI
void setAbility(::AbilitiesIndex index,
bool value);
321 ::ll::TypedStorage<8, 24, ::std::vector<ushort>> mFroglights;
322 ::ll::TypedStorage<4, 4, float const> mSneakHeight;
323 ::ll::TypedStorage<4, 4, float const> mSneakOffset;
324 ::ll::TypedStorage<4, 4, int> mScore;
325 ::ll::TypedStorage<4, 4, ::BuildPlatform> mBuildPlatform;
326 ::ll::TypedStorage<8, 32, ::std::string> mUniqueName;
327 ::ll::TypedStorage<8, 32, ::std::string> mServerId;
328 ::ll::TypedStorage<8, 32, ::std::string> mSelfSignedId;
329 ::ll::TypedStorage<8, 32, ::std::string> mPlatformOfflineId;
330 ::ll::TypedStorage<8, 8, uint64> mClientRandomId;
331 ::ll::TypedStorage<8, 32, ::std::string> mPlatformId;
332 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPendingVehicleID;
333 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPendingLeftShoulderPassengerID;
334 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPendingRightShoulderPassengerID;
335 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mInteractTarget;
336 ::ll::TypedStorage<4, 12, ::Vec3> mInteractTargetPos;
337 ::ll::TypedStorage<1, 1, bool> mHasFakeInventory;
338 ::ll::TypedStorage<1, 1, bool> mIsRegionSuspended;
339 ::ll::TypedStorage<1, 1, bool> mUpdateMobs;
340 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ChunkViewSource>> mChunkSource;
341 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ChunkViewSource>> mSpawnChunkSource;
342 ::ll::TypedStorage<4, 12, ::Vec3> mCapePosO;
343 ::ll::TypedStorage<4, 12, ::Vec3> mCapePos;
344 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ContainerManagerModel>> mContainerManager;
351 mContainerManagerSubscribers;
352 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PlayerInventory>> mInventory;
353 ::ll::TypedStorage<4, 20, ::InventoryOptions> mInventoryOptions;
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, 64, ::std::unordered_map<::HashedString, ::Player::ItemCooldown>> mItemCooldowns;
418 ::ll::TypedStorage<8, 64, ::std::unordered_map<::HashedString, ::HashedString>> mVanillaItemCooldowns;
419 ::ll::TypedStorage<8, 8, int64> mStartedBlockingTimeStamp;
420 ::ll::TypedStorage<8, 8, int64> mBlockedUsingShieldTimeStamp;
421 ::ll::TypedStorage<8, 8, int64> mBlockedUsingDamagedShieldTimeStamp;
422 ::ll::TypedStorage<8, 32, ::std::string> mName;
423 ::ll::TypedStorage<8, 32, ::std::string> mLastEmotePlayed;
424 ::ll::TypedStorage<8, 8, int64> mEmoteEasterEggEndTime;
425 ::ll::TypedStorage<4, 4, uint> mEmoteMessageCount;
426 ::ll::TypedStorage<8, 32, ::std::string> mDeviceId;
427 ::ll::TypedStorage<1, 1, bool> mFlagClientForBAIReset;
428 ::ll::TypedStorage<1, 1, bool> mSendInventoryOptionsToClient;
429 ::ll::TypedStorage<1, 1, bool> mIsHostingPlayer;
430 ::ll::TypedStorage<1, 1, bool> mPrevBlockedUsingShield;
431 ::ll::TypedStorage<1, 1, bool> mPrevBlockedUsingDamagedShield;
432 ::ll::TypedStorage<1, 1, bool> mUsedPotion;
433 ::ll::TypedStorage<8, 8, ::PlayerDestroyProgressCacheComponent&> mDestroyProgressCache;
438 Player& operator=(Player
const&);
439 Player(Player
const&);
454 virtual void destroyRegion();
456 virtual void suspendRegion();
458 virtual void _fireDimensionChanged();
460 virtual bool canChangeDimensionsUsingPortal() const ;
462 virtual
void changeDimensionWithCredits(::DimensionType);
464 virtual
void tickWorld(::
Tick const&);
468 virtual ::
std::vector<::
ChunkPos> const& getTickingOffsets() const;
470 virtual
void normalTick() ;
472 virtual
void moveView();
474 virtual
void moveSpawnView(::
Vec3 const& spawnPosition, ::DimensionType dimensionType);
476 virtual
void onSynchedDataUpdate(
int dataId) ;
478 virtual
void aiStep() ;
480 virtual
bool isFireImmune() const ;
482 virtual
void checkMovementStats(::
Vec3 const&);
484 virtual ::
HashedString getCurrentStructureFeature() const;
486 virtual
bool isAutoJumpEnabled() const;
488 virtual ::
Vec3 getInterpolatedRidingOffset(
float,
int const) const ;
490 virtual
void passengerTick() ;
494 virtual
void remove() ;
496 virtual
void respawn();
498 virtual
bool shouldDropDeathLoot() const ;
502 virtual
void dropEquipmentOnDeath() ;
504 virtual
void clearVanishEnchantedItemsOnDeath() ;
506 virtual
bool drop(::
ItemStack const& item,
bool const randomly) ;
508 virtual
void resetRot();
510 virtual
void resetUserPos(::ActorResetRule resetRule) ;
512 virtual
bool isInTrialMode();
514 virtual
void setSpeed(
float _speed) ;
516 virtual
int getItemUseDuration() const ;
518 virtual
float getItemUseStartupProgress() const ;
520 virtual
float getItemUseIntervalProgress() const ;
522 virtual
bool isBlocking() const ;
526 virtual
void handleEntityEvent(::ActorEvent eventId,
int data) ;
528 virtual ::
std::vector<::
ItemStack const*> getAllHandEquipment() const ;
530 virtual ::
std::vector<::
ItemStack const*> getAllEquipment() const ;
534 virtual ::CommandPermissionLevel getCommandPermissionLevel() const ;
536 virtual
bool attack(::Actor& actor, ::SharedTypes::Legacy::ActorDamageCause const& cause) ;
538 virtual ::
ItemStack const& getCarriedItem() const ;
540 virtual
void setCarriedItem(::
ItemStack const& item) ;
542 virtual
void damageCarriedItemOnAttack(::Actor& target,
float damageDealtToTarget) ;
544 virtual
void openPortfolio();
546 virtual
void openBook(
int,
bool,
int, ::
BlockActor*);
554 virtual
void openInventory();
556 virtual
void displayChatMessage(
557 ::
std::
string const& author,
558 ::
std::
string const& message,
559 ::
std::optional<::
std::
string> const filteredMessage
563 displayClientMessage(::
std::
string const& message, ::
std::optional<::
std::
string> const filteredMessage);
565 virtual
void displayTextObjectMessage(
567 ::
std::
string const& fromXuid,
568 ::
std::
string const& fromPlatformId
571 virtual
void displayTextObjectWhisperMessage(
573 ::
std::
string const& xuid,
574 ::
std::
string const& platformId
577 virtual
void displayTextObjectWhisperMessage(
578 ::
std::
string const& message,
579 ::
std::
string const& xuid,
580 ::
std::
string const& platformId
583 virtual
void displayWhisperMessage(
584 ::
std::
string const& author,
585 ::
std::
string const& message,
586 ::
std::optional<::
std::
string> const filteredMessage,
587 ::
std::
string const& xuid,
588 ::
std::
string const& platformId
591 virtual
float getShadowRadius() const ;
593 virtual
bool isSleeping() const ;
595 virtual
void setSleeping(
bool val) ;
597 virtual ::BedSleepingResult startSleepInBed(::
BlockPos const& bedBlockPos);
599 virtual
void stopSleepInBed(
bool forcefulWakeUp,
bool updateLevelList);
601 virtual
bool canStartSleepInBed();
603 virtual
void sendInventory(
bool) ;
605 virtual
void openSign(::
BlockPos const&,
bool);
607 virtual
void playEmote(::
std::
string const&,
bool const);
609 virtual
bool isSilentObserver() const ;
611 virtual
void useItem(::
ItemStackBase& instance, ::ItemUseMethod itemUseMethod,
bool consumeItem) ;
613 virtual
bool isLoading() const;
615 virtual
bool isPlayerInitialized() const;
617 virtual
void stopLoading();
619 virtual
float getSpeed() const ;
621 virtual
void setPlayerGameType(::GameType gameType);
623 virtual
void initHUDContainerManager();
625 virtual
void emitCriticalHitParticles(::Actor const& target,
int particleCount);
627 virtual
bool isImmobile() const ;
629 virtual
void sendMotionPacketIfNeeded() ;
633 virtual uint getUserId() const;
635 virtual
void addExperience(
int xp);
637 virtual
void addLevels(
int levels);
639 virtual
void setArmor(::SharedTypes::Legacy::ArmorSlot slot, ::
ItemStack const& item) ;
641 virtual
void setOffhandSlot(::
ItemStack const& item) ;
643 virtual ::
std::unique_ptr<::
Packet> tryCreateAddActorPacket() ;
653 virtual
void deleteContainerManager();
655 virtual ::
ItemStack const& getEquippedTotem() const ;
657 virtual
bool consumeTotem() ;
659 virtual
bool isActorRelevant(::Actor const&);
661 virtual
float getMapDecorationRotation() const ;
663 virtual
void teleportTo(
665 bool shouldStopRiding,
667 int sourceEntityType,
671 virtual
bool startRiding(::Actor& vehicle,
bool forceRiding) ;
673 virtual
void startSwimming() ;
675 virtual
void stopSwimming() ;
677 virtual
bool isTeacher() const = 0;
679 virtual
void onSuspension();
681 virtual
void onLinkedSlotsChanged();
683 virtual
bool canBePulledIntoVehicle() const ;
685 virtual
void feed(
int itemId) ;
691 virtual
void sendNetworkPacket(::
Packet& packet) const;
693 virtual
bool canExistWhenDisallowMob() const ;
695 virtual ::mce::Color getNameTagTextColor() const ;
697 virtual
bool canAddPassenger(::Actor& passenger) const ;
701 virtual
bool isSimulated() const;
703 virtual ::
std::
string getXuid() const;
707 virtual
bool canFreeze() const ;
709 virtual
bool canInteractWithOtherEntitiesInGame() const ;
711 virtual
bool canObstructSpawningAndBlockPlacement() const ;
713 virtual ::
std::optional<::
BlockPos> getLastDeathPos() const ;
715 virtual ::
std::optional<::DimensionType> getLastDeathDimension() const ;
717 virtual
bool hasDiedBefore() const ;
719 virtual
void doEnterWaterSplashEffect() ;
721 virtual
void doExitWaterSplashEffect() ;
723 virtual
void requestMissingSubChunk(::
SubChunkPos const&);
725 virtual uchar getMaxChunkBuildRadius() const;
727 virtual
float causeFallDamageToActor(
float distance,
float multiplier, ::
ActorDamageSource source) ;
729 virtual
void setBehaviorCommandStatus(::
std::
string const&, ::BehaviorStatus);
731 virtual
void setRemotePlayerTicked(
bool);
735 virtual
bool _hurt(::
ActorDamageSource const& source,
float damage,
bool knock,
bool ignite) ;
739 virtual
void addAdditionalSaveData(::
CompoundTag& entityTag) const ;
741 virtual
void onMovePlayerPacketNormal(::
Vec3 const& pos, ::
Vec2 const& rot,
float yHeadRot);
743 virtual
bool _shouldProvideFeedbackOnHandContainerItemSet(::HandSlot handSlot, ::
ItemStack const& item) const
746 virtual
bool _shouldProvideFeedbackOnArmorSet(::SharedTypes::Legacy::ArmorSlot slot, ::
ItemStack const& item) const
755 virtual ::
HashedString const& getActorRendererId() const ;
757 virtual ::Bedrock::NonOwnerPointer<::Editor::IEditorPlayer> getEditorPlayer() const = 0;
759 virtual
void destroyEditorPlayer() = 0;
761 virtual
void _serverInitItemStackIds() ;
772 ::GameType playerGameType,
773 bool isHostingPlayer,
777 ::
std::
string const& deviceId,
778 ::PlayerAuthenticationType authType,
781 ::
std::
string const& platformId,
782 ::
std::
string const& platformOnlineId
785 MCAPI
void _addLevels(
int levels);
789 MCAPI
bool _checkAndFixSpawnPosition(
790 ::
Vec3& spawnPosition,
792 bool adjustYToSolidGround,
794 bool positionFromSave
797 MCAPI_C
void _checkMovementShouldStopEmoting();
799 MCAPI
void _chooseSpawnArea();
801 MCAPI
bool _chooseSpawnPositionWithinArea();
803 MCAPI
void _ensureSafeSpawnPosition(::
Vec3& pos);
805 MCAPI
bool _findFallbackSpawnPosition(
806 ::
Vec3& spawnPosition,
809 bool checkStoredFallback
812 MCAPI ::
std::optional<::
BlockPos> _findValidPosWithVerticalSpace(::
BlockPos spawnPosition);
814 MCAPI
void _handleCarriedItemInteractText();
816 MCAPI
bool _isChunkSourceLoaded(::
Vec3 const& spawnPosition, ::
BlockSource const& region) const;
818 MCAPI
void _loadInventoryOptions(::
CompoundTag const& tag);
820 MCAPI
void _preSpawnBuildSpawnDataCache();
822 MCAPI
void _registerElytraLoopSound();
824 MCAPI
void _registerPlayerAttributes();
826 MCAPI
void _resetClientAnimations();
828 MCAPI
void _saveInventoryOptions(::
CompoundTag& tag) const;
830 MCAPI
void _sendShieldUpdatePacket(
834 ::ContainerID container,
838 MCAPI
void _setPlayerGameType(::GameType gameType);
840 MCAPI
void _updateInteraction();
842 MCAPI
bool _validateSpawnPositionAvailability(
845 ::
Vec3 const* const AABBoffset
850 ::SharedTypes::Legacy::ActorDamageCause const& cause,
854 MCAPI
bool canBeSeenOnMap() const;
856 MCAPI
bool canJump();
858 MCAPI
bool canOpenContainerScreen();
860 MCAPI
bool canSleep() const;
862 MCAPI
bool canStackInOffhand(::
ItemStack const& item) const;
864 MCAPI
bool canUseAbility(::AbilitiesIndex abilityIndex) const;
866 MCAPI
bool canUseOperatorBlocks() const;
868 MCAPI
void causeFoodExhaustion(
float exhaustionAmount);
870 MCAPI
bool checkBed(::
BlockSource* spawnBlockSource, ::
Vec3 const* const positionToCheck);
872 MCAPI
bool checkNeedAutoJump(
float inputMoveX,
float inputMoveZ);
874 MCAPI
bool checkSpawnBlock(::
BlockSource const& region) const;
876 MCAPI
void completeUsingItem();
878 MCAPI
void eat(::
ItemStack const& instance);
880 MCAPI
void eat(
int hungerValue,
float saturationModifier);
882 MCAPI
bool equippedArmorItemCanBeMoved(::
ItemStack const& item) const;
884 MCAPI
void fireDimensionChangedEvent(::DimensionType fromDimension, ::DimensionType toDimension);
890 MCAPI ::
Agent* getAgent() const;
892 MCAPI ::SharedTypes::Legacy::LevelSoundEvent getAttackHitSound() const;
894 MCAPI ::SharedTypes::Legacy::LevelSoundEvent getAttackMissSound() const;
896 MCAPI ::
ItemStack const& getCurrentActiveShield() const;
898 MCAPI
float getDestroyProgress(::
Block const& block);
900 MCAPI ::DimensionType getExpectedSpawnDimensionId() const;
902 MCAPI ::
BlockPos const& getExpectedSpawnPosition() const;
904 MCAPI ::
std::
string getInteractText() const;
906 MCAPI
int getItemCooldownLeft(::
HashedString const& category) const;
908 MCAPI_C
float getItemCooldownProgress(::
HashedString const& category) const;
910 MCAPI ::
std::
string getItemInteractText(::
Item const& item) const;
912 MCAPI
float getLuck();
914 MCAPI_C
void getNewEnchantmentSeed();
916 MCAPI ::
AABB getPickupArea() const;
918 MCAPI ::GameType getPlayerGameType() const;
920 MCFOLD ::
ItemStack const& getSelectedItem() const;
922 MCAPI
float getSleepRotation() const;
924 MCAPI
int getXpNeededForNextLevel() const;
926 MCAPI_C
void handleMovePlayerPacket(
935 MCFOLD
bool hasOwnedChunkSource() const;
939 MCAPI
bool hasRespawnPosition() const;
941 MCAPI
bool interact(::Actor& actor, ::
Vec3 const& location);
943 MCAPI
void inventoryChanged(
951 MCAPI_C
bool isEmoting() const;
953 MCAPI
bool isFlying() const;
955 MCAPI
bool isForcedRespawn() const;
957 MCAPI
bool isHiddenFrom(::Mob& target) const;
961 MCAPI
bool isInRaid() const;
963 MCAPI
bool isItemOnCooldown(::
HashedString const& category) const;
965 MCAPI_C
bool isScoping() const;
967 MCAPI
void loadLastDeathLocation(::
CompoundTag const& tag);
969 MCAPI
void playFallOrLandSound(
int expectedDamage, ::
Block const& onBlock, ::
Block const& blockAbove);
971 MCAPI
void playPredictiveSynchronizedSound(
972 ::SharedTypes::Legacy::LevelSoundEvent type,
978 MCAPI
void recheckSpawnPosition();
982 MCAPI
void releaseUsingItem();
984 MCAPI
void resetPlayerLevel();
986 MCAPI
void saveLastDeathLocation(::
CompoundTag& tag) const;
990 MCAPI
void setAgent(::
Agent* agent);
992 MCAPI
void setBedRespawnPosition(::
BlockPos const& bedPosition);
994 MCAPI_C
void setChunkRadius(uint chunkRadius);
998 MCAPI
void setHasDied(
bool hasDied);
1000 MCAPI
void setLastDeathDimension(::DimensionType dimension);
1002 MCAPI
void setLastDeathPos(::
BlockPos pos);
1004 MCAPI_C
void setLastHurtBy(::ActorType lastHurtBy);
1006 MCAPI
void setName(::
std::
string const& newName);
1008 MCAPI
void setPlatformOnlineId(::
std::
string const& platformOnlineId);
1010 MCAPI
void setPlayerUIItem(::PlayerUISlot slot, ::
ItemStack const& item,
bool forceBalance);
1012 MCAPI
void setRespawnPosition(::
BlockPos const& inRespawnPosition, ::DimensionType dimension);
1014 MCAPI
void setRespawnPositionCandidate();
1016 MCAPI
void setSelectedItem(::
ItemStack const& item);
1018 MCAPI ::
ItemStack const& setSelectedSlot(
int slot);
1020 MCAPI
bool setSpawnBlockRespawnPosition(::
BlockPos const& spawnBlockPosition, ::DimensionType dimension);
1022 MCAPI
void startItemCooldown(::
Item const& item,
bool updateClient);
1024 MCAPI
void startItemCooldown(::
HashedString const& type,
int tickDuration,
bool updateClient);
1029 MCAPI
void startUsingItem(::
ItemStack const& instance,
int duration);
1031 MCAPI
void stopGliding();
1035 MCAPI
void stopUsingItem();
1037 MCAPI
bool take(::Actor& actor,
int,
int favoredSlot);
1039 MCAPI
void tickArmor();
1041 MCAPI
bool tryStartGliding();
1045 MCAPI_C
bool updateEmoteMessageData(::
PersonaPiece const& emotePiece);
1047 MCAPI
void updateInventoryTransactions();
1051 MCAPI
void updateTrackedBosses();
1053 MCAPI
void useSelectedItem(::ItemUseMethod itemUseMethod,
bool consumeItem);
1062 ::
Vec3 const& spawnPosition,
1065 bool adjustYToSolidGround,
1067 bool positionFromSave,
1068 bool spawningAtForcedSpawn,
1069 short dimensionHeight
1073 ::
Vec3 const& spawnPosition,
1076 bool adjustYToSolidGround,
1079 bool positionFromSave,
1080 bool spawningAtForcedSpawn,
1081 short dimensionHeight
1084 MCAPI static
bool checkNeedAutoJump(
1088 float movementSpeed,
1095 MCAPI static
bool isDangerousVolumeForSpawn(::
BlockSource& region, ::
AABB const& centeredAABB);
1097 MCAPI_C static
bool isDangerousVolumeForSpawnFromSave(::
BlockSource& region, ::
AABB const& centeredAABB);
1100 isDangerousVolume_DEPRECATED(::
BlockSource& region, ::
AABB const& centeredAABB,
bool checkForLava);
1102 MCAPI static ::Player* tryGetFromEntity(::
EntityContext& entity,
bool includeRemoved);
1105 updatePlayerGameTypeEntityData(::
EntityContext& entity, ::GameType gameType, ::GameType defaultGameType);
1111 MCAPI static
float const& DEFAULT_BB_HEIGHT();
1113 MCAPI static
float const& DEFAULT_BB_WIDTH();
1115 MCAPI static
float const& DEFAULT_PLAYER_EYE_OFFSET();
1117 MCAPI static
float const& DEFAULT_PLAYER_HEIGHT_OFFSET();
1119 MCAPI static
float const& DISTANCE_TO_TRANSFORM_EVENT();
1121 MCAPI_C static
float const& DISTANCE_TO_TRAVELLED_EVENT();
1123 MCAPI static ::
Attribute const& EXHAUSTION();
1125 MCAPI static ::
Attribute const& EXPERIENCE();
1127 MCAPI static
int const& GLIDE_STOP_DELAY();
1129 MCAPI static ::
Attribute const& HUNGER();
1131 MCAPI static ::
Attribute const& LEVEL();
1133 MCAPI static
float const& PLAYER_SLEEPING_HEIGHT();
1135 MCAPI static ::
Attribute const& SATURATION();
1144 ::GameType playerGameType,
1145 bool isHostingPlayer,
1147 ::SubClientId subid,
1149 ::
std::
string const& deviceId,
1150 ::PlayerAuthenticationType authType,
1153 ::
std::
string const& platformId,
1154 ::
std::
string const& platformOnlineId
1167 MCAPI
void $initializeComponents(::ActorInitializationMethod method, ::
VariantParameterList const& params);
1169 MCAPI
void $reloadHardcoded(::ActorInitializationMethod method, ::
VariantParameterList const& params);
1171 MCAPI
void $prepareRegion(::
ChunkSource& mainChunkSource);
1173 MCAPI
void $destroyRegion();
1175 MCAPI
void $suspendRegion();
1177 MCAPI
void $_fireDimensionChanged();
1179 MCAPI
bool $canChangeDimensionsUsingPortal() const;
1181 MCFOLD
void $changeDimensionWithCredits(::DimensionType);
1183 MCAPI
void $tickWorld(::
Tick const&);
1185 MCAPI ::
std::vector<::
ChunkPos> const& $getTickingOffsets() const;
1187 MCAPI
void $normalTick();
1189 MCAPI
void $moveView();
1191 MCAPI
void $moveSpawnView(::
Vec3 const& spawnPosition, ::DimensionType dimensionType);
1193 MCFOLD
void $onSynchedDataUpdate(
int dataId);
1195 MCAPI
void $aiStep();
1197 MCAPI
bool $isFireImmune() const;
1199 MCFOLD
void $checkMovementStats(::
Vec3 const&);
1201 MCFOLD ::
HashedString $getCurrentStructureFeature() const;
1203 MCFOLD
bool $isAutoJumpEnabled() const;
1205 MCAPI ::
Vec3 $getInterpolatedRidingOffset(
float,
int const) const;
1207 MCAPI
void $passengerTick();
1211 MCAPI
void $remove();
1213 MCAPI
void $respawn();
1215 MCAPI
bool $shouldDropDeathLoot() const;
1219 MCAPI
void $dropEquipmentOnDeath();
1221 MCFOLD
void $clearVanishEnchantedItemsOnDeath();
1223 MCAPI
bool $drop(::
ItemStack const& item,
bool const randomly);
1225 MCFOLD
void $resetRot();
1227 MCAPI
void $resetUserPos(::ActorResetRule resetRule);
1229 MCFOLD
bool $isInTrialMode();
1231 MCAPI
void $setSpeed(
float _speed);
1233 MCAPI
int $getItemUseDuration() const;
1235 MCAPI
float $getItemUseStartupProgress() const;
1237 MCAPI
float $getItemUseIntervalProgress() const;
1239 MCAPI
bool $isBlocking() const;
1243 MCAPI
void $handleEntityEvent(::ActorEvent eventId,
int data);
1245 MCAPI ::
std::vector<::
ItemStack const*> $getAllHandEquipment() const;
1247 MCAPI ::
std::vector<::
ItemStack const*> $getAllEquipment() const;
1251 MCAPI ::CommandPermissionLevel $getCommandPermissionLevel() const;
1253 MCAPI
bool $attack(::Actor& actor, ::SharedTypes::Legacy::ActorDamageCause const& cause);
1255 MCFOLD ::
ItemStack const& $getCarriedItem() const;
1257 MCAPI
void $setCarriedItem(::
ItemStack const& item);
1259 MCAPI
void $damageCarriedItemOnAttack(::Actor& target,
float damageDealtToTarget);
1261 MCFOLD
void $openPortfolio();
1263 MCFOLD
void $openBook(
int,
bool,
int, ::
BlockActor*);
1271 MCFOLD
void $openInventory();
1273 MCFOLD
void $displayChatMessage(
1274 ::
std::
string const& author,
1275 ::
std::
string const& message,
1276 ::
std::optional<::
std::
string> const filteredMessage
1280 $displayClientMessage(::
std::
string const& message, ::
std::optional<::
std::
string> const filteredMessage);
1282 MCFOLD
void $displayTextObjectMessage(
1284 ::
std::
string const& fromXuid,
1285 ::
std::
string const& fromPlatformId
1288 MCFOLD
void $displayTextObjectWhisperMessage(
1290 ::
std::
string const& xuid,
1291 ::
std::
string const& platformId
1294 MCFOLD
void $displayTextObjectWhisperMessage(
1295 ::
std::
string const& message,
1296 ::
std::
string const& xuid,
1297 ::
std::
string const& platformId
1300 MCFOLD
void $displayWhisperMessage(
1301 ::
std::
string const& author,
1302 ::
std::
string const& message,
1303 ::
std::optional<::
std::
string> const filteredMessage,
1304 ::
std::
string const& xuid,
1305 ::
std::
string const& platformId
1308 MCAPI
float $getShadowRadius() const;
1310 MCAPI
bool $isSleeping() const;
1312 MCAPI
void $setSleeping(
bool val);
1314 MCAPI ::BedSleepingResult $startSleepInBed(::
BlockPos const& bedBlockPos);
1316 MCAPI
void $stopSleepInBed(
bool forcefulWakeUp,
bool updateLevelList);
1318 MCAPI
bool $canStartSleepInBed();
1320 MCFOLD
void $sendInventory(
bool);
1322 MCFOLD
void $openSign(::
BlockPos const&,
bool);
1324 MCFOLD
void $playEmote(::
std::
string const&,
bool const);
1326 MCAPI
bool $isSilentObserver() const;
1328 MCAPI
void $useItem(::
ItemStackBase& instance, ::ItemUseMethod itemUseMethod,
bool consumeItem);
1330 MCFOLD
bool $isLoading() const;
1332 MCFOLD
bool $isPlayerInitialized() const;
1334 MCFOLD
void $stopLoading();
1336 MCAPI
float $getSpeed() const;
1338 MCAPI
void $setPlayerGameType(::GameType gameType);
1340 MCAPI
void $initHUDContainerManager();
1342 MCAPI
void $emitCriticalHitParticles(::Actor const& target,
int particleCount);
1344 MCAPI
bool $isImmobile() const;
1346 MCFOLD
void $sendMotionPacketIfNeeded();
1350 MCFOLD uint $getUserId() const;
1352 MCAPI
void $addExperience(
int xp);
1354 MCAPI
void $addLevels(
int levels);
1357 MCAPI
void $setArmor(::SharedTypes::Legacy::ArmorSlot slot,
::ItemStack const& item);
1360 MCAPI
void $setOffhandSlot(
::ItemStack const& item);
1362 MCAPI ::std::unique_ptr<::Packet> $tryCreateAddActorPacket();
1366 MCAPI
void $deleteContainerManager();
1368 MCAPI ::ItemStack
const& $getEquippedTotem()
const;
1370 MCAPI
bool $consumeTotem();
1372 MCFOLD
bool $isActorRelevant(::Actor
const&);
1374 MCAPI
float $getMapDecorationRotation()
const;
1377 $teleportTo(
::Vec3 const& pos,
bool shouldStopRiding,
int cause,
int sourceEntityType,
bool keepVelocity);
1379 MCAPI
bool $startRiding(::Actor& vehicle,
bool forceRiding);
1381 MCAPI
void $startSwimming();
1383 MCAPI
void $stopSwimming();
1385 MCFOLD
void $onSuspension();
1387 MCFOLD
void $onLinkedSlotsChanged();
1389 MCFOLD
bool $canBePulledIntoVehicle()
const;
1391 MCAPI
void $feed(
int itemId);
1393 MCFOLD
void $sendNetworkPacket(
::Packet& packet)
const;
1395 MCFOLD
bool $canExistWhenDisallowMob()
const;
1397 MCAPI ::mce::Color $getNameTagTextColor()
const;
1399 MCAPI
bool $canAddPassenger(::Actor& passenger)
const;
1401 MCFOLD
bool $isSimulated()
const;
1403 MCAPI ::std::string $getXuid()
const;
1405 MCAPI ::PlayerMovementSettings
const& $getMovementSettings()
const;
1407 MCAPI
bool $canFreeze()
const;
1409 MCAPI
bool $canInteractWithOtherEntitiesInGame()
const;
1411 MCAPI
bool $canObstructSpawningAndBlockPlacement()
const;
1413 MCAPI ::std::optional<::BlockPos> $getLastDeathPos()
const;
1415 MCAPI ::std::optional<::DimensionType> $getLastDeathDimension()
const;
1417 MCAPI
bool $hasDiedBefore()
const;
1419 MCAPI
void $doEnterWaterSplashEffect();
1421 MCAPI
void $doExitWaterSplashEffect();
1425 MCFOLD uchar $getMaxChunkBuildRadius()
const;
1427 MCAPI
float $causeFallDamageToActor(
float distance,
float multiplier,
::ActorDamageSource source);
1429 MCFOLD
void $setBehaviorCommandStatus(::std::string
const&, ::BehaviorStatus);
1431 MCFOLD
void $setRemotePlayerTicked(
bool);
1433 MCFOLD ::std::unique_ptr<::ISparseContainerSetListener> $createSparseContainerListener();
1435 MCAPI
bool $_hurt(
::ActorDamageSource const& source,
float damage,
bool knock,
bool ignite);
1439 MCAPI
void $addAdditionalSaveData(
::CompoundTag& entityTag)
const;
1441 MCAPI
void $onMovePlayerPacketNormal(
::Vec3 const& pos,
::Vec2 const& rot,
float yHeadRot);
1443 MCAPI
bool $_shouldProvideFeedbackOnHandContainerItemSet(::HandSlot handSlot,
::ItemStack const& item)
const;
1446 MCAPI
bool $_shouldProvideFeedbackOnArmorSet(::SharedTypes::Legacy::ArmorSlot slot,
::ItemStack const& item)
const;
1449 MCAPI ::std::shared_ptr<::ChunkViewSource> $_createChunkSource(
::ChunkSource& mainChunkSource);
1453 MCAPI ::AnimationComponent& $getAnimationComponent();
1455 MCAPI ::HashedString
const& $getActorRendererId()
const;
1457 MCFOLD
void $_serverInitItemStackIds();
1459 MCAPI ::std::unique_ptr<::BodyControl> $initBodyControl();
1467 MCAPI
static void** $vftable();