130 using PlayerFlagIDType = char;
136 ::ll::TypedStorage<4, 12, ::Vec3> mPosition;
137 ::ll::TypedStorage<1, 1, bool> mIsAboveLeaves;
145 ::ll::TypedStorage<4, 12, ::Vec3> mPosition;
146 ::ll::TypedStorage<4, 4, ::PlayerSpawnFallbackType> mSpawnFallbackType;
150 enum class SpawnPositionState :
int {
151 InitializeSpawnPositionRandomizer = 0,
152 WaitForClientAck = 1,
153 DetermineDimension = 2,
155 WaitForDimension = 4,
157 CheckLoadedChunk = 6,
158 ChooseSpawnPosition = 7,
162 enum class SpawnPositionSource :
int {
173 ::ll::TypedStorage<4, 4, ::DimensionType> mRespawnDimensionId;
174 ::ll::TypedStorage<4, 12, ::Vec3> mActualRespawnPosition;
175 ::ll::TypedStorage<4, 12, ::BlockPos> mRequestedRespawnPosition;
176 ::ll::TypedStorage<1, 1, bool> mHasRespawnPosition;
177 ::ll::TypedStorage<4, 12, ::BlockPos> mSharedSpawnPosition;
178 ::ll::TypedStorage<1, 1, bool> mRespawnReady;
179 ::ll::TypedStorage<4, 12, ::Vec3> mPlayerPos;
180 ::ll::TypedStorage<1, 1, bool> mIsForcedRespawn;
181 ::ll::TypedStorage<1, 1, bool> mIsAdventure;
182 ::ll::TypedStorage<1, 1, bool> mIsFlyingOrNotOverworld;
183 ::ll::TypedStorage<1, 1, bool> mPositionLoadedFromSave;
187 using PlayerListenerList = ::std::vector<::PlayerListener*>;
193 ::ll::TypedStorage<4, 12, ::BlockPos> mSpawnBlockPos;
194 ::ll::TypedStorage<4, 12, ::BlockPos> mPlayerPosition;
195 ::ll::TypedStorage<4, 4, ::DimensionType> mDimension;
217 LLNDAPI SubClientId
const& getClientSubId()
const;
219 LLNDAPI
int getSelectedItemSlot()
const;
246 LLNDAPI std::optional<NetworkPeer::NetworkStatus> getNetworkStatus()
const;
257 LLAPI
void setAbility(::AbilitiesIndex index,
bool value);
280 ::ll::TypedStorage<8, 24, ::std::vector<ushort>> mOceanBiomes;
281 ::ll::TypedStorage<8, 24, ::std::vector<ushort>> mFroglights;
282 ::ll::TypedStorage<4, 4, float const> mSneakHeight;
283 ::ll::TypedStorage<4, 4, float const> mSneakOffset;
284 ::ll::TypedStorage<4, 4, int> mScore;
285 ::ll::TypedStorage<4, 4, ::BuildPlatform> mBuildPlatform;
286 ::ll::TypedStorage<8, 32, ::std::string> mUniqueName;
287 ::ll::TypedStorage<8, 32, ::std::string> mServerId;
288 ::ll::TypedStorage<8, 32, ::std::string> mSelfSignedId;
289 ::ll::TypedStorage<8, 32, ::std::string> mPlatformOfflineId;
290 ::ll::TypedStorage<8, 8, uint64> mClientRandomId;
291 ::ll::TypedStorage<8, 32, ::std::string> mPlatformId;
292 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPendingVehicleID;
293 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPendingLeftShoulderPassengerID;
294 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPendingRightShoulderPassengerID;
295 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mInteractTarget;
296 ::ll::TypedStorage<4, 12, ::Vec3> mInteractTargetPos;
297 ::ll::TypedStorage<1, 1, bool> mHasFakeInventory;
298 ::ll::TypedStorage<1, 1, bool> mIsRegionSuspended;
299 ::ll::TypedStorage<1, 1, bool> mUpdateMobs;
300 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ChunkViewSource>> mChunkSource;
301 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ChunkViewSource>> mSpawnChunkSource;
302 ::ll::TypedStorage<4, 12, ::Vec3> mCapePosO;
303 ::ll::TypedStorage<4, 12, ::Vec3> mCapePos;
304 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ContainerManagerModel>> mContainerManager;
311 mContainerManagerSubscribers;
312 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PlayerInventory>> mInventory;
313 ::ll::TypedStorage<4, 20, ::InventoryOptions> mInventoryOptions;
314 ::ll::TypedStorage<4, 4, float> mDistanceSinceTransformEvent;
315 ::ll::TypedStorage<8, 24, ::std::vector<::ItemInstance>> mCreativeItemList;
316 ::ll::TypedStorage<8, 32, ::std::string> mPlatformOnlineId;
317 ::ll::TypedStorage<4, 4, ::Player::SpawnPositionState> mSpawnPositionState;
318 ::ll::TypedStorage<4, 4, ::Player::SpawnPositionSource> mSpawnPositionSource;
319 ::ll::TypedStorage<4, 12, ::Vec3> mSpawnPositioningTestPosition;
320 ::ll::TypedStorage<4, 4, uint> mRespawnChunkBuilderPolicyHandle;
321 ::ll::TypedStorage<4, 64, ::Player::CachedSpawnData> mCachedSpawnData;
322 ::ll::TypedStorage<8, 16, ::OwnerPtr<::BlockSource>> mSpawnBlockSource;
323 ::ll::TypedStorage<8, 56, ::Stopwatch> mRespawnStopwatch_Searching;
324 ::ll::TypedStorage<4, 12, ::Vec3> mRespawnOriginalPosition;
325 ::ll::TypedStorage<4, 4, ::DimensionType> mRespawnOriginalDimension;
326 ::ll::TypedStorage<8, 32, ::std::string> mRespawnMessage;
327 ::ll::TypedStorage<1, 1, bool> mRespawnReady;
328 ::ll::TypedStorage<1, 1, bool> mIsInitialSpawnDone;
329 ::ll::TypedStorage<1, 1, bool> mRespawningFromTheEnd;
330 ::ll::TypedStorage<1, 1, bool> mPositionLoadedFromSave;
331 ::ll::TypedStorage<1, 1, bool> mBlockRespawnUntilClientMessage;
332 ::ll::TypedStorage<1, 1, bool> mHasSeenCredits;
333 ::ll::TypedStorage<4, 8, ::std::optional<::PlayerSpawnFallbackType>> mSpawnFallbackType;
334 ::ll::TypedStorage<4, 16, ::std::optional<::Vec3>> mSpawnFallbackPosition;
335 ::ll::TypedStorage<8, 168, ::PlayerItemInUse> mItemInUse;
336 ::ll::TypedStorage<4, 4, ::ActorType> mLastHurtBy;
337 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPreviousInteractEntity;
338 ::ll::TypedStorage<4, 4, int> mPreviousCarriedItem;
339 ::ll::TypedStorage<4, 4, int> mEmoteTicks;
340 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::NetworkChunkPublisher>> mChunkPublisherView;
341 ::ll::TypedStorage<8, 8, ::PacketSender&> mPacketSender;
342 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::HudContainerManagerModel>> mHudContainerManagerModel;
343 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::EnderChestContainer>> mEnderChestInventory;
344 ::ll::TypedStorage<8, 24, ::std::vector<::ActorUniqueID>> mTrackedBossIDs;
345 ::ll::TypedStorage<8, 136, ::ItemGroup> mCursorSelectedItemGroup;
346 ::ll::TypedStorage<8, 440, ::PlayerUIContainer> mPlayerUIContainer;
347 ::ll::TypedStorage<8, 48, ::InventoryTransactionManager> mTransactionManager;
348 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::GameMode>> mGameMode;
349 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PlayerRespawnRandomizer>> mSpawnRandomizer;
350 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::SerializedSkin>> mSkin;
351 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ItemStackNetManagerBase>> mItemStackNetManager;
352 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::AnimationComponent>> mUIAnimationComponent;
353 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::AnimationComponent>> mMapAnimationComponent;
354 ::ll::TypedStorage<4, 28, ::Player::PlayerSpawnPoint> mPlayerRespawnPoint;
355 ::ll::TypedStorage<4, 4, float> mServerBuildRatio;
356 ::ll::TypedStorage<1, 1, ::SubClientId> mClientId;
357 ::ll::TypedStorage<1, 1, bool> mInteractDataDirty;
358 ::ll::TypedStorage<1, 1, bool> mShouldClientGenerateChunks;
359 ::ll::TypedStorage<1, 1, bool> mUseMapAnimationComponent;
360 ::ll::TypedStorage<1, 1, bool> mIsDeferredRenderingFirstPersonObjects;
361 ::ll::TypedStorage<1, 1, bool> mDestroyingBlock;
362 ::ll::TypedStorage<1, 1, bool> mPlayerLevelChanged;
363 ::ll::TypedStorage<4, 4, int> mPreviousLevelRequirement;
364 ::ll::TypedStorage<4, 4, int> mLastLevelUpTime;
365 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::AnimationComponent>> mFirstPersonAnimationComponent;
366 ::ll::TypedStorage<8, 24, ::std::vector<::PlayerListener*>> mListeners;
367 ::ll::TypedStorage<4, 12, ::Vec3> mRespawnPositionCandidate;
368 ::ll::TypedStorage<4, 12, ::Vec3> mPreDimensionTransferSpawnPosition;
369 ::ll::TypedStorage<4, 4, int> mEnchantmentSeed;
370 ::ll::TypedStorage<8, 24, ::std::vector<uint>> mOnScreenAnimationTextures;
371 ::ll::TypedStorage<4, 4, int> mOnScreenAnimationTicks;
372 ::ll::TypedStorage<4, 4, uint> mChunkRadius;
373 ::ll::TypedStorage<4, 4, int> mMapIndex;
374 ::ll::TypedStorage<4, 4, float> mElytraVolume;
375 ::ll::TypedStorage<8, 8, uint64> mElytraLoop;
376 ::ll::TypedStorage<8, 64, ::std::unordered_map<::HashedString, int>> mCooldowns;
377 ::ll::TypedStorage<8, 64, ::std::unordered_map<::HashedString, ::HashedString>> mVanillaCooldowns;
378 ::ll::TypedStorage<8, 8, int64> mStartedBlockingTimeStamp;
379 ::ll::TypedStorage<8, 8, int64> mBlockedUsingShieldTimeStamp;
380 ::ll::TypedStorage<8, 8, int64> mBlockedUsingDamagedShieldTimeStamp;
381 ::ll::TypedStorage<8, 32, ::std::string> mName;
382 ::ll::TypedStorage<8, 32, ::std::string> mLastEmotePlayed;
383 ::ll::TypedStorage<8, 8, int64> mEmoteEasterEggEndTime;
384 ::ll::TypedStorage<4, 4, uint> mEmoteMessageCount;
385 ::ll::TypedStorage<8, 32, ::std::string> mDeviceId;
386 ::ll::TypedStorage<1, 1, bool> mFlagClientForBAIReset;
387 ::ll::TypedStorage<1, 1, bool> mSendInventoryOptionsToClient;
388 ::ll::TypedStorage<1, 1, bool> mIsHostingPlayer;
389 ::ll::TypedStorage<1, 1, bool> mPrevBlockedUsingShield;
390 ::ll::TypedStorage<1, 1, bool> mPrevBlockedUsingDamagedShield;
391 ::ll::TypedStorage<1, 1, bool> mUsedPotion;
392 ::ll::TypedStorage<8, 8, ::PlayerDestroyProgressCacheComponent&> mDestroyProgressCache;
418 virtual void destroyRegion();
421 virtual void suspendRegion();
424 virtual void _fireDimensionChanged();
427 virtual bool canChangeDimensionsUsingPortal() const ;
433 virtual
void tickWorld(::
Tick const&);
439 virtual ::
std::vector<::
ChunkPos> const& getTickingOffsets() const;
442 virtual
void normalTick() ;
445 virtual
void moveView();
448 virtual
void moveSpawnView(::
Vec3 const& spawnPosition, ::
DimensionType dimensionType);
451 virtual
void onSynchedDataUpdate(
int dataId) ;
454 virtual
void aiStep() ;
457 virtual
bool isFireImmune() const ;
460 virtual
void checkMovementStats(::
Vec3 const&);
463 virtual ::
HashedString getCurrentStructureFeature() const;
466 virtual
bool isAutoJumpEnabled() const;
469 virtual ::
Vec3 getInterpolatedRidingOffset(
float,
int const) const ;
472 virtual
void passengerTick() ;
478 virtual
void remove() ;
481 virtual
void respawn();
484 virtual
bool shouldDropDeathLoot() const ;
490 virtual
void dropEquipmentOnDeath() ;
493 virtual
void clearVanishEnchantedItemsOnDeath() ;
496 virtual
bool drop(::
ItemStack const& item,
bool const randomly) ;
499 virtual
void resetRot();
502 virtual
void resetUserPos(::ActorResetRule resetRule) ;
505 virtual
bool isInTrialMode();
508 virtual
void setSpeed(
float speed) ;
511 virtual
int getItemUseDuration() const ;
514 virtual
float getItemUseStartupProgress() const ;
517 virtual
float getItemUseIntervalProgress() const ;
520 virtual
bool isBlocking() const ;
526 virtual
void handleEntityEvent(::ActorEvent eventId,
int data) ;
529 virtual ::
std::vector<::
ItemStack const*> getAllHand() const ;
532 virtual ::
std::vector<::
ItemStack const*> getAllEquipment() const ;
538 virtual ::CommandPermissionLevel getCommandPermissionLevel() const ;
541 virtual
bool attack(::
Actor&, ::SharedTypes::Legacy::ActorDamageCause const&) ;
544 virtual ::
ItemStack const& getCarriedItem() const ;
547 virtual
void setCarriedItem(::
ItemStack const& item) ;
550 virtual
void openPortfolio();
553 virtual
void openBook(
int,
bool,
int, ::
BlockActor*);
565 virtual
void openInventory();
568 virtual
void displayChatMessage(
569 ::
std::
string const& author,
570 ::
std::
string const& message,
571 ::
std::optional<::
std::
string> const filteredMessage
576 displayClientMessage(::
std::
string const& message, ::
std::optional<::
std::
string> const filteredMessage);
579 virtual
void displayTextObjectMessage(
581 ::
std::
string const& fromXuid,
582 ::
std::
string const& fromPlatformId
586 virtual
void displayTextObjectWhisperMessage(
588 ::
std::
string const& xuid,
589 ::
std::
string const& platformId
593 virtual
void displayTextObjectWhisperMessage(
594 ::
std::
string const& message,
595 ::
std::
string const& xuid,
596 ::
std::
string const& platformId
600 virtual
void displayWhisperMessage(
601 ::
std::
string const& author,
602 ::
std::
string const& message,
603 ::
std::optional<::
std::
string> const filteredMessage,
604 ::
std::
string const& xuid,
605 ::
std::
string const& platformId
609 virtual
float getShadowRadius() const ;
612 virtual
bool isSleeping() const ;
615 virtual
void setSleeping(
bool val) ;
618 virtual ::BedSleepingResult startSleepInBed(::
BlockPos const& bedBlockPos);
621 virtual
void stopSleepInBed(
bool forcefulWakeUp,
bool updateLevelList);
624 virtual
bool canStartSleepInBed();
627 virtual
void sendInventory(
bool) ;
630 virtual
void openSign(::
BlockPos const&,
bool);
633 virtual
void playEmote(::
std::
string const&,
bool const);
636 virtual
bool isSilentObserver() const ;
639 virtual
void useItem(::
ItemStackBase& item, ::ItemUseMethod itemUseMethod,
bool consumeItem) ;
642 virtual
bool isLoading() const;
645 virtual
bool isPlayerInitialized() const;
648 virtual
void stopLoading();
651 virtual
float getSpeed() const ;
654 virtual
void setPlayerGameType(::GameType);
657 virtual
void initHUDContainerManager();
660 virtual
void _crit(::
Actor& actor);
663 virtual
bool isImmobile() const ;
666 virtual
void sendMotionPacketIfNeeded() ;
672 virtual uint getUserId() const;
675 virtual
void addExperience(
int xp);
678 virtual
void addLevels(
int levels);
681 virtual
void setArmor(::SharedTypes::Legacy::ArmorSlot slot, ::
ItemStack const& item) ;
684 virtual
void setOffhandSlot(::
ItemStack const& item) ;
702 virtual
void deleteContainerManager();
705 virtual ::
ItemStack const& getEquippedTotem() const ;
708 virtual
bool consumeTotem() ;
711 virtual
bool isActorRelevant(::
Actor const&);
714 virtual
float getMapDecorationRotation() const ;
717 virtual
void teleportTo(
719 bool shouldStopRiding,
721 int sourceEntityType,
726 virtual
bool startRiding(::
Actor& vehicle,
bool forceRiding) ;
729 virtual
void startSwimming() ;
732 virtual
void stopSwimming() ;
735 virtual
bool isTeacher() const = 0;
738 virtual
void onSuspension();
741 virtual
void onLinkedSlotsChanged();
744 virtual
bool canBePulledIntoVehicle() const ;
747 virtual
void feed(
int itemId) ;
756 virtual
void sendNetworkPacket(::
Packet& packet) const;
759 virtual
bool canExistWhenDisallowMob() const ;
762 virtual ::mce::Color getNameTagTextColor() const ;
765 virtual
bool canAddPassenger(::
Actor& passenger) const ;
771 virtual
bool isSimulated() const;
774 virtual ::
std::
string getXuid() const;
780 virtual
bool canFreeze() const ;
783 virtual
bool canInteractWithOtherEntitiesInGame() const ;
786 virtual
bool canObstructSpawningAndBlockPlacement() const ;
789 virtual ::
std::optional<::
BlockPos> getLastDeathPos() const ;
795 virtual
bool hasDiedBefore() const ;
798 virtual
void doEnterWaterSplashEffect() ;
801 virtual
void doExitWaterSplashEffect() ;
804 virtual
void requestMissingSubChunk(::
SubChunkPos const&);
807 virtual uchar getMaxChunkBuildRadius() const;
810 virtual
float causeFallDamageToActor(
float distance,
float multiplier, ::
ActorDamageSource source) ;
813 virtual
bool _hurt(::
ActorDamageSource const& source,
float damage,
bool knock,
bool ignite) ;
819 virtual
void addAdditionalSaveData(::
CompoundTag& entityTag) const ;
822 virtual
void onMovePlayerPacketNormal(::
Vec3 const& pos, ::
Vec2 const& rot,
float yHeadRot);
825 virtual
bool _shouldProvideFeedbackOnHandContainerItemSet(::HandSlot handSlot, ::
ItemStack const& item) const
829 virtual
bool _shouldProvideFeedbackOnArmorSet(::SharedTypes::Legacy::ArmorSlot slot, ::
ItemStack const& item) const
842 virtual ::
HashedString const& getActorRendererId() const ;
845 virtual ::Bedrock::NonOwnerPointer<::Editor::IEditorPlayer> getEditorPlayer() const = 0;
848 virtual
void destroyEditorPlayer() = 0;
851 virtual
void _serverInitItemStackIds() ;
863 ::GameType playerGameType,
864 bool isHostingPlayer,
868 ::
std::
string const& playFabId,
869 ::
std::
string const& deviceId,
872 ::
std::
string const& platformId,
873 ::
std::
string const& platformOnlineId
876 MCAPI
void _addLevels(
int levels);
878 MCAPI
bool _attack(::
Actor& actor, ::SharedTypes::Legacy::ActorDamageCause const& cause,
bool doPredictiveSound);
882 MCAPI
bool _checkAndFixSpawnPosition(
883 ::
Vec3& spawnPosition,
885 bool adjustYToSolidGround,
887 bool positionFromSave
890 MCAPI
void _chooseSpawnArea();
892 MCAPI
bool _chooseSpawnPositionWithinArea();
894 MCAPI
void _ensureSafeSpawnPosition(::
Vec3& pos);
896 MCAPI
bool _findFallbackSpawnPosition(
897 ::
Vec3& spawnPosition,
900 bool checkStoredFallback
903 MCAPI ::
std::optional<::
BlockPos> _findValidPosWithVerticalSpace(::
BlockPos spawnPosition);
905 MCAPI
void _handleCarriedItemInteractText();
907 MCAPI
bool _isChunkSourceLoaded(::
Vec3 const& spawnPosition, ::
BlockSource const& region) const;
909 MCAPI
void _loadInventoryOptions(::
CompoundTag const& tag);
911 MCAPI
void _preSpawnBuildSpawnDataCache();
913 MCAPI
void _registerElytraLoopSound();
915 MCAPI
void _registerPlayerAttributes();
917 MCAPI
void _resetClientAnimations();
919 MCAPI
void _saveInventoryOptions(::
CompoundTag& tag) const;
921 MCAPI
void _sendShieldUpdatePacket(
925 ::ContainerID container,
929 MCAPI
void _setPlayerGameType(::GameType gameType);
931 MCAPI
bool _shouldCrit(::
Actor const& target) const;
933 MCAPI
void _updateInteraction();
935 MCAPI
bool _validateSpawnPositionAvailability(
938 ::
Vec3 const* const AABBoffset
941 MCAPI
bool canBeSeenOnMap() const;
943 MCAPI
bool canJump();
945 MCAPI
bool canOpenContainerScreen();
947 MCAPI
bool canSleep() const;
949 MCAPI
bool canStackInOffhand(::
ItemStack const& item) const;
951 MCAPI
bool canUseAbility(::AbilitiesIndex abilityIndex) const;
953 MCAPI
bool canUseOperatorBlocks() const;
955 MCAPI
void causeFoodExhaustion(
float exhaustionAmount);
957 MCAPI
bool checkBed(::
BlockSource* spawnBlockSource, ::
Vec3 const* const positionToCheck);
959 MCAPI
bool checkNeedAutoJump(
float inputMoveX,
float inputMoveZ);
961 MCAPI
bool checkSpawnBlock(::
BlockSource const& region) const;
963 MCAPI
void completeUsingItem();
965 MCAPI
void eat(::
ItemStack const& instance);
967 MCAPI
void eat(
int hungerValue,
float saturationModifier);
969 MCAPI
bool equippedArmorItemCanBeMoved(::
ItemStack const& item) const;
977 MCAPI ::
Agent* getAgent() const;
979 MCAPI ::
ItemStack const& getCurrentActiveShield() const;
981 MCAPI
float getDestroyProgress(::
Block const& block);
985 MCAPI ::
BlockPos const& getExpectedSpawnPosition() const;
987 MCAPI ::
std::
string getInteractText() const;
989 MCAPI
int getItemCooldownLeft(::
HashedString const& type) const;
991 MCAPI ::
std::
string getItemInteractText(::
Item const& item) const;
993 MCAPI ::
AABB getPickupArea() const;
995 MCAPI ::GameType getPlayerGameType() const;
997 MCFOLD ::
ItemStack const& getSelectedItem() const;
999 MCAPI
float getSleepRotation() const;
1001 MCAPI
int getXpNeededForNextLevel() const;
1003 MCFOLD
bool hasOwnedChunkSource() const;
1007 MCAPI
bool hasRespawnPosition() const;
1009 MCAPI
bool interact(::
Actor& actor, ::
Vec3 const& location);
1011 MCAPI
void inventoryChanged(
1021 MCAPI
bool isFlying() const;
1023 MCAPI
bool isForcedRespawn() const;
1025 MCAPI
bool isHiddenFrom(::
Mob& target) const;
1027 MCAPI
bool isInRaid() const;
1029 MCAPI
bool isItemOnCooldown(::
HashedString const& type) const;
1031 MCAPI
void loadLastDeathLocation(::
CompoundTag const& tag);
1033 MCAPI
void playPredictiveSynchronizedSound(
1034 ::SharedTypes::Legacy::LevelSoundEvent type,
1040 MCAPI
void recheckSpawnPosition();
1042 MCAPI
void releaseUsingItem();
1044 MCAPI
void resetPlayerLevel();
1046 MCAPI
void saveLastDeathLocation(::
CompoundTag& tag) const;
1050 MCAPI
void setBedRespawnPosition(::
BlockPos const& bedPosition);
1054 MCAPI
void setHasDied(
bool hasDied);
1056 MCAPI
void setLastDeathDimension(::
DimensionType dimension);
1058 MCAPI
void setLastDeathPos(::
BlockPos pos);
1060 MCAPI
void setName(::
std::
string const& newName);
1062 MCAPI
void setPlatformOnlineId(::
std::
string const& platformOnlineId);
1064 MCAPI
void setPlayerUIItem(::PlayerUISlot slot, ::
ItemStack const& item,
bool forceBalance);
1068 MCAPI
void setRespawnPositionCandidate();
1070 MCAPI
void setSelectedItem(::
ItemStack const& item);
1072 MCAPI ::
ItemStack const& setSelectedSlot(
int slot);
1074 MCAPI
bool setSpawnBlockRespawnPosition(::
BlockPos const& spawnBlockPosition, ::
DimensionType dimension);
1076 MCAPI
void startCooldown(::
Item const* item,
bool updateClient);
1078 MCAPI
void startCooldown(::
HashedString const& type,
int tickDuration,
bool updateClient);
1080 MCAPI
void startGliding();
1085 MCAPI
void startUsingItem(::
ItemStack const& instance,
int duration);
1087 MCAPI
void stopGliding();
1091 MCAPI
void stopUsingItem();
1093 MCAPI
bool take(::
Actor& actor,
int,
int favoredSlot);
1095 MCAPI
void tickArmor();
1097 MCAPI
bool tryStartGliding();
1101 MCAPI
void updateInventoryTransactions();
1103 MCAPI
void updateSkin(::
SerializedSkin const& skin,
int clientSubID);
1105 MCAPI
void updateTrackedBosses();
1107 MCAPI
void useSelectedItem(::ItemUseMethod itemUseMethod,
bool consumeItem);
1116 ::
Vec3 const& spawnPosition,
1119 bool adjustYToSolidGround,
1122 bool positionFromSave,
1123 bool spawningAtForcedSpawn,
1124 short dimensionHeight
1127 MCAPI static
bool checkNeedAutoJump(
1131 float movementSpeed,
1138 MCAPI static ::
std::optional<::SharedTypes::Legacy::LevelSoundEvent>
1139 getCustomHurtSound(::
Mob& mob, ::SharedTypes::Legacy::ActorDamageCause cause);
1141 MCAPI static
bool isDangerousVolumeForSpawn(::
BlockSource& region, ::
AABB const& centeredAABB);
1144 isDangerousVolume_DEPRECATED(::
BlockSource& region, ::
AABB const& centeredAABB,
bool checkForLava);
1151 updatePlayerGameTypeEntityData(::
EntityContext& entity, ::GameType gameType, ::GameType defaultGameType);
1157 MCAPI static
float const& DEFAULT_BB_HEIGHT();
1159 MCAPI static
float const& DEFAULT_BB_WIDTH();
1161 MCAPI static
float const& DEFAULT_PLAYER_EYE_OFFSET();
1163 MCAPI static
float const& DEFAULT_PLAYER_HEIGHT_OFFSET();
1165 MCAPI static
float const& DISTANCE_TO_TRANSFORM_EVENT();
1167 MCAPI static ::
Attribute const& EXHAUSTION();
1169 MCAPI static ::
Attribute const& EXPERIENCE();
1171 MCAPI static
int const& GLIDE_STOP_DELAY();
1173 MCAPI static ::
Attribute const& HUNGER();
1175 MCAPI static ::
Attribute const& LEVEL();
1177 MCAPI static
float const& PLAYER_SLEEPING_HEIGHT();
1179 MCAPI static ::
Attribute const& SATURATION();
1188 ::GameType playerGameType,
1189 bool isHostingPlayer,
1191 ::SubClientId subid,
1193 ::
std::
string const& playFabId,
1194 ::
std::
string const& deviceId,
1197 ::
std::
string const& platformId,
1198 ::
std::
string const& platformOnlineId
1211 MCAPI
void $initializeComponents(::ActorInitializationMethod method, ::
VariantParameterList const& params);
1213 MCAPI
void $reloadHardcoded(::ActorInitializationMethod method, ::
VariantParameterList const& params);
1215 MCAPI
void $prepareRegion(::
ChunkSource& mainChunkSource);
1217 MCAPI
void $destroyRegion();
1219 MCAPI
void $suspendRegion();
1221 MCAPI
void $_fireDimensionChanged();
1223 MCAPI
bool $canChangeDimensionsUsingPortal() const;
1227 MCAPI
void $tickWorld(::
Tick const&);
1229 MCAPI ::
std::vector<::
ChunkPos> const& $getTickingOffsets() const;
1231 MCAPI
void $normalTick();
1233 MCAPI
void $moveView();
1235 MCAPI
void $moveSpawnView(::
Vec3 const& spawnPosition, ::
DimensionType dimensionType);
1237 MCFOLD
void $onSynchedDataUpdate(
int dataId);
1239 MCAPI
void $aiStep();
1241 MCAPI
bool $isFireImmune() const;
1243 MCFOLD
void $checkMovementStats(::
Vec3 const&);
1245 MCFOLD ::
HashedString $getCurrentStructureFeature() const;
1247 MCFOLD
bool $isAutoJumpEnabled() const;
1249 MCAPI ::
Vec3 $getInterpolatedRidingOffset(
float,
int const) const;
1251 MCAPI
void $passengerTick();
1255 MCAPI
void $remove();
1257 MCAPI
void $respawn();
1259 MCAPI
bool $shouldDropDeathLoot() const;
1263 MCAPI
void $dropEquipmentOnDeath();
1265 MCFOLD
void $clearVanishEnchantedItemsOnDeath();
1267 MCAPI
bool $drop(::
ItemStack const& item,
bool const randomly);
1269 MCFOLD
void $resetRot();
1271 MCAPI
void $resetUserPos(::ActorResetRule resetRule);
1273 MCFOLD
bool $isInTrialMode();
1275 MCAPI
void $setSpeed(
float speed);
1277 MCAPI
int $getItemUseDuration() const;
1279 MCAPI
float $getItemUseStartupProgress() const;
1281 MCAPI
float $getItemUseIntervalProgress() const;
1283 MCAPI
bool $isBlocking() const;
1287 MCAPI
void $handleEntityEvent(::ActorEvent eventId,
int data);
1289 MCAPI ::
std::vector<::
ItemStack const*> $getAllHand() const;
1291 MCAPI ::
std::vector<::
ItemStack const*> $getAllEquipment() const;
1295 MCFOLD ::
ItemStack const& $getCarriedItem() const;
1297 MCAPI
void $setCarriedItem(::
ItemStack const& item);
1299 MCFOLD
void $openPortfolio();
1301 MCFOLD
void $openBook(
int,
bool,
int, ::
BlockActor*);
1309 MCFOLD
void $openInventory();
1311 MCFOLD
void $displayChatMessage(
1312 ::
std::
string const& author,
1313 ::
std::
string const& message,
1314 ::
std::optional<::
std::
string> const filteredMessage
1318 $displayClientMessage(::
std::
string const& message, ::
std::optional<::
std::
string> const filteredMessage);
1320 MCFOLD
void $displayTextObjectMessage(
1322 ::
std::
string const& fromXuid,
1323 ::
std::
string const& fromPlatformId
1326 MCFOLD
void $displayTextObjectWhisperMessage(
1328 ::
std::
string const& xuid,
1329 ::
std::
string const& platformId
1332 MCFOLD
void $displayTextObjectWhisperMessage(
1333 ::
std::
string const& message,
1334 ::
std::
string const& xuid,
1335 ::
std::
string const& platformId
1338 MCFOLD
void $displayWhisperMessage(
1339 ::
std::
string const& author,
1340 ::
std::
string const& message,
1341 ::
std::optional<::
std::
string> const filteredMessage,
1342 ::
std::
string const& xuid,
1343 ::
std::
string const& platformId
1346 MCAPI
float $getShadowRadius() const;
1348 MCAPI
bool $isSleeping() const;
1350 MCAPI
void $setSleeping(
bool val);
1352 MCAPI ::BedSleepingResult $startSleepInBed(::
BlockPos const& bedBlockPos);
1354 MCAPI
void $stopSleepInBed(
bool forcefulWakeUp,
bool updateLevelList);
1356 MCAPI
bool $canStartSleepInBed();
1358 MCFOLD
void $sendInventory(
bool);
1360 MCFOLD
void $openSign(::
BlockPos const&,
bool);
1362 MCFOLD
void $playEmote(::
std::
string const&,
bool const);
1364 MCAPI
bool $isSilentObserver() const;
1366 MCAPI
void $useItem(::
ItemStackBase& item, ::ItemUseMethod itemUseMethod,
bool consumeItem);
1368 MCFOLD
bool $isLoading() const;
1370 MCFOLD
bool $isPlayerInitialized() const;
1372 MCFOLD
void $stopLoading();
1374 MCAPI
float $getSpeed() const;
1376 MCAPI
void $initHUDContainerManager();
1378 MCAPI
void $_crit(::
Actor& actor);
1380 MCAPI
bool $isImmobile() const;
1382 MCFOLD
void $sendMotionPacketIfNeeded();
1386 MCFOLD uint $getUserId() const;
1388 MCAPI
void $addExperience(
int xp);
1390 MCAPI
void $addLevels(
int levels);
1392 MCAPI
void $setOffhandSlot(::
ItemStack const& item);
1398 MCAPI
void $deleteContainerManager();
1400 MCAPI ::
ItemStack const& $getEquippedTotem() const;
1402 MCAPI
bool $consumeTotem();
1404 MCFOLD
bool $isActorRelevant(::
Actor const&);
1406 MCAPI
float $getMapDecorationRotation() const;
1409 $teleportTo(::
Vec3 const& pos,
bool shouldStopRiding,
int cause,
int sourceEntityType,
bool keepVelocity);
1411 MCAPI
bool $startRiding(::
Actor& vehicle,
bool forceRiding);
1413 MCAPI
void $startSwimming();
1415 MCAPI
void $stopSwimming();
1417 MCFOLD
void $onSuspension();
1419 MCFOLD
void $onLinkedSlotsChanged();
1421 MCFOLD
bool $canBePulledIntoVehicle() const;
1423 MCAPI
void $feed(
int itemId);
1425 MCFOLD
void $sendNetworkPacket(::
Packet& packet) const;
1427 MCFOLD
bool $canExistWhenDisallowMob() const;
1429 MCAPI ::mce::Color $getNameTagTextColor() const;
1431 MCAPI
bool $canAddPassenger(::
Actor& passenger) const;
1433 MCFOLD
bool $isSimulated() const;
1435 MCAPI ::
std::
string $getXuid() const;
1439 MCAPI
bool $canFreeze() const;
1441 MCAPI
bool $canInteractWithOtherEntitiesInGame() const;
1443 MCAPI
bool $canObstructSpawningAndBlockPlacement() const;
1445 MCAPI ::
std::optional<::
BlockPos> $getLastDeathPos() const;
1449 MCAPI
bool $hasDiedBefore() const;
1451 MCAPI
void $doEnterWaterSplashEffect();
1453 MCAPI
void $doExitWaterSplashEffect();
1455 MCFOLD
void $requestMissingSubChunk(::
SubChunkPos const&);
1457 MCFOLD uchar $getMaxChunkBuildRadius() const;
1459 MCAPI
float $causeFallDamageToActor(
float distance,
float multiplier, ::
ActorDamageSource source);
1461 MCAPI
bool $_hurt(::
ActorDamageSource const& source,
float damage,
bool knock,
bool ignite);
1465 MCAPI
void $addAdditionalSaveData(::
CompoundTag& entityTag) const;
1467 MCAPI
void $onMovePlayerPacketNormal(::
Vec3 const& pos, ::
Vec2 const& rot,
float yHeadRot);
1469 MCAPI
bool $_shouldProvideFeedbackOnHandContainerItemSet(::HandSlot handSlot, ::
ItemStack const& item) const;
1477 MCAPI ::
HashedString const& $getActorRendererId() const;
1479 MCFOLD
void $_serverInitItemStackIds();