136class Player :
public ::Mob {
148 enum class SpawnPositionSource :
int {
155 enum class SpawnPositionState :
int {
156 InitializeSpawnPositionRandomizer = 0,
157 WaitForClientAck = 1,
158 DetermineDimension = 2,
160 WaitForDimension = 4,
162 CheckLoadedChunk = 6,
163 ChooseSpawnPosition = 7,
170 enum class Sound :
int {
179 ::ll::TypedStorage<4, 4, ::Player::AttackParameters::Sound> mSound;
180 ::ll::TypedStorage<1, 1, bool> mTriggerCooldown;
181 ::ll::TypedStorage<1, 1, bool> mCanCrit;
189 ::ll::TypedStorage<4, 4, ::DimensionType> mRespawnDimensionId;
190 ::ll::TypedStorage<4, 12, ::Vec3> mActualRespawnPosition;
191 ::ll::TypedStorage<4, 12, ::BlockPos> mRequestedRespawnPosition;
192 ::ll::TypedStorage<1, 1, bool> mHasRespawnPosition;
193 ::ll::TypedStorage<4, 12, ::BlockPos> mSharedSpawnPosition;
194 ::ll::TypedStorage<1, 1, bool> mRespawnReady;
195 ::ll::TypedStorage<4, 12, ::Vec3> mPlayerPos;
196 ::ll::TypedStorage<1, 1, bool> mIsForcedRespawn;
197 ::ll::TypedStorage<1, 1, bool> mIsAdventure;
198 ::ll::TypedStorage<1, 1, bool> mIsFlyingOrNotOverworld;
199 ::ll::TypedStorage<1, 1, bool> mPositionLoadedFromSave;
207 ::ll::TypedStorage<4, 12, ::Vec3> mPosition;
208 ::ll::TypedStorage<4, 4, ::PlayerSpawnFallbackType> mSpawnFallbackType;
216 ::ll::TypedStorage<4, 12, ::Vec3> mPosition;
217 ::ll::TypedStorage<1, 1, bool> mIsAboveLeaves;
225 ::ll::TypedStorage<4, 12, ::BlockPos> mSpawnBlockPos;
226 ::ll::TypedStorage<4, 12, ::BlockPos> mPlayerPosition;
227 ::ll::TypedStorage<4, 4, ::DimensionType> mDimension;
231 using PlayerFlagIDType = schar;
233 using PlayerListenerList = ::std::vector<::PlayerListener*>;
244 LLNDAPI SubClientId
const& getClientSubId()
const;
246 LLNDAPI
int getSelectedItemSlot()
const;
274 LLNDAPI std::optional<NetworkPeer::NetworkStatus> getNetworkStatus()
const;
285 LLAPI
void setAbility(::AbilitiesIndex index,
bool value);
312 LLNDAPI
static Player* tryGetFromEntity(
::EntityContext& entity,
bool includeRemoved);
317 ::ll::TypedStorage<8, 24, ::std::vector<ushort>> mFroglights;
318 ::ll::TypedStorage<4, 4, float const> mSneakHeight;
319 ::ll::TypedStorage<4, 4, float const> mSneakOffset;
320 ::ll::TypedStorage<4, 4, int> mScore;
321 ::ll::TypedStorage<4, 4, ::BuildPlatform> mBuildPlatform;
322 ::ll::TypedStorage<8, 32, ::std::string> mUniqueName;
323 ::ll::TypedStorage<8, 32, ::std::string> mServerId;
324 ::ll::TypedStorage<8, 32, ::std::string> mSelfSignedId;
325 ::ll::TypedStorage<8, 32, ::std::string> mPlatformOfflineId;
326 ::ll::TypedStorage<8, 8, uint64> mClientRandomId;
327 ::ll::TypedStorage<8, 32, ::std::string> mPlatformId;
328 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPendingVehicleID;
329 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPendingLeftShoulderPassengerID;
330 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPendingRightShoulderPassengerID;
331 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mInteractTarget;
332 ::ll::TypedStorage<4, 12, ::Vec3> mInteractTargetPos;
333 ::ll::TypedStorage<1, 1, bool> mHasFakeInventory;
334 ::ll::TypedStorage<1, 1, bool> mIsRegionSuspended;
335 ::ll::TypedStorage<1, 1, bool> mUpdateMobs;
336 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ChunkViewSource>> mChunkSource;
337 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ChunkViewSource>> mSpawnChunkSource;
338 ::ll::TypedStorage<4, 12, ::Vec3> mCapePosO;
339 ::ll::TypedStorage<4, 12, ::Vec3> mCapePos;
340 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ContainerManagerModel>> mContainerManager;
347 mContainerManagerSubscribers;
348 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PlayerInventory>> mInventory;
349 ::ll::TypedStorage<4, 20, ::InventoryOptions> mInventoryOptions;
350 ::ll::TypedStorage<4, 12, ::FurnaceOptions> mFurnaceOptions;
351 ::ll::TypedStorage<4, 12, ::FurnaceOptions> mBlastFurnaceOptions;
352 ::ll::TypedStorage<4, 12, ::FurnaceOptions> mSmokerOptions;
353 ::ll::TypedStorage<4, 4, float> mDistanceSinceTransformEvent;
354 ::ll::TypedStorage<8, 24, ::std::vector<::ItemInstance>> mCreativeItemList;
355 ::ll::TypedStorage<8, 32, ::std::string> mPlatformOnlineId;
356 ::ll::TypedStorage<4, 4, ::Player::SpawnPositionState> mSpawnPositionState;
357 ::ll::TypedStorage<4, 4, ::Player::SpawnPositionSource> mSpawnPositionSource;
358 ::ll::TypedStorage<4, 12, ::Vec3> mSpawnPositioningTestPosition;
359 ::ll::TypedStorage<4, 4, uint> mRespawnChunkBuilderPolicyHandle;
360 ::ll::TypedStorage<4, 64, ::Player::CachedSpawnData> mCachedSpawnData;
361 ::ll::TypedStorage<8, 16, ::OwnerPtr<::BlockSource>> mSpawnBlockSource;
362 ::ll::TypedStorage<8, 56, ::Stopwatch> mRespawnStopwatch_Searching;
363 ::ll::TypedStorage<4, 12, ::Vec3> mRespawnOriginalPosition;
364 ::ll::TypedStorage<4, 4, ::DimensionType> mRespawnOriginalDimension;
365 ::ll::TypedStorage<8, 32, ::std::string> mRespawnMessage;
366 ::ll::TypedStorage<1, 1, bool> mRespawnReady;
367 ::ll::TypedStorage<1, 1, bool> mIsInitialSpawnDone;
368 ::ll::TypedStorage<1, 1, bool> mRespawningFromTheEnd;
369 ::ll::TypedStorage<1, 1, bool> mPositionLoadedFromSave;
370 ::ll::TypedStorage<1, 1, bool> mBlockRespawnUntilClientMessage;
371 ::ll::TypedStorage<1, 1, bool> mHasSeenCredits;
372 ::ll::TypedStorage<4, 8, ::std::optional<::PlayerSpawnFallbackType>> mSpawnFallbackType;
373 ::ll::TypedStorage<4, 16, ::std::optional<::Vec3>> mSpawnFallbackPosition;
374 ::ll::TypedStorage<8, 168, ::PlayerItemInUse> mItemInUse;
375 ::ll::TypedStorage<4, 4, ::ActorType> mLastHurtBy;
376 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPreviousInteractEntity;
377 ::ll::TypedStorage<4, 4, int> mPreviousCarriedItem;
378 ::ll::TypedStorage<4, 4, int> mEmoteTicks;
379 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::NetworkChunkPublisher>> mChunkPublisherView;
380 ::ll::TypedStorage<8, 8, ::PacketSender&> mPacketSender;
381 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::HudContainerManagerModel>> mHudContainerManagerModel;
382 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::EnderChestContainer>> mEnderChestInventory;
383 ::ll::TypedStorage<8, 24, ::std::vector<::ActorUniqueID>> mTrackedBossIDs;
384 ::ll::TypedStorage<8, 136, ::ItemGroup> mCursorSelectedItemGroup;
385 ::ll::TypedStorage<8, 440, ::PlayerUIContainer> mPlayerUIContainer;
386 ::ll::TypedStorage<8, 48, ::InventoryTransactionManager> mTransactionManager;
387 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::GameMode>> mGameMode;
388 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PlayerRespawnRandomizer>> mSpawnRandomizer;
389 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::SerializedSkinRef>> mSkin;
390 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ItemStackNetManagerBase>> mItemStackNetManager;
391 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::AnimationComponent>> mUIAnimationComponent;
392 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::AnimationComponent>> mMapAnimationComponent;
393 ::ll::TypedStorage<4, 28, ::Player::PlayerSpawnPoint> mPlayerRespawnPoint;
394 ::ll::TypedStorage<4, 4, float> mServerBuildRatio;
395 ::ll::TypedStorage<1, 1, ::SubClientId> mClientId;
396 ::ll::TypedStorage<1, 1, bool> mInteractDataDirty;
397 ::ll::TypedStorage<1, 1, bool> mShouldClientGenerateChunks;
398 ::ll::TypedStorage<8, 24, ::std::vector<::BiomeIdType>> mOceanBiomes;
399 ::ll::TypedStorage<1, 1, bool> mUseMapAnimationComponent;
400 ::ll::TypedStorage<1, 1, bool> mIsDeferredRenderingFirstPersonObjects;
401 ::ll::TypedStorage<1, 1, bool> mDestroyingBlock;
402 ::ll::TypedStorage<1, 1, bool> mPlayerLevelChanged;
403 ::ll::TypedStorage<4, 4, int> mPreviousLevelRequirement;
404 ::ll::TypedStorage<4, 4, int> mLastLevelUpTime;
405 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::AnimationComponent>> mFirstPersonAnimationComponent;
406 ::ll::TypedStorage<8, 24, ::std::vector<::PlayerListener*>> mListeners;
407 ::ll::TypedStorage<4, 12, ::Vec3> mRespawnPositionCandidate;
408 ::ll::TypedStorage<4, 12, ::Vec3> mPreDimensionTransferSpawnPosition;
409 ::ll::TypedStorage<4, 4, int> mEnchantmentSeed;
410 ::ll::TypedStorage<8, 24, ::std::vector<uint>> mOnScreenAnimationTextures;
411 ::ll::TypedStorage<4, 4, int> mOnScreenAnimationTicks;
412 ::ll::TypedStorage<4, 4, uint> mChunkRadius;
413 ::ll::TypedStorage<4, 4, int> mMapIndex;
414 ::ll::TypedStorage<4, 4, float> mElytraVolume;
415 ::ll::TypedStorage<8, 8, uint64> mElytraLoop;
416 ::ll::TypedStorage<8, 8, int64> mStartedBlockingTimeStamp;
417 ::ll::TypedStorage<8, 8, int64> mBlockedUsingShieldTimeStamp;
418 ::ll::TypedStorage<8, 8, int64> mBlockedUsingDamagedShieldTimeStamp;
419 ::ll::TypedStorage<8, 32, ::std::string> mName;
420 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mChatNamePrefix;
421 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mChatNameSuffix;
422 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mChatMessagePrefix;
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 dimension);
464 virtual
void tickWorld(::
Tick const& currentTick);
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& d);
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
id,
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 ::
ActorHurtResult 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 bookSlot,
bool editable,
int page, ::
BlockActor* lectern);
548 virtual
void openTrading(::
ActorUniqueID const& uniqueID,
bool useNewScreen);
553 virtual void openNpcInteractScreen(::std::shared_ptr<::INpcDialogueData> npc);
555 virtual void openNpcInteractScreen(::std::shared_ptr<::INpcDialogueData> data);
558 virtual void openInventory();
560 virtual void displayChatMessage(
561 ::std::string
const& author,
562 ::std::string
const& message,
563 ::std::optional<::std::string>
const filteredMessage
567 displayClientMessage(::std::string
const& message, ::std::optional<::std::string>
const filteredMessage);
569 virtual void displayTextObjectMessage(
571 ::std::string
const& fromXuid,
572 ::std::string
const& fromPlatformId
575 virtual void displayTextObjectWhisperMessage(
577 ::std::string
const& xuid,
578 ::std::string
const& platformId
581 virtual void displayTextObjectWhisperMessage(
582 ::std::string
const& message,
583 ::std::string
const& xuid,
584 ::std::string
const& platformId
587 virtual void displayWhisperMessage(
588 ::std::string
const& author,
589 ::std::string
const& message,
590 ::std::optional<::std::string>
const filteredMessage,
591 ::std::string
const& xuid,
592 ::std::string
const& platformId
595 virtual float getShadowRadius() const ;
597 virtual
bool isSleeping() const ;
599 virtual
void setSleeping(
bool val) ;
601 virtual ::BedSleepingResult startSleepInBed(::
BlockPos const& bedBlockPos);
603 virtual
void stopSleepInBed(
bool forcefulWakeUp,
bool updateLevelList);
605 virtual
bool canStartSleepInBed();
607 virtual
void sendInventory(
bool shouldSelectSlot) ;
609 virtual
void openSign(::
BlockPos const& position,
bool isFrontSide);
611 virtual
void playEmote(::
std::
string const& pieceId,
bool const playChatMessage);
613 virtual
bool isSilentObserver() const ;
615 virtual
void useItem(::
ItemStackBase& instance, ::ItemUseMethod itemUseMethod,
bool consumeItem) ;
617 virtual
bool isLoading() const;
619 virtual
bool isPlayerInitialized() const;
621 virtual
void stopLoading();
623 virtual
float getSpeed() const ;
625 virtual
void setPlayerGameType(::GameType gameType);
627 virtual
void initHUDContainerManager();
629 virtual
void emitCriticalHitParticles(::Actor const& target,
int particleCount);
631 virtual
bool isImmobile() const ;
633 virtual
void sendMotionPacketIfNeeded() ;
637 virtual uint getUserId() const;
639 virtual
void addExperience(
int xp);
641 virtual
void addLevels(
int levels);
643 virtual
void setArmor(::SharedTypes::Legacy::ArmorSlot slot, ::
ItemStack const& item) ;
645 virtual
void setOffhandSlot(::
ItemStack const& item) ;
647 virtual ::
std::unique_ptr<::
Packet> tryCreateAddActorPacket() ;
657 virtual
void deleteContainerManager();
659 virtual ::
ItemStack const& getEquippedTotem() const ;
661 virtual
bool consumeTotem() ;
663 virtual
bool isActorRelevant(::Actor const& actor);
665 virtual
float getMapDecorationRotation() const ;
667 virtual
void teleportTo(
669 bool shouldStopRiding,
671 int sourceEntityType,
675 virtual
bool startRiding(::Actor& vehicle,
bool forceRiding) ;
677 virtual
void startSwimming() ;
679 virtual
void stopSwimming() ;
681 virtual
bool isTeacher() const = 0;
683 virtual
void onSuspension();
685 virtual
void onLinkedSlotsChanged();
687 virtual
bool canBePulledIntoVehicle() const ;
689 virtual
void feed(
int itemId) ;
696 virtual
void sendNetworkPacket(::
Packet& packet) const;
698 virtual
bool canExistWhenDisallowMob() const ;
700 virtual ::mce::Color getNameTagTextColor() const ;
702 virtual
bool canAddPassenger(::Actor& passenger) const ;
706 virtual
bool isSimulated() const;
708 virtual ::
std::
string getXuid() const;
712 virtual
bool canFreeze() const ;
714 virtual
bool canInteractWithOtherEntitiesInGame() const ;
716 virtual
bool canObstructSpawningAndBlockPlacement() const ;
718 virtual ::
std::optional<::
BlockPos> getLastDeathPos() const ;
720 virtual ::
std::optional<::DimensionType> getLastDeathDimension() const ;
722 virtual
bool hasDiedBefore() const ;
724 virtual
void doEnterWaterSplashEffect() ;
726 virtual
void doExitWaterSplashEffect() ;
730 virtual
void requestMissingSubChunk(::
SubChunkPos const& scp);
732 virtual uchar getMaxChunkBuildRadius() const;
734 virtual
float causeFallDamageToActor(
float distance,
float multiplier, ::
ActorDamageSource source) ;
736 virtual
void setBehaviorCommandStatus(::
std::
string const& name, ::BehaviorStatus status);
739 virtual void setRemotePlayerTicked(
bool);
741 virtual void setRemotePlayerTicked(
bool ticked);
744 virtual ::std::unique_ptr<::ISparseContainerSetListener> createSparseContainerListener();
746 virtual ::ActorHurtResult
751 virtual void addAdditionalSaveData(
::CompoundTag& entityTag)
const ;
753 virtual void onMovePlayerPacketNormal(
::Vec3 const& pos,
::Vec2 const& rot,
float yHeadRot);
755 virtual bool _shouldProvideFeedbackOnHandContainerItemSet(::HandSlot handSlot,
::ItemStack const& item)
const
758 virtual bool _shouldProvideFeedbackOnArmorSet(::SharedTypes::Legacy::ArmorSlot slot,
::ItemStack const& item)
const
761 virtual ::std::shared_ptr<::ChunkViewSource> _createChunkSource(
::ChunkSource& mainChunkSource);
765 virtual ::AnimationComponent& getAnimationComponent() ;
767 virtual ::HashedString
const& getActorRendererId() const ;
769 virtual ::Bedrock::NonOwnerPointer<::Editor::IEditorPlayer> getEditorPlayer() const = 0;
771 virtual
void destroyEditorPlayer() = 0;
773 virtual
void _serverInitItemStackIds() ;
784 ::GameType playerGameType,
785 bool isHostingPlayer,
789 ::
std::
string const& deviceId,
790 ::PlayerAuthenticationType authType,
793 ::
std::
string const& platformId,
794 ::
std::
string const& platformOnlineId
797 MCAPI
void _addLevels(
int levels);
801 MCAPI
bool _canChangeGameType(::GameType newGameType) const;
803 MCAPI
bool _checkAndFixSpawnPosition(
804 ::
Vec3& spawnPosition,
806 bool adjustYToSolidGround,
808 bool positionFromSave
811 MCAPI
void _checkMovementShouldStopEmoting();
813 MCAPI
void _chooseSpawnArea();
815 MCAPI
bool _chooseSpawnPositionWithinArea();
817 MCAPI
bool _findFallbackSpawnPosition(
818 ::
Vec3& spawnPosition,
821 bool checkStoredFallback
824 MCAPI
void _fireWillChangeDimension();
826 MCAPI
bool _fixup4JBedSpawnPosition(::
Vec3& pos);
828 MCAPI
void _handleCarriedItemInteractText();
830 MCAPI
bool _isChunkSourceLoaded(::
Vec3 const& spawnPosition, ::
BlockSource const& region) const;
832 MCAPI
void _loadBlastFurnaceOptions(::
CompoundTag const& tag);
834 MCAPI
void _loadFurnaceOptions(::
CompoundTag const& tag);
836 MCAPI
void _loadInventoryOptions(::
CompoundTag const& tag);
838 MCAPI
void _loadSmokerOptions(::
CompoundTag const& tag);
840 MCAPI
void _preSpawnBuildSpawnDataCache();
842 MCAPI
void _registerElytraLoopSound();
844 MCAPI
void _registerPlayerAttributes();
846 MCAPI
void _resetClientAnimations();
848 MCAPI
void _saveInventoryOptions(::
CompoundTag& tag) const;
850 MCAPI
void _sendShieldUpdatePacket(
854 ::ContainerID container,
858 MCAPI
void _setPlayerGameType(::GameType gameType);
860 MCAPI
void _setPreDimensionTransferSpawnPosition(::
Vec3 pos);
863 MCAPI
void _setStartedBlockingTimeStamp(int64 timeStamp);
866 MCAPI
bool _shouldCrit(::Actor
const& target)
const;
868 MCAPI
void _tickItemCooldowns();
870 MCAPI
bool _updateFroglightCountAndTestForAchievement(
::ItemStack const& oldItem,
::ItemStack const& newItem);
872 MCAPI
void _updateInteraction();
874 MCAPI
bool _validateSpawnPositionAvailability(
877 ::Vec3 const*
const AABBoffset
884 MCAPI ::ActorHurtResult attack(
886 ::SharedTypes::Legacy::ActorDamageCause
const& cause,
890 MCAPI
void broadcastPlayerSpawnedMobEvent(::ActorType spawnedType, ::MobSpawnMethod spawnMethod);
892 MCAPI
bool canBeSeenOnMap()
const;
894 MCAPI
bool canJump();
896 MCAPI
bool canOpenContainerScreen();
898 MCAPI
bool canSleep()
const;
900 MCAPI
bool canStackInOffhand(
::ItemStack const& item)
const;
902 MCAPI
bool canUseAbility(::AbilitiesIndex abilityIndex)
const;
904 MCAPI
bool canUseOperatorBlocks()
const;
906 MCAPI
void causeFoodExhaustion(
float exhaustionAmount);
910 MCAPI
bool checkNeedAutoJump(
float inputMoveX,
float inputMoveZ);
912 MCAPI
bool checkSpawnBlock(
::BlockSource const& region)
const;
914 MCAPI
void clearRespawnPosition();
916 MCAPI
void completeUsingItem();
919 MCAPI
void crackBlock(
::BlockPos const& pos, uchar face);
924 MCAPI
void eat(
int hungerValue,
float saturationModifier);
926 MCAPI
bool equippedArmorItemCanBeMoved(
::ItemStack const& item)
const;
928 MCAPI
void fireDimensionChangedEvent(::DimensionType fromDimension, ::DimensionType toDimension);
930 MCAPI
bool forceAllowEating()
const;
932 MCFOLD ::LayeredAbilities
const& getAbilities()
const;
934 MCFOLD ::LayeredAbilities& getAbilities();
936 MCAPI ::Agent* getAgent()
const;
938 MCAPI ::ActorUniqueID getAgentID()
const;
940 MCAPI ::Agent* getAgentIfAllowed(
bool callerCanAccessOtherAgents,
::ActorUniqueID callerAgentID)
const;
942 MCAPI ::SharedTypes::Legacy::LevelSoundEvent getAttackHitSound()
const;
944 MCAPI ::SharedTypes::Legacy::LevelSoundEvent getAttackMissSound()
const;
946 MCFOLD ::BlockPos
const& getBedPosition()
const;
949 MCAPI ::FurnaceOptions
const& getBlastFurnaceOptions()
const;
952 MCAPI int64 getBlockedUsingDamagedShieldTimeStamp()
const;
954 MCAPI int64 getBlockedUsingShieldTimeStamp()
const;
956 MCAPI int64 getBlockingStartTimeStamp()
const;
958 MCAPI ::Vec3 getCapePos(
float a);
960 MCAPI ::std::string getChatDisplayName()
const;
962 MCAPI ::std::optional<::std::string>
const& getChatMessagePrefix()
const;
964 MCAPI ::std::optional<::std::string>
const& getChatNamePrefix()
const;
966 MCAPI ::std::optional<::std::string>
const& getChatNameSuffix()
const;
968 MCAPI uint getChunkRadius()
const;
970 MCFOLD ::std::weak_ptr<::IContainerManager> getContainerManager()
const;
973 MCFOLD ::std::weak_ptr<::ContainerManagerModel> getContainerManagerModel()
const;
976 MCAPI ::gsl::not_null<::StackRefResult<::IContainerRegistryAccess>> getContainerRegistryAccess()
const;
978 MCAPI ::gsl::not_null<::StackRefResult<::IContainerRegistryTracker>> getContainerRegistryTracker()
const;
981 MCAPI ::std::vector<::ItemInstance>
const& getCreativeItemList()
const;
984 MCAPI ::ItemStack
const& getCurrentActiveShield()
const;
987 MCAPI uint getCurrentOnScreenAnimationEffectID()
const;
990 MCAPI
float getDestroyProgress(
::Block const& block);
992 MCAPI
int getDirection()
const;
994 MCAPI ::gsl::not_null<::StackRefResult<::IDynamicContainerSerialization>> getDynamicContainerSerialization()
const;
996 MCAPI
int getEnchantmentSeed()
const;
998 MCAPI ::DimensionType getExpectedSpawnDimensionId()
const;
1000 MCAPI ::BlockPos
const& getExpectedSpawnPosition()
const;
1003 MCAPI ::FurnaceOptions
const& getFurnaceOptions()
const;
1006 MCAPI ::GameMode& getGameMode()
const;
1009 MCAPI ::std::weak_ptr<::HudContainerManagerModel> getHudContainerManagerModel()
const;
1012 MCAPI ::std::string getInteractText()
const;
1015 MCAPI ::std::string
const& getInteractTextKey()
const;
1018 MCAPI ::Container& getInventory();
1021 MCAPI ::InventoryOptions
const& getInventoryOptions()
const;
1024 MCAPI ::ItemStack
const& getItem(
int slot)
const;
1026 MCAPI
int getItemCooldownLeft(
::HashedString const& category)
const;
1028 MCAPI
int getItemCooldownLeft(uint64 categoryHash)
const;
1031 MCAPI
float getItemCooldownProgress(
::HashedString const& category)
const;
1034 MCFOLD ::ItemStack
const& getItemInUse()
const;
1036 MCAPI
int getItemInUseSlot()
const;
1038 MCAPI ::std::string getItemInteractText(
::Item const& item)
const;
1040 MCFOLD ::ItemStackNetManagerBase
const* getItemStackNetManager()
const;
1042 MCFOLD ::ItemStackNetManagerBase* getItemStackNetManager();
1045 MCAPI ::ActorType getLastHurtBy()
const;
1047 MCAPI
float getLevelProgress()
const;
1050 MCAPI
float getLuck();
1052 MCAPI
int getMapIndex();
1054 MCAPI
int getMaxItemCooldownLeft()
const;
1056 MCAPI ::std::string
const& getName()
const;
1058 MCAPI
void getNewEnchantmentSeed();
1061 MCFOLD ::std::vector<::BiomeIdType>& getOceanBiomes();
1063 MCAPI
int getOnScreenAnimationTicks()
const;
1066 MCAPI ::AABB getPickupArea()
const;
1068 MCAPI ::BuildPlatform getPlatform()
const;
1070 MCAPI ::std::string
const& getPlatformOnlineId()
const;
1072 MCAPI ::GameType getPlayerGameType()
const;
1074 MCAPI
int getPlayerIndex()
const;
1076 MCAPI
int getPlayerLevel()
const;
1078 MCAPI ::PlayerPermissionLevel getPlayerPermissionLevel()
const;
1080 MCAPI ::std::string
const& getPlayerSessionId()
const;
1082 MCAPI ::ItemStack
const& getPlayerUIItem(::PlayerUISlot slot);
1084 MCFOLD ::BlockPos
const& getRespawnAnchorPosition()
const;
1086 MCFOLD ::ItemStack
const& getSelectedItem()
const;
1088 MCAPI ::SerializedSkinRef
const& getSkin()
const;
1090 MCAPI
float getSleepRotation()
const;
1093 MCAPI ::FurnaceOptions
const& getSmokerOptions()
const;
1096 MCAPI ::DimensionType getSpawnDimension()
const;
1098 MCAPI ::BlockPos
const& getSpawnPosition()
const;
1100 MCFOLD ::PlayerInventory
const& getSupplies()
const;
1102 MCFOLD ::PlayerInventory& getSupplies();
1105 MCAPI
int getTicksUsingItem()
const;
1108 MCAPI ::std::vector<::ActorUniqueID>
const& getTrackedBosses()
const;
1110 MCAPI
bool getUsedPotion();
1112 MCAPI
int getXpEarnedAtCurrentLevel()
const;
1114 MCAPI uint getXpNeededForLevelRange(
int startlevel,
int endlevel)
const;
1116 MCAPI
int getXpNeededForNextLevel()
const;
1119 MCAPI
void handleMovePlayerPacket(
1120 ::PlayerPositionModeComponent::PositionMode mode,
1125 int sourceEntityType
1129 MCAPI
bool hasBedPosition()
const;
1131 MCAPI
bool hasOpenContainer()
const;
1133 MCAPI
bool hasOpenContainerOfContainerType(::SharedTypes::Legacy::ContainerType containerType)
const;
1135 MCAPI
bool hasOwnedChunkSource()
const;
1139 MCAPI
bool hasRespawnAnchorPosition()
const;
1141 MCFOLD
bool hasRespawnPosition()
const;
1144 MCFOLD
bool hasSleepFlagSet();
1147 MCAPI ::InteractionResult interact(::Actor& actor,
::Vec3 const& location);
1149 MCAPI
void inventoryChanged(
1157 MCAPI
bool is2DPositionRelevant(::DimensionType dimension,
::BlockPos const& position);
1160 MCAPI
bool isCrawling();
1163 MCAPI
bool isCurrentSkinTrusted()
const;
1166 MCAPI
bool isEmoteMessageEasterEgg()
const;
1169 MCAPI
bool isEmoting()
const;
1171 MCAPI
bool isEquipmentHidden()
const;
1173 MCAPI
bool isFlying()
const;
1175 MCAPI
bool isForcedRespawn()
const;
1177 MCAPI
bool isHiddenFrom(::Mob& target)
const;
1179 MCAPI
bool isHostingPlayer()
const;
1181 MCAPI
bool isHungry()
const;
1183 MCAPI
bool isHurt();
1185 MCAPI
bool isInRaid()
const;
1187 MCAPI
bool isItemOnCooldown(
::HashedString const& category)
const;
1189 MCAPI
bool isItemOnCooldown(
::Item const& item)
const;
1191 MCAPI
bool isRespawningFromTheEnd()
const;
1194 MCAPI
bool isScoping()
const;
1197 MCAPI
bool isSleepingLongEnough()
const;
1199 MCAPI
bool isSpawned()
const;
1201 MCAPI
bool isUsingItem()
const;
1203 MCFOLD
bool isValidSpawn()
const;
1210 MCAPI
void onResetBAI(
int);
1213 MCAPI
void passengerCheckMovementStats();
1215 MCAPI
void playFallOrLandSound(
int expectedDamage,
::Block const& onBlock,
::Block const& blockAbove);
1217 MCAPI
void playPredictiveSynchronizedSound(
1218 ::SharedTypes::Legacy::LevelSoundEvent type,
1225 MCAPI
void queueOnScreenTextureAnimation(uint effectID);
1228 MCAPI
void recheckSpawnPosition();
1232 MCAPI
void releaseUsingItem();
1238 MCAPI
void resendAllChunks();
1241 MCAPI
void resetEmoteMessageData();
1243 MCAPI
void resetOnScreenAnimationTicks();
1246 MCAPI
void resetPlayerLevel();
1248 MCAPI
void resetPublisherInitialSpawn();
1250 MCAPI
void resetToDefaultGameMode();
1256 MCAPI
void sendPlayerTeleported();
1258 MCAPI
void sendSpawnExperienceOrbPacketToServer(
::Vec3 const& pos,
int count);
1260 MCAPI
void setAgent(
::Agent* agent);
1262 MCAPI
void setBedRespawnPosition(
::BlockPos const& bedPosition);
1268 MCAPI
void setBlockRespawnUntilClientMessage(
bool val);
1270 MCAPI
void setChatMessagePrefix(::std::optional<::std::string> prefix);
1272 MCAPI
void setChatNamePrefix(::std::optional<::std::string> prefix);
1274 MCAPI
void setChatNameSuffix(::std::optional<::std::string> suffix);
1276 MCAPI
void setChunkRadius(uint chunkRadius);
1278 MCAPI
void setCommandPermissions(::CommandPermissionLevel permissions);
1280 MCAPI
void setContainerManagerModel(::std::shared_ptr<::ContainerManagerModel> manager);
1282 MCAPI
void setCursorSelectedItem(
::ItemStack const& item);
1284 MCAPI
void setCursorSelectedItemGroup(
::ItemGroup const& itemGroup);
1286 MCAPI
void setEmotingStatus(uint emoteTicks);
1288 MCAPI
void setEnchantmentSeed(
int newSeed);
1294 MCAPI
void setHasSeenCredits(
bool value);
1299 MCAPI
void setIsDeferredRenderingFirstPersonObjects(
bool isRenderingDeferredFirstPersonObjects);
1302 MCAPI
void setItem(
::ItemStack const& item,
int slot);
1305 MCAPI
void setLastHurtBy(::ActorType lastHurtBy);
1308 MCAPI
void setMapIndex(
int mapIndex);
1310 MCAPI
void setName(::std::string
const& newName);
1313 MCAPI
void setPlatform(::BuildPlatform platform);
1316 MCAPI
void setPlatformOnlineId(::std::string
const& platformOnlineId);
1318 MCAPI
void setPlayerIndex(
int index);
1320 MCAPI
void setPlayerUIItem(::PlayerUISlot slot,
::ItemStack const& item,
bool forceBalance);
1322 MCAPI
void setRespawnPosition(
::BlockPos const& inRespawnPosition, ::DimensionType dimension);
1326 setRespawnPosition(
::BlockPos const& respawnPosition, ::DimensionType dimension,
::BlockPos const& spawnBlockPos);
1329 MCAPI
void setRespawnPositionCandidate();
1331 MCAPI
void setRespawnReady(
::Vec3 const& respawnPosition);
1333 MCAPI
void setSelectedItem(
::ItemStack const& item);
1335 MCAPI ::ItemStack
const& setSelectedSlot(
int slot);
1341 MCAPI
bool setSpawnBlockRespawnPosition(
::BlockPos const& spawnBlockPosition, ::DimensionType dimension);
1343 MCAPI
void setUsedPotion(
bool used);
1345 MCAPI
bool shouldShowCredits()
const;
1347 MCAPI
void startDestroying();
1349 MCAPI
void startGliding();
1351 MCAPI
void startItemCooldown(
::Item const& item,
bool updateClient);
1353 MCAPI
void startItemCooldown(
::HashedString const& type,
int tickDuration,
bool updateClient);
1358 MCAPI
void startUsingItem(
::ItemStack const& instance,
int duration);
1360 MCAPI
void stopDestroying();
1362 MCAPI
void stopGliding();
1366 MCAPI
void stopUsingItem();
1368 MCAPI
bool take(::Actor& actor,
int favoredSlot,
int);
1370 MCAPI
void tickArmor();
1372 MCAPI
void tryDisableShield();
1374 MCAPI
bool tryStartGliding();
1381 MCAPI
bool updateEmoteMessageData(
::PersonaPiece const& emotePiece);
1384 MCAPI
void updateInventoryTransactions();
1388 MCAPI
void updateTouch();
1390 MCAPI
void updateTrackedBosses();
1393 MCAPI
void useMapAnimationComponent(
bool InMap);
1396 MCAPI
void useSelectedItem(::ItemUseMethod itemUseMethod,
bool consumeItem);
1403 MCAPI static ::PlayerSpawnFallbackType
1404 _findSpawnFallbackType(
::Vec3 const& spawnPosition, ::gsl::not_null<::BlockSource*>& region);
1407 MCAPI
static bool _isDangerousBlockForSpawn(
::Block const& block);
1409 MCAPI
static bool _isDangerousBlock_DEPRECATED(
::Block const& block,
bool checkForLava);
1412 MCAPI static ::std::optional<::Player::FixedSpawnPositionData> checkAndFixSpawnPosition(
1413 ::Vec3 const& spawnPosition,
1414 ::std::vector<::gsl::not_null<::BlockSource*>> regions,
1416 bool adjustYToSolidGround,
1418 bool positionFromSave,
1419 bool spawningAtForcedSpawn,
1420 short dimensionHeight
1424 MCAPI static ::std::optional<::Player::FixedSpawnPositionData_DEPRECATED> checkAndFixSpawnPosition_DEPRECATED(
1425 ::Vec3 const& spawnPosition,
1426 ::std::vector<::gsl::not_null<::BlockSource*>> regions,
1428 bool adjustYToSolidGround,
1430 bool positionFromSave,
1431 bool spawningAtForcedSpawn,
1432 bool dimensionHeight,
1436 MCAPI
static bool checkNeedAutoJump(
1440 float movementSpeed,
1447 MCAPI static ::std::optional<::SharedTypes::Legacy::LevelSoundEvent>
1448 getCustomHurtSound(::Mob
const& mob, ::SharedTypes::Legacy::ActorDamageCause cause);
1450 MCAPI
static bool isDangerousVolumeForSpawn(
::BlockSource& region,
::AABB const& centeredAABB);
1452 MCFOLD static ::Player
const*
1455 MCFOLD static ::Player*
1461 updatePlayerGameTypeEntityData(
::EntityContext& entity, ::GameType gameType, ::GameType defaultGameType);
1467 MCAPI
static float const& DEFAULT_BB_HEIGHT();
1469 MCAPI
static float const& DEFAULT_BB_WIDTH();
1471 MCAPI
static float const& DEFAULT_PLAYER_EYE_OFFSET();
1473 MCAPI
static float const& DEFAULT_PLAYER_HEIGHT_OFFSET();
1475 MCAPI
static float const& DISTANCE_TO_TRANSFORM_EVENT();
1477 MCAPI
static float const& DISTANCE_TO_TRAVELLED_EVENT();
1479 MCAPI static ::Attribute
const& EXHAUSTION();
1481 MCAPI static ::Attribute
const& EXPERIENCE();
1483 MCAPI
static int const& GLIDE_STOP_DELAY();
1485 MCAPI static ::Attribute
const& HUNGER();
1487 MCAPI static ::Attribute
const& LEVEL();
1489 MCAPI
static float const& PLAYER_SLEEPING_HEIGHT();
1491 MCAPI static ::Attribute
const& SATURATION();
1500 ::GameType playerGameType,
1501 bool isHostingPlayer,
1503 ::SubClientId subid,
1505 ::std::string
const& deviceId,
1506 ::PlayerAuthenticationType authType,
1509 ::std::string
const& platformId,
1510 ::std::string
const& platformOnlineId
1523 MCAPI
void $initializeComponents(::ActorInitializationMethod method,
::VariantParameterList const& params);
1529 MCAPI
void $destroyRegion();
1531 MCAPI
void $suspendRegion();
1533 MCAPI
void $_fireDimensionChanged();
1535 MCAPI
bool $canChangeDimensionsUsingPortal()
const;
1537 MCFOLD
void $changeDimensionWithCredits(::DimensionType dimension);
1539 MCAPI
void $tickWorld(
::Tick const& currentTick);
1541 MCAPI ::std::vector<::ChunkPos>
const& $getTickingOffsets()
const;
1543 MCAPI
void $normalTick();
1545 MCAPI
void $moveView();
1547 MCAPI
void $moveSpawnView(
::Vec3 const& spawnPosition, ::DimensionType dimensionType);
1549 MCFOLD
void $onSynchedDataUpdate(
int dataId);
1551 MCAPI
void $aiStep();
1553 MCAPI
bool $isFireImmune()
const;
1555 MCFOLD
void $checkMovementStats(
::Vec3 const& d);
1557 MCFOLD ::HashedString $getCurrentStructureFeature()
const;
1559 MCFOLD
bool $isAutoJumpEnabled()
const;
1561 MCAPI ::Vec3 $getInterpolatedRidingOffset(
float,
int const)
const;
1563 MCAPI
void $passengerTick();
1567 MCAPI
void $remove();
1569 MCAPI
void $respawn();
1571 MCAPI
bool $shouldDropDeathLoot()
const;
1575 MCAPI
void $dropEquipmentOnDeath();
1577 MCFOLD
void $clearVanishEnchantedItemsOnDeath();
1579 MCAPI
bool $drop(
::ItemStack const& item,
bool const randomly);
1581 MCFOLD
void $resetRot();
1583 MCAPI
void $resetUserPos(::ActorResetRule resetRule);
1585 MCFOLD
bool $isInTrialMode();
1587 MCAPI
void $setSpeed(
float _speed);
1589 MCAPI
int $getItemUseDuration()
const;
1591 MCAPI
float $getItemUseStartupProgress()
const;
1593 MCAPI
float $getItemUseIntervalProgress()
const;
1595 MCAPI
bool $isBlocking()
const;
1599 MCAPI
void $handleEntityEvent(::ActorEvent
id,
int data);
1601 MCAPI ::std::vector<::ItemStack const*> $getAllHandEquipment()
const;
1603 MCAPI ::std::vector<::ItemStack const*> $getAllEquipment()
const;
1607 MCAPI ::CommandPermissionLevel $getCommandPermissionLevel()
const;
1609 MCAPI ::ActorHurtResult $attack(::Actor& actor, ::SharedTypes::Legacy::ActorDamageCause
const& cause);
1611 MCFOLD ::ItemStack
const& $getCarriedItem()
const;
1613 MCAPI
void $setCarriedItem(
::ItemStack const& item);
1615 MCAPI
void $damageCarriedItemOnAttack(::Actor& target,
float damageDealtToTarget);
1617 MCFOLD
void $openPortfolio();
1619 MCFOLD
void $openBook(
int bookSlot,
bool editable,
int page,
::BlockActor* lectern);
1621 MCFOLD
void $openTrading(
::ActorUniqueID const& uniqueID,
bool useNewScreen);
1625 MCFOLD
void $openNpcInteractScreen(::std::shared_ptr<::INpcDialogueData> npc);
1627 MCFOLD
void $openInventory();
1629 MCFOLD
void $displayChatMessage(
1630 ::std::string
const& author,
1631 ::std::string
const& message,
1632 ::std::optional<::std::string>
const filteredMessage
1636 $displayClientMessage(::std::string
const& message, ::std::optional<::std::string>
const filteredMessage);
1638 MCFOLD
void $displayTextObjectMessage(
1640 ::std::string
const& fromXuid,
1641 ::std::string
const& fromPlatformId
1644 MCFOLD
void $displayTextObjectWhisperMessage(
1646 ::std::string
const& xuid,
1647 ::std::string
const& platformId
1650 MCFOLD
void $displayTextObjectWhisperMessage(
1651 ::std::string
const& message,
1652 ::std::string
const& xuid,
1653 ::std::string
const& platformId
1656 MCFOLD
void $displayWhisperMessage(
1657 ::std::string
const& author,
1658 ::std::string
const& message,
1659 ::std::optional<::std::string>
const filteredMessage,
1660 ::std::string
const& xuid,
1661 ::std::string
const& platformId
1664 MCAPI
float $getShadowRadius()
const;
1666 MCAPI
bool $isSleeping()
const;
1668 MCAPI
void $setSleeping(
bool val);
1670 MCAPI ::BedSleepingResult $startSleepInBed(
::BlockPos const& bedBlockPos);
1672 MCAPI
void $stopSleepInBed(
bool forcefulWakeUp,
bool updateLevelList);
1674 MCAPI
bool $canStartSleepInBed();
1676 MCFOLD
void $sendInventory(
bool shouldSelectSlot);
1678 MCFOLD
void $openSign(
::BlockPos const& position,
bool isFrontSide);
1680 MCFOLD
void $playEmote(::std::string
const& pieceId,
bool const playChatMessage);
1682 MCAPI
bool $isSilentObserver()
const;
1684 MCAPI
void $useItem(
::ItemStackBase& instance, ::ItemUseMethod itemUseMethod,
bool consumeItem);
1686 MCFOLD
bool $isLoading()
const;
1688 MCFOLD
bool $isPlayerInitialized()
const;
1690 MCFOLD
void $stopLoading();
1692 MCAPI
float $getSpeed()
const;
1694 MCAPI
void $setPlayerGameType(::GameType gameType);
1696 MCAPI
void $initHUDContainerManager();
1698 MCAPI
void $emitCriticalHitParticles(::Actor
const& target,
int particleCount);
1700 MCAPI
bool $isImmobile()
const;
1702 MCFOLD
void $sendMotionPacketIfNeeded();
1704 MCAPI ::IMinecraftEventing* $getEventing()
const;
1706 MCFOLD uint $getUserId()
const;
1708 MCAPI
void $addExperience(
int xp);
1710 MCAPI
void $addLevels(
int levels);
1712 MCAPI
void $setArmor(::SharedTypes::Legacy::ArmorSlot slot,
::ItemStack const& item);
1714 MCAPI
void $setOffhandSlot(
::ItemStack const& item);
1716 MCAPI ::std::unique_ptr<::Packet> $tryCreateAddActorPacket();
1720 MCAPI
void $deleteContainerManager();
1722 MCAPI ::ItemStack
const& $getEquippedTotem()
const;
1724 MCAPI
bool $consumeTotem();
1726 MCFOLD
bool $isActorRelevant(::Actor
const& actor);
1728 MCAPI
float $getMapDecorationRotation()
const;
1731 $teleportTo(
::Vec3 const& pos,
bool shouldStopRiding,
int cause,
int sourceEntityType,
bool keepVelocity);
1733 MCAPI
bool $startRiding(::Actor& vehicle,
bool forceRiding);
1735 MCAPI
void $startSwimming();
1737 MCAPI
void $stopSwimming();
1739 MCFOLD
void $onSuspension();
1741 MCFOLD
void $onLinkedSlotsChanged();
1743 MCFOLD
bool $canBePulledIntoVehicle()
const;
1745 MCAPI
void $feed(
int itemId);
1747 MCFOLD
void $sendNetworkPacket(
::Packet& packet)
const;
1749 MCFOLD
bool $canExistWhenDisallowMob()
const;
1751 MCAPI ::mce::Color $getNameTagTextColor()
const;
1753 MCAPI
bool $canAddPassenger(::Actor& passenger)
const;
1755 MCFOLD
bool $isSimulated()
const;
1757 MCAPI ::std::string $getXuid()
const;
1759 MCAPI ::PlayerMovementSettings
const& $getMovementSettings()
const;
1761 MCAPI
bool $canFreeze()
const;
1763 MCAPI
bool $canInteractWithOtherEntitiesInGame()
const;
1765 MCAPI
bool $canObstructSpawningAndBlockPlacement()
const;
1767 MCAPI ::std::optional<::BlockPos> $getLastDeathPos()
const;
1769 MCAPI ::std::optional<::DimensionType> $getLastDeathDimension()
const;
1771 MCAPI
bool $hasDiedBefore()
const;
1773 MCAPI
void $doEnterWaterSplashEffect();
1775 MCAPI
void $doExitWaterSplashEffect();
1777 MCFOLD ::std::optional<::PlayerPartyInfo> $getPartyInfo_UNTRUSTED()
const;
1779 MCFOLD
void $requestMissingSubChunk(
::SubChunkPos const& scp);
1781 MCAPI uchar $getMaxChunkBuildRadius()
const;
1783 MCAPI
float $causeFallDamageToActor(
float distance,
float multiplier,
::ActorDamageSource source);
1785 MCFOLD
void $setBehaviorCommandStatus(::std::string
const& name, ::BehaviorStatus status);
1787 MCFOLD
void $setRemotePlayerTicked(
bool);
1789 MCFOLD ::std::unique_ptr<::ISparseContainerSetListener> $createSparseContainerListener();
1791 MCAPI ::ActorHurtResult $_hurt(
::ActorDamageSource const& source,
float damage,
bool knock,
bool ignite);
1795 MCAPI
void $addAdditionalSaveData(
::CompoundTag& entityTag)
const;
1797 MCAPI
void $onMovePlayerPacketNormal(
::Vec3 const& pos,
::Vec2 const& rot,
float yHeadRot);
1799 MCAPI
bool $_shouldProvideFeedbackOnHandContainerItemSet(::HandSlot handSlot,
::ItemStack const& item)
const;
1801 MCAPI
bool $_shouldProvideFeedbackOnArmorSet(::SharedTypes::Legacy::ArmorSlot slot,
::ItemStack const& item)
const;
1803 MCAPI ::std::shared_ptr<::ChunkViewSource> $_createChunkSource(
::ChunkSource& mainChunkSource);
1807 MCAPI ::AnimationComponent& $getAnimationComponent();
1809 MCAPI ::HashedString
const& $getActorRendererId()
const;
1811 MCFOLD
void $_serverInitItemStackIds();
1813 MCAPI ::std::unique_ptr<::BodyControl> $initBodyControl();
1821 MCAPI
static void** $vftable();