134 using PlayerFlagIDType = char;
140 ::ll::TypedStorage<4, 12, ::Vec3> mPosition;
141 ::ll::TypedStorage<1, 1, bool> mIsAboveLeaves;
149 ::ll::TypedStorage<4, 12, ::Vec3> mPosition;
150 ::ll::TypedStorage<4, 4, ::PlayerSpawnFallbackType> mSpawnFallbackType;
154 enum class SpawnPositionState :
int {
155 InitializeSpawnPositionRandomizer = 0,
156 WaitForClientAck = 1,
157 DetermineDimension = 2,
159 WaitForDimension = 4,
161 CheckLoadedChunk = 6,
162 ChooseSpawnPosition = 7,
166 enum class SpawnPositionSource :
int {
177 ::ll::TypedStorage<4, 4, ::DimensionType> mRespawnDimensionId;
178 ::ll::TypedStorage<4, 12, ::Vec3> mActualRespawnPosition;
179 ::ll::TypedStorage<4, 12, ::BlockPos> mRequestedRespawnPosition;
180 ::ll::TypedStorage<1, 1, bool> mHasRespawnPosition;
181 ::ll::TypedStorage<4, 12, ::BlockPos> mSharedSpawnPosition;
182 ::ll::TypedStorage<1, 1, bool> mRespawnReady;
183 ::ll::TypedStorage<4, 12, ::Vec3> mPlayerPos;
184 ::ll::TypedStorage<1, 1, bool> mIsForcedRespawn;
185 ::ll::TypedStorage<1, 1, bool> mIsAdventure;
186 ::ll::TypedStorage<1, 1, bool> mIsFlyingOrNotOverworld;
187 ::ll::TypedStorage<1, 1, bool> mPositionLoadedFromSave;
191 using PlayerListenerList = ::std::vector<::PlayerListener*>;
197 ::ll::TypedStorage<4, 12, ::BlockPos> mSpawnBlockPos;
198 ::ll::TypedStorage<4, 12, ::BlockPos> mPlayerPosition;
199 ::ll::TypedStorage<4, 4, ::DimensionType> mDimension;
221 LLNDAPI SubClientId
const& getClientSubId()
const;
223 LLNDAPI
int getSelectedItemSlot()
const;
251 LLNDAPI std::optional<NetworkPeer::NetworkStatus> getNetworkStatus()
const;
262 LLAPI
void setAbility(::AbilitiesIndex index,
bool value);
292 ::ll::TypedStorage<8, 24, ::std::vector<ushort>> mFroglights;
293 ::ll::TypedStorage<4, 4, float const> mSneakHeight;
294 ::ll::TypedStorage<4, 4, float const> mSneakOffset;
295 ::ll::TypedStorage<4, 4, int> mScore;
296 ::ll::TypedStorage<4, 4, ::BuildPlatform> mBuildPlatform;
297 ::ll::TypedStorage<8, 32, ::std::string> mUniqueName;
298 ::ll::TypedStorage<8, 32, ::std::string> mServerId;
299 ::ll::TypedStorage<8, 32, ::std::string> mSelfSignedId;
300 ::ll::TypedStorage<8, 32, ::std::string> mPlatformOfflineId;
301 ::ll::TypedStorage<8, 8, uint64> mClientRandomId;
302 ::ll::TypedStorage<8, 32, ::std::string> mPlatformId;
303 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPendingVehicleID;
304 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPendingLeftShoulderPassengerID;
305 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPendingRightShoulderPassengerID;
306 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mInteractTarget;
307 ::ll::TypedStorage<4, 12, ::Vec3> mInteractTargetPos;
308 ::ll::TypedStorage<1, 1, bool> mHasFakeInventory;
309 ::ll::TypedStorage<1, 1, bool> mIsRegionSuspended;
310 ::ll::TypedStorage<1, 1, bool> mUpdateMobs;
311 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ChunkViewSource>> mChunkSource;
312 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ChunkViewSource>> mSpawnChunkSource;
313 ::ll::TypedStorage<4, 12, ::Vec3> mCapePosO;
314 ::ll::TypedStorage<4, 12, ::Vec3> mCapePos;
315 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ContainerManagerModel>> mContainerManager;
322 mContainerManagerSubscribers;
323 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PlayerInventory>> mInventory;
324 ::ll::TypedStorage<4, 20, ::InventoryOptions> mInventoryOptions;
325 ::ll::TypedStorage<4, 4, float> mDistanceSinceTransformEvent;
326 ::ll::TypedStorage<8, 24, ::std::vector<::ItemInstance>> mCreativeItemList;
327 ::ll::TypedStorage<8, 32, ::std::string> mPlatformOnlineId;
328 ::ll::TypedStorage<4, 4, ::Player::SpawnPositionState> mSpawnPositionState;
329 ::ll::TypedStorage<4, 4, ::Player::SpawnPositionSource> mSpawnPositionSource;
330 ::ll::TypedStorage<4, 12, ::Vec3> mSpawnPositioningTestPosition;
331 ::ll::TypedStorage<4, 4, uint> mRespawnChunkBuilderPolicyHandle;
332 ::ll::TypedStorage<4, 64, ::Player::CachedSpawnData> mCachedSpawnData;
333 ::ll::TypedStorage<8, 16, ::OwnerPtr<::BlockSource>> mSpawnBlockSource;
334 ::ll::TypedStorage<8, 56, ::Stopwatch> mRespawnStopwatch_Searching;
335 ::ll::TypedStorage<4, 12, ::Vec3> mRespawnOriginalPosition;
336 ::ll::TypedStorage<4, 4, ::DimensionType> mRespawnOriginalDimension;
337 ::ll::TypedStorage<8, 32, ::std::string> mRespawnMessage;
338 ::ll::TypedStorage<1, 1, bool> mRespawnReady;
339 ::ll::TypedStorage<1, 1, bool> mIsInitialSpawnDone;
340 ::ll::TypedStorage<1, 1, bool> mRespawningFromTheEnd;
341 ::ll::TypedStorage<1, 1, bool> mPositionLoadedFromSave;
342 ::ll::TypedStorage<1, 1, bool> mBlockRespawnUntilClientMessage;
343 ::ll::TypedStorage<1, 1, bool> mHasSeenCredits;
344 ::ll::TypedStorage<4, 8, ::std::optional<::PlayerSpawnFallbackType>> mSpawnFallbackType;
345 ::ll::TypedStorage<4, 16, ::std::optional<::Vec3>> mSpawnFallbackPosition;
346 ::ll::TypedStorage<8, 168, ::PlayerItemInUse> mItemInUse;
347 ::ll::TypedStorage<4, 4, ::ActorType> mLastHurtBy;
348 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPreviousInteractEntity;
349 ::ll::TypedStorage<4, 4, int> mPreviousCarriedItem;
350 ::ll::TypedStorage<4, 4, int> mEmoteTicks;
351 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::NetworkChunkPublisher>> mChunkPublisherView;
352 ::ll::TypedStorage<8, 8, ::PacketSender&> mPacketSender;
353 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::HudContainerManagerModel>> mHudContainerManagerModel;
354 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::EnderChestContainer>> mEnderChestInventory;
355 ::ll::TypedStorage<8, 24, ::std::vector<::ActorUniqueID>> mTrackedBossIDs;
356 ::ll::TypedStorage<8, 136, ::ItemGroup> mCursorSelectedItemGroup;
357 ::ll::TypedStorage<8, 440, ::PlayerUIContainer> mPlayerUIContainer;
358 ::ll::TypedStorage<8, 48, ::InventoryTransactionManager> mTransactionManager;
359 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::GameMode>> mGameMode;
360 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PlayerRespawnRandomizer>> mSpawnRandomizer;
361 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::SerializedSkin>> mSkin;
362 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ItemStackNetManagerBase>> mItemStackNetManager;
363 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::AnimationComponent>> mUIAnimationComponent;
364 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::AnimationComponent>> mMapAnimationComponent;
365 ::ll::TypedStorage<4, 28, ::Player::PlayerSpawnPoint> mPlayerRespawnPoint;
366 ::ll::TypedStorage<4, 4, float> mServerBuildRatio;
367 ::ll::TypedStorage<1, 1, ::SubClientId> mClientId;
368 ::ll::TypedStorage<1, 1, bool> mInteractDataDirty;
369 ::ll::TypedStorage<1, 1, bool> mShouldClientGenerateChunks;
370 ::ll::TypedStorage<8, 24, ::std::vector<::BiomeIdType>> mOceanBiomes;
371 ::ll::TypedStorage<1, 1, bool> mUseMapAnimationComponent;
372 ::ll::TypedStorage<1, 1, bool> mIsDeferredRenderingFirstPersonObjects;
373 ::ll::TypedStorage<1, 1, bool> mDestroyingBlock;
374 ::ll::TypedStorage<1, 1, bool> mPlayerLevelChanged;
375 ::ll::TypedStorage<4, 4, int> mPreviousLevelRequirement;
376 ::ll::TypedStorage<4, 4, int> mLastLevelUpTime;
377 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::AnimationComponent>> mFirstPersonAnimationComponent;
378 ::ll::TypedStorage<8, 24, ::std::vector<::PlayerListener*>> mListeners;
379 ::ll::TypedStorage<4, 12, ::Vec3> mRespawnPositionCandidate;
380 ::ll::TypedStorage<4, 12, ::Vec3> mPreDimensionTransferSpawnPosition;
381 ::ll::TypedStorage<4, 4, int> mEnchantmentSeed;
382 ::ll::TypedStorage<8, 24, ::std::vector<uint>> mOnScreenAnimationTextures;
383 ::ll::TypedStorage<4, 4, int> mOnScreenAnimationTicks;
384 ::ll::TypedStorage<4, 4, uint> mChunkRadius;
385 ::ll::TypedStorage<4, 4, int> mMapIndex;
386 ::ll::TypedStorage<4, 4, float> mElytraVolume;
387 ::ll::TypedStorage<8, 8, uint64> mElytraLoop;
388 ::ll::TypedStorage<8, 64, ::std::unordered_map<::HashedString, int>> mItemCooldowns;
389 ::ll::TypedStorage<8, 64, ::std::unordered_map<::HashedString, ::HashedString>> mVanillaItemCooldowns;
390 ::ll::TypedStorage<8, 8, int64> mStartedBlockingTimeStamp;
391 ::ll::TypedStorage<8, 8, int64> mBlockedUsingShieldTimeStamp;
392 ::ll::TypedStorage<8, 8, int64> mBlockedUsingDamagedShieldTimeStamp;
393 ::ll::TypedStorage<8, 32, ::std::string> mName;
394 ::ll::TypedStorage<8, 32, ::std::string> mLastEmotePlayed;
395 ::ll::TypedStorage<8, 8, int64> mEmoteEasterEggEndTime;
396 ::ll::TypedStorage<4, 4, uint> mEmoteMessageCount;
397 ::ll::TypedStorage<8, 32, ::std::string> mDeviceId;
398 ::ll::TypedStorage<1, 1, bool> mFlagClientForBAIReset;
399 ::ll::TypedStorage<1, 1, bool> mSendInventoryOptionsToClient;
400 ::ll::TypedStorage<1, 1, bool> mIsHostingPlayer;
401 ::ll::TypedStorage<1, 1, bool> mPrevBlockedUsingShield;
402 ::ll::TypedStorage<1, 1, bool> mPrevBlockedUsingDamagedShield;
403 ::ll::TypedStorage<1, 1, bool> mUsedPotion;
404 ::ll::TypedStorage<8, 8, ::PlayerDestroyProgressCacheComponent&> mDestroyProgressCache;
430 virtual void destroyRegion();
433 virtual void suspendRegion();
436 virtual void _fireDimensionChanged();
439 virtual bool canChangeDimensionsUsingPortal() const ;
445 virtual
void tickWorld(::
Tick const&);
451 virtual ::
std::vector<::
ChunkPos> const& getTickingOffsets() const;
454 virtual
void normalTick() ;
457 virtual
void moveView();
460 virtual
void moveSpawnView(::
Vec3 const& spawnPosition, ::
DimensionType dimensionType);
463 virtual
void onSynchedDataUpdate(
int dataId) ;
466 virtual
void aiStep() ;
469 virtual
bool isFireImmune() const ;
472 virtual
void checkMovementStats(::
Vec3 const&);
475 virtual ::
HashedString getCurrentStructureFeature() const;
478 virtual
bool isAutoJumpEnabled() const;
481 virtual ::
Vec3 getInterpolatedRidingOffset(
float,
int const) const ;
484 virtual
void passengerTick() ;
490 virtual
void remove() ;
493 virtual
void respawn();
496 virtual
bool shouldDropDeathLoot() const ;
502 virtual
void dropEquipmentOnDeath() ;
505 virtual
void clearVanishEnchantedItemsOnDeath() ;
508 virtual
bool drop(::
ItemStack const& item,
bool const randomly) ;
511 virtual
void resetRot();
514 virtual
void resetUserPos(::ActorResetRule resetRule) ;
517 virtual
bool isInTrialMode();
520 virtual
void setSpeed(
float speed) ;
523 virtual
int getItemUseDuration() const ;
526 virtual
float getItemUseStartupProgress() const ;
529 virtual
float getItemUseIntervalProgress() const ;
532 virtual
bool isBlocking() const ;
538 virtual
void handleEntityEvent(::ActorEvent
id,
int data) ;
541 virtual ::
std::vector<::
ItemStack const*> getAllHandEquipment() const ;
544 virtual ::
std::vector<::
ItemStack const*> getAllEquipment() const ;
550 virtual ::CommandPermissionLevel getCommandPermissionLevel() const ;
553 virtual
bool attack(::
Actor&, ::SharedTypes::Legacy::ActorDamageCause const&) ;
556 virtual ::
ItemStack const& getCarriedItem() const ;
559 virtual
void setCarriedItem(::
ItemStack const& item) ;
562 virtual
void damageCarriedItemOnAttack(::
Actor& target,
float damageDealtToTarget) ;
565 virtual
void openPortfolio();
568 virtual
void openBook(
int,
bool,
int, ::
BlockActor*);
580 virtual
void openInventory();
583 virtual
void displayChatMessage(
584 ::
std::
string const& author,
585 ::
std::
string const& message,
586 ::
std::optional<::
std::
string> const filteredMessage
591 displayClientMessage(::
std::
string const& message, ::
std::optional<::
std::
string> const filteredMessage);
594 virtual
void displayTextObjectMessage(
596 ::
std::
string const& fromXuid,
597 ::
std::
string const& fromPlatformId
601 virtual
void displayTextObjectWhisperMessage(
603 ::
std::
string const& xuid,
604 ::
std::
string const& platformId
608 virtual
void displayTextObjectWhisperMessage(
609 ::
std::
string const& message,
610 ::
std::
string const& xuid,
611 ::
std::
string const& platformId
615 virtual
void displayWhisperMessage(
616 ::
std::
string const& author,
617 ::
std::
string const& message,
618 ::
std::optional<::
std::
string> const filteredMessage,
619 ::
std::
string const& xuid,
620 ::
std::
string const& platformId
624 virtual
float getShadowRadius() const ;
627 virtual
bool isSleeping() const ;
630 virtual
void setSleeping(
bool val) ;
633 virtual ::BedSleepingResult startSleepInBed(::
BlockPos const& bedBlockPos);
636 virtual
void stopSleepInBed(
bool forcefulWakeUp,
bool updateLevelList);
639 virtual
bool canStartSleepInBed();
642 virtual
void sendInventory(
bool) ;
645 virtual
void openSign(::
BlockPos const&,
bool);
648 virtual
void playEmote(::
std::
string const&,
bool const);
651 virtual
bool isSilentObserver() const ;
654 virtual
void useItem(::
ItemStackBase& item, ::ItemUseMethod itemUseMethod,
bool consumeItem) ;
657 virtual
bool isLoading() const;
660 virtual
bool isPlayerInitialized() const;
663 virtual
void stopLoading();
666 virtual
float getSpeed() const ;
669 virtual
void setPlayerGameType(::GameType gameType);
672 virtual
void initHUDContainerManager();
675 virtual
void _crit(::
Actor& actor);
678 virtual
bool isImmobile() const ;
681 virtual
void sendMotionPacketIfNeeded() ;
687 virtual uint getUserId() const;
690 virtual
void addExperience(
int xp);
693 virtual
void addLevels(
int levels);
696 virtual
void setArmor(::SharedTypes::Legacy::ArmorSlot slot, ::
ItemStack const& item) ;
699 virtual
void setOffhandSlot(::
ItemStack const& item) ;
702 virtual ::
std::unique_ptr<::
Packet> tryCreateAddActorPacket() ;
717 virtual
void deleteContainerManager();
720 virtual ::
ItemStack const& getEquippedTotem() const ;
723 virtual
bool consumeTotem() ;
726 virtual
bool isActorRelevant(::
Actor const&);
729 virtual
float getMapDecorationRotation() const ;
732 virtual
void teleportTo(
734 bool shouldStopRiding,
736 int sourceEntityType,
741 virtual
bool startRiding(::
Actor& vehicle,
bool forceRiding) ;
744 virtual
void startSwimming() ;
747 virtual
void stopSwimming() ;
750 virtual
bool isTeacher() const = 0;
753 virtual
void onSuspension();
756 virtual
void onLinkedSlotsChanged();
759 virtual
bool canBePulledIntoVehicle() const ;
762 virtual
void feed(
int itemId) ;
771 virtual
void sendNetworkPacket(::
Packet& packet) const;
774 virtual
bool canExistWhenDisallowMob() const ;
777 virtual ::mce::Color getNameTagTextColor() const ;
780 virtual
bool canAddPassenger(::
Actor& passenger) const ;
786 virtual
bool isSimulated() const;
789 virtual ::
std::
string getXuid() const;
795 virtual
bool canFreeze() const ;
798 virtual
bool canInteractWithOtherEntitiesInGame() const ;
801 virtual
bool canObstructSpawningAndBlockPlacement() const ;
804 virtual ::
std::optional<::
BlockPos> getLastDeathPos() const ;
810 virtual
bool hasDiedBefore() const ;
813 virtual
void doEnterWaterSplashEffect() ;
816 virtual
void doExitWaterSplashEffect() ;
819 virtual
void requestMissingSubChunk(::
SubChunkPos const&);
822 virtual uchar getMaxChunkBuildRadius() const;
825 virtual
float causeFallDamageToActor(
float distance,
float multiplier, ::
ActorDamageSource source) ;
828 virtual
void setBehaviorCommandStatus(::
std::
string const&, ::BehaviorStatus);
831 virtual
void setRemotePlayerTicked(
bool);
834 virtual
bool _hurt(::
ActorDamageSource const& source,
float damage,
bool knock,
bool ignite) ;
840 virtual
void addAdditionalSaveData(::
CompoundTag& tag) const ;
843 virtual
void onMovePlayerPacketNormal(::
Vec3 const& pos, ::
Vec2 const& rot,
float yHeadRot);
846 virtual
bool _shouldProvideFeedbackOnHandContainerItemSet(::HandSlot handSlot, ::
ItemStack const& item) const
850 virtual
bool _shouldProvideFeedbackOnArmorSet(::SharedTypes::Legacy::ArmorSlot slot, ::
ItemStack const& item) const
863 virtual ::
HashedString const& getActorRendererId() const ;
866 virtual ::Bedrock::NonOwnerPointer<::Editor::IEditorPlayer> getEditorPlayer() const = 0;
869 virtual
void destroyEditorPlayer() = 0;
872 virtual
void _serverInitItemStackIds() ;
884 ::GameType playerGameType,
885 bool isHostingPlayer,
889 ::
std::
string const& deviceId,
890 ::PlayerAuthenticationType authType,
893 ::
std::
string const& platformId,
894 ::
std::
string const& platformOnlineId
897 MCAPI
void _addLevels(
int levels);
899 MCAPI
bool _attack(::
Actor& actor, ::SharedTypes::Legacy::ActorDamageCause const& cause,
bool doPredictiveSound);
903 MCAPI
bool _checkAndFixSpawnPosition(
904 ::
Vec3& spawnPosition,
906 bool adjustYToSolidGround,
908 bool positionFromSave
911 MCAPI
void _chooseSpawnArea();
913 MCAPI
bool _chooseSpawnPositionWithinArea();
915 MCAPI
void _ensureSafeSpawnPosition(::
Vec3& pos);
917 MCAPI
bool _findFallbackSpawnPosition(
918 ::
Vec3& spawnPosition,
921 bool checkStoredFallback
924 MCAPI ::
std::optional<::
BlockPos> _findValidPosWithVerticalSpace(::
BlockPos spawnPosition);
926 MCAPI
void _handleCarriedItemInteractText();
928 MCAPI
bool _isChunkSourceLoaded(::
Vec3 const& spawnPosition, ::
BlockSource const& region) const;
930 MCAPI
void _loadInventoryOptions(::
CompoundTag const& tag);
932 MCAPI
void _preSpawnBuildSpawnDataCache();
934 MCAPI
void _registerElytraLoopSound();
936 MCAPI
void _registerPlayerAttributes();
938 MCAPI
void _saveInventoryOptions(::
CompoundTag& tag) const;
940 MCAPI
void _sendShieldUpdatePacket(
944 ::ContainerID container,
948 MCAPI
void _setPlayerGameType(::GameType gameType);
950 MCAPI
bool _shouldCrit(::
Actor const& target) const;
952 MCAPI
void _updateInteraction();
954 MCAPI
bool _validateSpawnPositionAvailability(
957 ::
Vec3 const* const AABBoffset
960 MCAPI
bool canBeSeenOnMap() const;
962 MCAPI
bool canJump();
964 MCAPI
bool canOpenContainerScreen();
966 MCAPI
bool canSleep() const;
968 MCAPI
bool canStackInOffhand(::
ItemStack const& item) const;
970 MCAPI
bool canUseAbility(::AbilitiesIndex abilityIndex) const;
972 MCAPI
bool canUseOperatorBlocks() const;
974 MCAPI
void causeFoodExhaustion(
float exhaustionAmount);
976 MCAPI
bool checkBed(::
BlockSource* spawnBlockSource, ::
Vec3 const* const positionToCheck);
978 MCAPI
bool checkNeedAutoJump(
float inputMoveX,
float inputMoveZ);
980 MCAPI
bool checkSpawnBlock(::
BlockSource const& region) const;
982 MCAPI
void completeUsingItem();
984 MCAPI
void dropCursorSelectedItemOnDeath();
986 MCAPI
void eat(::
ItemStack const& instance);
988 MCAPI
void eat(
int hungerValue,
float saturationModifier);
990 MCAPI
bool equippedArmorItemCanBeMoved(::
ItemStack const& item) const;
998 MCAPI ::
Agent* getAgent() const;
1000 MCAPI ::
ItemStack const& getCurrentActiveShield() const;
1002 MCAPI
float getDestroyProgress(::
Block const& block);
1006 MCAPI ::
BlockPos const& getExpectedSpawnPosition() const;
1008 MCAPI ::
std::
string getInteractText() const;
1010 MCAPI
int getItemCooldownLeft(::
HashedString const& category) const;
1012 MCAPI ::
std::
string getItemInteractText(::
Item const& item) const;
1014 MCAPI
float getLevelProgress() const;
1016 MCAPI
float getLuck();
1018 MCAPI ::
AABB getPickupArea() const;
1020 MCAPI ::GameType getPlayerGameType() const;
1022 MCAPI
int getPlayerLevel() const;
1024 MCFOLD ::
ItemStack const& getSelectedItem() const;
1026 MCAPI
float getSleepRotation() const;
1028 MCAPI
int getXpNeededForNextLevel() const;
1030 MCFOLD
bool hasOwnedChunkSource() const;
1034 MCAPI
bool hasRespawnPosition() const;
1036 MCAPI
bool interact(::
Actor& actor, ::
Vec3 const& location);
1038 MCAPI
void inventoryChanged(
1048 MCAPI
bool isFlying() const;
1050 MCAPI
bool isForcedRespawn() const;
1052 MCAPI
bool isHiddenFrom(::
Mob& target) const;
1054 MCAPI
bool isHungry() const;
1056 MCAPI
bool isInRaid() const;
1058 MCAPI
bool isItemOnCooldown(::
HashedString const& category) const;
1060 MCAPI
void loadLastDeathLocation(::
CompoundTag const& tag);
1062 MCAPI
void playFallOrLandSound(
int expectedDamage, ::
Block const& onBlock, ::
Block const& blockAbove);
1064 MCAPI
void playPredictiveSynchronizedSound(
1065 ::SharedTypes::Legacy::LevelSoundEvent type,
1071 MCAPI
void recheckSpawnPosition();
1073 MCAPI
void releaseUsingItem();
1075 MCAPI
void resetPlayerLevel();
1077 MCAPI
void saveLastDeathLocation(::
CompoundTag& tag) const;
1081 MCAPI
void setAgent(::
Agent* agent);
1083 MCAPI
void setBedRespawnPosition(::
BlockPos const& bedPosition);
1087 MCAPI
void setHasDied(
bool hasDied);
1089 MCAPI
void setLastDeathDimension(::
DimensionType dimension);
1091 MCAPI
void setLastDeathPos(::
BlockPos pos);
1093 MCAPI
void setName(::
std::
string const& newName);
1095 MCAPI
void setPlayerUIItem(::PlayerUISlot slot, ::
ItemStack const& item,
bool forceBalance);
1099 MCAPI
void setRespawnPositionCandidate();
1101 MCAPI
void setSelectedItem(::
ItemStack const& item);
1103 MCAPI ::
ItemStack const& setSelectedSlot(
int slot);
1105 MCAPI
bool setSpawnBlockRespawnPosition(::
BlockPos const& spawnBlockPosition, ::
DimensionType dimension);
1107 MCAPI
void startItemCooldown(::
Item const& item,
bool updateClient);
1109 MCAPI
void startItemCooldown(::
HashedString const& type,
int tickDuration,
bool updateClient);
1114 MCAPI
void startUsingItem(::
ItemStack const& instance,
int duration);
1116 MCAPI
void stopGliding();
1120 MCAPI
void stopUsingItem();
1122 MCAPI
bool take(::
Actor& actor,
int,
int favoredSlot);
1124 MCAPI
void tickArmor();
1126 MCAPI
bool tryStartGliding();
1130 MCAPI
void updateInventoryTransactions();
1132 MCAPI
void updateSkin(::
SerializedSkin const& skin,
int clientSubID);
1134 MCAPI
void updateTrackedBosses();
1136 MCAPI
void useSelectedItem(::ItemUseMethod itemUseMethod,
bool consumeItem);
1145 ::
Vec3 const& spawnPosition,
1148 bool adjustYToSolidGround,
1151 bool positionFromSave,
1152 bool spawningAtForcedSpawn,
1153 short dimensionHeight
1156 MCAPI static
bool checkNeedAutoJump(
1160 float movementSpeed,
1167 MCAPI static
bool isDangerousVolumeForSpawn(::
BlockSource& region, ::
AABB const& centeredAABB);
1170 isDangerousVolume_DEPRECATED(::
BlockSource& region, ::
AABB const& centeredAABB,
bool checkForLava);
1177 updatePlayerGameTypeEntityData(::
EntityContext& entity, ::GameType gameType, ::GameType defaultGameType);
1183 MCAPI static
float const& DEFAULT_BB_HEIGHT();
1185 MCAPI static
float const& DEFAULT_BB_WIDTH();
1187 MCAPI static
float const& DEFAULT_PLAYER_EYE_OFFSET();
1189 MCAPI static
float const& DEFAULT_PLAYER_HEIGHT_OFFSET();
1191 MCAPI static
float const& DISTANCE_TO_TRANSFORM_EVENT();
1193 MCAPI static ::
Attribute const& EXHAUSTION();
1195 MCAPI static ::
Attribute const& EXPERIENCE();
1197 MCAPI static
int const& GLIDE_STOP_DELAY();
1199 MCAPI static ::
Attribute const& HUNGER();
1201 MCAPI static ::
Attribute const& LEVEL();
1203 MCAPI static
float const& PLAYER_SLEEPING_HEIGHT();
1205 MCAPI static ::
Attribute const& SATURATION();
1214 ::GameType playerGameType,
1215 bool isHostingPlayer,
1217 ::SubClientId subid,
1219 ::
std::
string const& deviceId,
1220 ::PlayerAuthenticationType authType,
1223 ::
std::
string const& platformId,
1224 ::
std::
string const& platformOnlineId
1237 MCAPI
void $initializeComponents(::ActorInitializationMethod method, ::
VariantParameterList const& params);
1239 MCAPI
void $reloadHardcoded(::ActorInitializationMethod method, ::
VariantParameterList const& params);
1241 MCAPI
void $prepareRegion(::
ChunkSource& mainChunkSource);
1243 MCAPI
void $destroyRegion();
1245 MCAPI
void $suspendRegion();
1247 MCAPI
void $_fireDimensionChanged();
1249 MCAPI
bool $canChangeDimensionsUsingPortal() const;
1253 MCAPI
void $tickWorld(::
Tick const&);
1255 MCAPI ::
std::vector<::
ChunkPos> const& $getTickingOffsets() const;
1257 MCAPI
void $normalTick();
1259 MCAPI
void $moveView();
1261 MCAPI
void $moveSpawnView(::
Vec3 const& spawnPosition, ::
DimensionType dimensionType);
1263 MCFOLD
void $onSynchedDataUpdate(
int dataId);
1265 MCAPI
void $aiStep();
1267 MCAPI
bool $isFireImmune() const;
1269 MCFOLD
void $checkMovementStats(::
Vec3 const&);
1271 MCFOLD ::
HashedString $getCurrentStructureFeature() const;
1273 MCFOLD
bool $isAutoJumpEnabled() const;
1275 MCAPI ::
Vec3 $getInterpolatedRidingOffset(
float,
int const) const;
1277 MCAPI
void $passengerTick();
1281 MCAPI
void $remove();
1283 MCAPI
void $respawn();
1285 MCAPI
bool $shouldDropDeathLoot() const;
1289 MCAPI
void $dropEquipmentOnDeath();
1291 MCFOLD
void $clearVanishEnchantedItemsOnDeath();
1293 MCAPI
bool $drop(::
ItemStack const& item,
bool const randomly);
1295 MCFOLD
void $resetRot();
1297 MCAPI
void $resetUserPos(::ActorResetRule resetRule);
1299 MCFOLD
bool $isInTrialMode();
1301 MCAPI
void $setSpeed(
float speed);
1303 MCAPI
int $getItemUseDuration() const;
1305 MCAPI
float $getItemUseStartupProgress() const;
1307 MCAPI
float $getItemUseIntervalProgress() const;
1309 MCAPI
bool $isBlocking() const;
1313 MCAPI
void $handleEntityEvent(::ActorEvent
id,
int data);
1315 MCAPI ::
std::vector<::
ItemStack const*> $getAllHandEquipment() const;
1317 MCAPI ::
std::vector<::
ItemStack const*> $getAllEquipment() const;
1321 MCFOLD ::
ItemStack const& $getCarriedItem() const;
1323 MCAPI
void $setCarriedItem(::
ItemStack const& item);
1325 MCAPI
void $damageCarriedItemOnAttack(::
Actor& target,
float damageDealtToTarget);
1327 MCFOLD
void $openPortfolio();
1329 MCFOLD
void $openBook(
int,
bool,
int, ::
BlockActor*);
1337 MCFOLD
void $openInventory();
1339 MCFOLD
void $displayChatMessage(
1340 ::
std::
string const& author,
1341 ::
std::
string const& message,
1342 ::
std::optional<::
std::
string> const filteredMessage
1346 $displayClientMessage(::
std::
string const& message, ::
std::optional<::
std::
string> const filteredMessage);
1348 MCFOLD
void $displayTextObjectMessage(
1350 ::
std::
string const& fromXuid,
1351 ::
std::
string const& fromPlatformId
1354 MCFOLD
void $displayTextObjectWhisperMessage(
1356 ::
std::
string const& xuid,
1357 ::
std::
string const& platformId
1360 MCFOLD
void $displayTextObjectWhisperMessage(
1361 ::
std::
string const& message,
1362 ::
std::
string const& xuid,
1363 ::
std::
string const& platformId
1366 MCFOLD
void $displayWhisperMessage(
1367 ::
std::
string const& author,
1368 ::
std::
string const& message,
1369 ::
std::optional<::
std::
string> const filteredMessage,
1370 ::
std::
string const& xuid,
1371 ::
std::
string const& platformId
1374 MCAPI
float $getShadowRadius() const;
1376 MCAPI
bool $isSleeping() const;
1378 MCAPI
void $setSleeping(
bool val);
1380 MCAPI ::BedSleepingResult $startSleepInBed(::
BlockPos const& bedBlockPos);
1382 MCAPI
void $stopSleepInBed(
bool forcefulWakeUp,
bool updateLevelList);
1384 MCAPI
bool $canStartSleepInBed();
1386 MCFOLD
void $sendInventory(
bool);
1388 MCFOLD
void $openSign(::
BlockPos const&,
bool);
1390 MCFOLD
void $playEmote(::
std::
string const&,
bool const);
1392 MCAPI
bool $isSilentObserver() const;
1394 MCAPI
void $useItem(::
ItemStackBase& item, ::ItemUseMethod itemUseMethod,
bool consumeItem);
1396 MCFOLD
bool $isLoading() const;
1398 MCFOLD
bool $isPlayerInitialized() const;
1400 MCFOLD
void $stopLoading();
1402 MCAPI
float $getSpeed() const;
1404 MCAPI
void $setPlayerGameType(::GameType gameType);
1406 MCAPI
void $initHUDContainerManager();
1408 MCAPI
void $_crit(::
Actor& actor);
1410 MCAPI
bool $isImmobile() const;
1412 MCFOLD
void $sendMotionPacketIfNeeded();
1416 MCFOLD uint $getUserId() const;
1418 MCAPI
void $addExperience(
int xp);
1420 MCAPI
void $addLevels(
int levels);
1422 MCAPI
void $setOffhandSlot(::
ItemStack const& item);
1424 MCAPI ::
std::unique_ptr<::
Packet> $tryCreateAddActorPacket();
1428 MCAPI
void $deleteContainerManager();
1430 MCAPI ::
ItemStack const& $getEquippedTotem() const;
1432 MCAPI
bool $consumeTotem();
1434 MCFOLD
bool $isActorRelevant(::
Actor const&);
1436 MCAPI
float $getMapDecorationRotation() const;
1439 $teleportTo(::
Vec3 const& pos,
bool shouldStopRiding,
int cause,
int sourceEntityType,
bool keepVelocity);
1441 MCAPI
bool $startRiding(::
Actor& vehicle,
bool forceRiding);
1443 MCAPI
void $startSwimming();
1445 MCAPI
void $stopSwimming();
1447 MCFOLD
void $onSuspension();
1449 MCFOLD
void $onLinkedSlotsChanged();
1451 MCFOLD
bool $canBePulledIntoVehicle() const;
1453 MCAPI
void $feed(
int itemId);
1455 MCFOLD
void $sendNetworkPacket(::
Packet& packet) const;
1457 MCFOLD
bool $canExistWhenDisallowMob() const;
1459 MCAPI ::mce::Color $getNameTagTextColor() const;
1461 MCAPI
bool $canAddPassenger(::
Actor& passenger) const;
1463 MCFOLD
bool $isSimulated() const;
1465 MCAPI ::
std::
string $getXuid() const;
1469 MCAPI
bool $canFreeze() const;
1471 MCAPI
bool $canInteractWithOtherEntitiesInGame() const;
1473 MCAPI
bool $canObstructSpawningAndBlockPlacement() const;
1475 MCAPI ::
std::optional<::
BlockPos> $getLastDeathPos() const;
1479 MCAPI
bool $hasDiedBefore() const;
1481 MCAPI
void $doEnterWaterSplashEffect();
1483 MCAPI
void $doExitWaterSplashEffect();
1485 MCFOLD
void $requestMissingSubChunk(::
SubChunkPos const&);
1487 MCFOLD uchar $getMaxChunkBuildRadius() const;
1489 MCAPI
float $causeFallDamageToActor(
float distance,
float multiplier, ::
ActorDamageSource source);
1491 MCFOLD
void $setBehaviorCommandStatus(::
std::
string const&, ::BehaviorStatus);
1493 MCFOLD
void $setRemotePlayerTicked(
bool);
1495 MCAPI
bool $_hurt(::
ActorDamageSource const& source,
float damage,
bool knock,
bool ignite);
1499 MCAPI
void $addAdditionalSaveData(::
CompoundTag& tag) const;
1501 MCAPI
void $onMovePlayerPacketNormal(::
Vec3 const& pos, ::
Vec2 const& rot,
float yHeadRot);
1503 MCAPI
bool $_shouldProvideFeedbackOnHandContainerItemSet(::HandSlot handSlot, ::
ItemStack const& item) const;
1511 MCAPI ::
HashedString const& $getActorRendererId() const;
1513 MCFOLD
void $_serverInitItemStackIds();