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;
206 using ContainerManagerSubscriber = ::Bedrock::PubSub::
220 LLNDAPI SubClientId
const& getClientSubId()
const;
222 LLNDAPI
int getSelectedItemSlot()
const;
249 LLNDAPI std::optional<NetworkPeer::NetworkStatus> getNetworkStatus()
const;
260 LLAPI
void setAbility(::AbilitiesIndex index,
bool value);
283 ::ll::TypedStorage<8, 24, ::std::vector<ushort>> mOceanBiomes;
284 ::ll::TypedStorage<8, 24, ::std::vector<ushort>> mFroglights;
285 ::ll::TypedStorage<4, 4, float const> mSneakHeight;
286 ::ll::TypedStorage<4, 4, float const> mSneakOffset;
287 ::ll::TypedStorage<4, 4, int> mScore;
288 ::ll::TypedStorage<4, 4, float> mOBob;
289 ::ll::TypedStorage<4, 4, float> mBob;
290 ::ll::TypedStorage<4, 4, ::BuildPlatform> mBuildPlatform;
291 ::ll::TypedStorage<8, 32, ::std::string> mUniqueName;
292 ::ll::TypedStorage<8, 32, ::std::string> mServerId;
293 ::ll::TypedStorage<8, 32, ::std::string> mSelfSignedId;
294 ::ll::TypedStorage<8, 32, ::std::string> mPlatformOfflineId;
295 ::ll::TypedStorage<8, 8, uint64> mClientRandomId;
296 ::ll::TypedStorage<8, 32, ::std::string> mPlatformId;
297 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPendingVehicleID;
298 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPendingLeftShoulderPassengerID;
299 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPendingRightShoulderPassengerID;
300 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mInteractTarget;
301 ::ll::TypedStorage<4, 12, ::Vec3> mInteractTargetPos;
302 ::ll::TypedStorage<1, 1, bool> mHasFakeInventory;
303 ::ll::TypedStorage<1, 1, bool> mIsRegionSuspended;
304 ::ll::TypedStorage<1, 1, bool> mUpdateMobs;
305 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ChunkViewSource>> mChunkSource;
306 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ChunkViewSource>> mSpawnChunkSource;
307 ::ll::TypedStorage<4, 12, ::Vec3> mCapePosO;
308 ::ll::TypedStorage<4, 12, ::Vec3> mCapePos;
309 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ContainerManagerModel>> mContainerManager;
310 ::ll::TypedStorage<8, 8, ::std::unique_ptr<ContainerManagerSubscriber>> mContainerManagerSubscribers;
311 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PlayerInventory>> mInventory;
312 ::ll::TypedStorage<4, 20, ::InventoryOptions> mInventoryOptions;
313 ::ll::TypedStorage<4, 4, float> mDistanceSinceTransformEvent;
314 ::ll::TypedStorage<8, 24, ::std::vector<::ItemInstance>> mCreativeItemList;
315 ::ll::TypedStorage<8, 32, ::std::string> mPlatformOnlineId;
316 ::ll::TypedStorage<4, 4, ::Player::SpawnPositionState> mSpawnPositionState;
317 ::ll::TypedStorage<4, 4, ::Player::SpawnPositionSource> mSpawnPositionSource;
318 ::ll::TypedStorage<4, 12, ::Vec3> mSpawnPositioningTestPosition;
319 ::ll::TypedStorage<4, 4, uint> mRespawnChunkBuilderPolicyHandle;
320 ::ll::TypedStorage<4, 64, ::Player::CachedSpawnData> mCachedSpawnData;
321 ::ll::TypedStorage<8, 16, ::OwnerPtr<::BlockSource>> mSpawnBlockSource;
322 ::ll::TypedStorage<8, 56, ::Stopwatch> mRespawnStopwatch_Searching;
323 ::ll::TypedStorage<4, 12, ::Vec3> mRespawnOriginalPosition;
324 ::ll::TypedStorage<4, 4, ::DimensionType> mRespawnOriginalDimension;
325 ::ll::TypedStorage<8, 32, ::std::string> mRespawnMessage;
326 ::ll::TypedStorage<1, 1, bool> mRespawnReady;
327 ::ll::TypedStorage<1, 1, bool> mIsInitialSpawnDone;
328 ::ll::TypedStorage<1, 1, bool> mRespawningFromTheEnd;
329 ::ll::TypedStorage<1, 1, bool> mPositionLoadedFromSave;
330 ::ll::TypedStorage<1, 1, bool> mBlockRespawnUntilClientMessage;
331 ::ll::TypedStorage<1, 1, bool> mHasSeenCredits;
332 ::ll::TypedStorage<4, 8, ::std::optional<::PlayerSpawnFallbackType>> mSpawnFallbackType;
333 ::ll::TypedStorage<4, 16, ::std::optional<::Vec3>> mSpawnFallbackPosition;
334 ::ll::TypedStorage<8, 168, ::PlayerItemInUse> mItemInUse;
335 ::ll::TypedStorage<4, 4, ::ActorType> mLastHurtBy;
336 ::ll::TypedStorage<2, 2, short> mSleepCounter;
337 ::ll::TypedStorage<2, 2, short> mPrevSleepCounter;
338 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPreviousInteractEntity;
339 ::ll::TypedStorage<4, 4, int> mPreviousCarriedItem;
340 ::ll::TypedStorage<4, 4, int> mEmoteTicks;
341 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::NetworkChunkPublisher>> mChunkPublisherView;
342 ::ll::TypedStorage<8, 8, ::PacketSender&> mPacketSender;
343 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::HudContainerManagerModel>> mHudContainerManagerModel;
344 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::EnderChestContainer>> mEnderChestInventory;
345 ::ll::TypedStorage<8, 24, ::std::vector<::ActorUniqueID>> mTrackedBossIDs;
346 ::ll::TypedStorage<8, 136, ::ItemGroup> mCursorSelectedItemGroup;
347 ::ll::TypedStorage<8, 520, ::PlayerUIContainer> mPlayerUIContainer;
348 ::ll::TypedStorage<8, 48, ::InventoryTransactionManager> mTransactionManager;
349 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::GameMode>> mGameMode;
350 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PlayerRespawnRandomizer>> mSpawnRandomizer;
351 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::SerializedSkin>> mSkin;
352 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ItemStackNetManagerBase>> mItemStackNetManager;
353 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::AnimationComponent>> mUIAnimationComponent;
354 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::AnimationComponent>> mMapAnimationComponent;
355 ::ll::TypedStorage<4, 28, ::Player::PlayerSpawnPoint> mPlayerRespawnPoint;
356 ::ll::TypedStorage<4, 4, float> mServerBuildRatio;
357 ::ll::TypedStorage<1, 1, ::SubClientId> mClientId;
358 ::ll::TypedStorage<1, 1, bool> mInteractDataDirty;
359 ::ll::TypedStorage<1, 1, bool> mShouldClientGenerateChunks;
360 ::ll::TypedStorage<1, 1, bool> mUseMapAnimationComponent;
361 ::ll::TypedStorage<1, 1, bool> mIsDeferredRenderingFirstPersonObjects;
362 ::ll::TypedStorage<1, 1, bool> mDestroyingBlock;
363 ::ll::TypedStorage<1, 1, bool> mPlayerLevelChanged;
364 ::ll::TypedStorage<4, 4, int> mPreviousLevelRequirement;
365 ::ll::TypedStorage<4, 4, int> mLastLevelUpTime;
366 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::AnimationComponent>> mFirstPersonAnimationComponent;
367 ::ll::TypedStorage<8, 24, ::std::vector<::PlayerListener*>> mListeners;
368 ::ll::TypedStorage<4, 12, ::Vec3> mRespawnPositionCandidate;
369 ::ll::TypedStorage<4, 12, ::Vec3> mPreDimensionTransferSpawnPosition;
370 ::ll::TypedStorage<4, 4, int> mEnchantmentSeed;
371 ::ll::TypedStorage<8, 24, ::std::vector<uint>> mOnScreenAnimationTextures;
372 ::ll::TypedStorage<4, 4, int> mOnScreenAnimationTicks;
373 ::ll::TypedStorage<4, 4, uint> mChunkRadius;
374 ::ll::TypedStorage<4, 4, int> mMapIndex;
375 ::ll::TypedStorage<4, 4, float> mElytraVolume;
376 ::ll::TypedStorage<8, 8, uint64> mElytraLoop;
377 ::ll::TypedStorage<8, 64, ::std::unordered_map<::HashedString, int>> mCooldowns;
378 ::ll::TypedStorage<8, 64, ::std::unordered_map<::HashedString, ::HashedString>> mVanillaCooldowns;
379 ::ll::TypedStorage<8, 8, int64> mStartedBlockingTimeStamp;
380 ::ll::TypedStorage<8, 8, int64> mBlockedUsingShieldTimeStamp;
381 ::ll::TypedStorage<8, 8, int64> mBlockedUsingDamagedShieldTimeStamp;
382 ::ll::TypedStorage<8, 32, ::std::string> mName;
383 ::ll::TypedStorage<8, 32, ::std::string> mLastEmotePlayed;
384 ::ll::TypedStorage<8, 8, int64> mEmoteEasterEggEndTime;
385 ::ll::TypedStorage<4, 4, uint> mEmoteMessageCount;
386 ::ll::TypedStorage<8, 32, ::std::string> mDeviceId;
387 ::ll::TypedStorage<1, 1, bool> mFlagClientForBAIReset;
388 ::ll::TypedStorage<1, 1, bool> mSendInventoryOptionsToClient;
389 ::ll::TypedStorage<1, 1, bool> mIsHostingPlayer;
390 ::ll::TypedStorage<1, 1, bool> mPrevBlockedUsingShield;
391 ::ll::TypedStorage<1, 1, bool> mPrevBlockedUsingDamagedShield;
392 ::ll::TypedStorage<1, 1, bool> mUsedPotion;
393 ::ll::TypedStorage<8, 8, ::PlayerDestroyProgressCacheComponent&> mDestroyProgressCache;
413 virtual void destroyRegion();
416 virtual void suspendRegion();
419 virtual void _fireDimensionChanged();
422 virtual bool canChangeDimensionsUsingPortal() const ;
428 virtual
void tickWorld(::
Tick const&);
434 virtual ::
std::vector<::
ChunkPos> const& getTickingOffsets() const;
437 virtual
void normalTick() ;
440 virtual
void moveView();
443 virtual
void moveSpawnView(::
Vec3 const& spawnPosition, ::
DimensionType dimensionType);
446 virtual
void onSynchedDataUpdate(
int dataId) ;
449 virtual
void aiStep() ;
452 virtual
bool isFireImmune() const ;
455 virtual
void checkMovementStats(::
Vec3 const&);
458 virtual ::
HashedString getCurrentStructureFeature() const;
461 virtual
bool isAutoJumpEnabled() const;
464 virtual ::
Vec3 getInterpolatedRidingOffset(
float,
int const) const ;
467 virtual
void passengerTick() ;
473 virtual
void remove() ;
476 virtual
void respawn();
479 virtual
bool shouldDropDeathLoot() const ;
485 virtual
void dropEquipmentOnDeath() ;
488 virtual
void clearVanishEnchantedItemsOnDeath() ;
491 virtual
bool drop(::
ItemStack const& item,
bool const randomly) ;
494 virtual
void resetRot();
497 virtual
void resetUserPos(
bool clearMore) ;
500 virtual
bool isInTrialMode();
503 virtual
void setSpeed(
float speed) ;
506 virtual
int getItemUseDuration() const ;
509 virtual
float getItemUseStartupProgress() const ;
512 virtual
float getItemUseIntervalProgress() const ;
515 virtual
bool isBlocking() const ;
521 virtual
void handleEntityEvent(::ActorEvent eventId,
int data) ;
524 virtual ::
std::vector<::
ItemStack const*> getAllHand() const ;
527 virtual ::
std::vector<::
ItemStack const*> getAllEquipment() const ;
533 virtual ::CommandPermissionLevel getCommandPermissionLevel() const ;
536 virtual
bool attack(::
Actor&, ::SharedTypes::Legacy::ActorDamageCause const&) ;
539 virtual ::
ItemStack const& getCarriedItem() const ;
542 virtual
void setCarriedItem(::
ItemStack const& item) ;
545 virtual
void openPortfolio();
548 virtual
void openBook(
int,
bool,
int, ::
BlockActor*);
560 virtual
void openInventory();
563 virtual
void displayChatMessage(
564 ::
std::
string const& author,
565 ::
std::
string const& message,
566 ::
std::optional<::
std::
string> const filteredMessage
571 displayClientMessage(::
std::
string const& message, ::
std::optional<::
std::
string> const filteredMessage);
574 virtual
void displayTextObjectMessage(
576 ::
std::
string const& fromXuid,
577 ::
std::
string const& fromPlatformId
581 virtual
void displayTextObjectWhisperMessage(
583 ::
std::
string const& xuid,
584 ::
std::
string const& platformId
588 virtual
void displayTextObjectWhisperMessage(
589 ::
std::
string const& message,
590 ::
std::
string const& xuid,
591 ::
std::
string const& platformId
595 virtual
void displayWhisperMessage(
596 ::
std::
string const& author,
597 ::
std::
string const& message,
598 ::
std::optional<::
std::
string> const filteredMessage,
599 ::
std::
string const& xuid,
600 ::
std::
string const& platformId
604 virtual
float getShadowRadius() const ;
607 virtual
bool isSleeping() const ;
610 virtual
void setSleeping(
bool val) ;
613 virtual ::BedSleepingResult startSleepInBed(::
BlockPos const& bedBlockPos);
616 virtual
void stopSleepInBed(
bool forcefulWakeUp,
bool updateLevelList);
619 virtual
bool canStartSleepInBed();
622 virtual
void sendInventory(
bool) ;
625 virtual
void openSign(::
BlockPos const&,
bool);
628 virtual
void playEmote(::
std::
string const&,
bool const);
631 virtual
bool isSilentObserver() const ;
634 virtual
void useItem(::
ItemStackBase& item, ::ItemUseMethod itemUseMethod,
bool consumeItem) ;
637 virtual
bool isLoading() const;
640 virtual
bool isPlayerInitialized() const;
643 virtual
void stopLoading();
646 virtual
float getSpeed() const ;
649 virtual
void setPlayerGameType(::GameType);
652 virtual
void initHUDContainerManager();
655 virtual
void _crit(::
Actor& actor);
658 virtual
bool isImmobile() const ;
667 virtual uint getUserId() const;
670 virtual
void addExperience(
int xp);
673 virtual
void addLevels(
int levels);
676 virtual
void setArmor(::SharedTypes::Legacy::ArmorSlot slot, ::
ItemStack const& item) ;
679 virtual
void setOffhandSlot(::
ItemStack const& item) ;
697 virtual
void deleteContainerManager();
700 virtual ::
ItemStack const& getEquippedTotem() const ;
703 virtual
bool consumeTotem() ;
706 virtual
bool isActorRelevant(::
Actor const&);
709 virtual
float getMapDecorationRotation() const ;
712 virtual
void teleportTo(
714 bool shouldStopRiding,
716 int sourceEntityType,
721 virtual
bool startRiding(::
Actor& vehicle,
bool forceRiding) ;
724 virtual
void startSwimming() ;
727 virtual
void stopSwimming() ;
730 virtual
bool isTeacher() const = 0;
733 virtual
void onSuspension();
736 virtual
void onLinkedSlotsChanged();
739 virtual
bool canBePulledIntoVehicle() const ;
742 virtual
void feed(
int itemId) ;
751 virtual
void sendNetworkPacket(::
Packet& packet) const;
754 virtual
bool canExistWhenDisallowMob() const ;
757 virtual ::mce::Color getNameTagTextColor() const ;
760 virtual
bool canAddPassenger(::
Actor& passenger) const ;
766 virtual
bool isSimulated() const;
769 virtual ::
std::
string getXuid() const;
775 virtual
bool canFreeze() const ;
778 virtual
bool canInteractWithOtherEntitiesInGame() const ;
781 virtual
bool canObstructSpawningAndBlockPlacement() const ;
784 virtual ::
std::optional<::
BlockPos> getLastDeathPos() const ;
790 virtual
bool hasDiedBefore() const ;
793 virtual
void doEnterWaterSplashEffect() ;
796 virtual
void doExitWaterSplashEffect() ;
799 virtual
void requestMissingSubChunk(::
SubChunkPos const&);
802 virtual uchar getMaxChunkBuildRadius() const;
805 virtual
float causeFallDamageToActor(
float distance,
float multiplier, ::
ActorDamageSource source) ;
808 virtual
bool _hurt(::
ActorDamageSource const& source,
float damage,
bool knock,
bool ignite) ;
814 virtual
void addAdditionalSaveData(::
CompoundTag& entityTag) const ;
817 virtual
void onMovePlayerPacketNormal(::
Vec3 const& pos, ::
Vec2 const& rot,
float yHeadRot);
820 virtual
bool _shouldProvideFeedbackOnHandContainerItemSet(::HandSlot handSlot, ::
ItemStack const& item) const
824 virtual
bool _shouldProvideFeedbackOnArmorSet(::SharedTypes::Legacy::ArmorSlot slot, ::
ItemStack const& item) const
837 virtual ::
HashedString const& getActorRendererId() const ;
840 virtual ::Bedrock::NonOwnerPointer<::Editor::IEditorPlayer> getEditorPlayer() const = 0;
843 virtual
void destroyEditorPlayer() = 0;
846 virtual
void _serverInitItemStackIds() ;
858 ::GameType playerGameType,
859 bool isHostingPlayer,
863 ::
std::
string const& playFabId,
864 ::
std::
string const& deviceId,
867 ::
std::
string const& platformId,
868 ::
std::
string const& platformOnlineId
871 MCAPI
void _addLevels(
int levels);
873 MCAPI
bool _attack(::
Actor& actor, ::SharedTypes::Legacy::ActorDamageCause const& cause,
bool doPredictiveSound);
877 MCAPI
bool _checkAndFixSpawnPosition(
878 ::
Vec3& spawnPosition,
880 bool adjustYToSolidGround,
882 bool positionFromSave
885 MCAPI
void _chooseSpawnArea();
887 MCAPI
bool _chooseSpawnPositionWithinArea();
889 MCAPI
void _ensureSafeSpawnPosition(::
Vec3& pos);
891 MCAPI
bool _findFallbackSpawnPosition(
892 ::
Vec3& spawnPosition,
895 bool checkStoredFallback
898 MCAPI ::
std::optional<::
BlockPos> _findValidPosWithVerticalSpace(::
BlockPos spawnPosition);
900 MCAPI
void _handleCarriedItemInteractText();
902 MCAPI
bool _isChunkSourceLoaded(::
Vec3 const& spawnPosition, ::
BlockSource const& region) const;
904 MCAPI
void _loadInventoryOptions(::
CompoundTag const& tag);
906 MCAPI
void _preSpawnBuildSpawnDataCache();
908 MCAPI
void _registerElytraLoopSound();
910 MCAPI
void _registerPlayerAttributes();
912 MCAPI
void _resetClientAnimations();
914 MCAPI
void _saveInventoryOptions(::
CompoundTag& tag) const;
916 MCAPI
void _sendShieldUpdatePacket(
920 ::ContainerID shieldItem,
924 MCAPI
void _setPlayerGameType(::GameType gameType);
926 MCAPI
bool _shouldCrit(::
Actor const& target) const;
928 MCAPI
void _updateInteraction();
930 MCAPI
bool _validateSpawnPositionAvailability(
933 ::
Vec3 const* const AABBoffset
936 MCAPI
bool canJump();
938 MCAPI
bool canOpenContainerScreen();
940 MCAPI
bool canSleep() const;
942 MCAPI
bool canStackInOffhand(::
ItemStack const& item) const;
944 MCAPI
bool canUseAbility(::AbilitiesIndex abilityIndex) const;
946 MCAPI
bool canUseOperatorBlocks() const;
948 MCAPI
void causeFoodExhaustion(
float exhaustionAmount);
950 MCAPI
bool checkBed(::
BlockSource* spawnBlockSource, ::
Vec3 const* const positionToCheck);
952 MCAPI
bool checkNeedAutoJump(
float inputMoveX,
float inputMoveZ);
954 MCAPI
bool checkSpawnBlock(::
BlockSource const& region) const;
956 MCAPI
void completeUsingItem();
958 MCAPI
void eat(::
ItemStack const& instance);
960 MCAPI
void eat(
int hungerValue,
float saturationModifier);
962 MCAPI
bool equippedArmorItemCanBeMoved(::
ItemStack const& item) const;
970 MCAPI ::
Agent* getAgent() const;
972 MCAPI ::
ItemStack const& getCurrentActiveShield() const;
974 MCAPI
float getDestroyProgress(::
Block const& block);
978 MCAPI ::
BlockPos const& getExpectedSpawnPosition() const;
980 MCAPI ::
std::
string getInteractText() const;
982 MCAPI
int getItemCooldownLeft(::
HashedString const& type) const;
984 MCAPI ::
std::
string getItemInteractText(::
Item const& item) const;
986 MCAPI ::
AABB getPickupArea() const;
988 MCAPI ::GameType getPlayerGameType() const;
990 MCFOLD ::
ItemStack const& getSelectedItem() const;
992 MCAPI
float getSleepRotation() const;
994 MCAPI
int getXpNeededForNextLevel() const;
996 MCFOLD
bool hasOwnedChunkSource() const;
1000 MCAPI
bool hasRespawnPosition() const;
1002 MCAPI
bool interact(::
Actor& actor, ::
Vec3 const& location);
1004 MCAPI
void inventoryChanged(
1014 MCAPI
bool isFlying() const;
1016 MCAPI
bool isForcedRespawn() const;
1018 MCAPI
bool isHiddenFrom(::
Mob& target) const;
1020 MCAPI
bool isInRaid() const;
1022 MCAPI
bool isItemOnCooldown(::
HashedString const& type) const;
1024 MCAPI
void loadLastDeathLocation(::
CompoundTag const& tag);
1026 MCAPI
void playPredictiveSynchronizedSound(
1027 ::SharedTypes::Legacy::LevelSoundEvent type,
1034 MCAPI
void recheckSpawnPosition();
1036 MCAPI
void releaseUsingItem();
1038 MCAPI
void resetPlayerLevel();
1040 MCAPI
void saveLastDeathLocation(::
CompoundTag& tag) const;
1044 MCAPI
void setBedRespawnPosition(::
BlockPos const& bedPosition);
1048 MCAPI
void setHasDied(
bool hasDied);
1050 MCAPI
void setLastDeathDimension(::
DimensionType dimension);
1052 MCAPI
void setLastDeathPos(::
BlockPos pos);
1054 MCAPI
void setName(::
std::
string const& newName);
1056 MCAPI
void setPlatformOnlineId(::
std::
string const& platformOnlineId);
1058 MCAPI
void setPlayerUIItem(::PlayerUISlot slot, ::
ItemStack const& item,
bool forceBalance);
1062 MCAPI
void setRespawnPositionCandidate();
1064 MCAPI
void setSelectedItem(::
ItemStack const& item);
1066 MCAPI ::
ItemStack const& setSelectedSlot(
int slot);
1068 MCAPI
bool setSpawnBlockRespawnPosition(::
BlockPos const& spawnBlockPosition, ::
DimensionType dimension);
1070 MCAPI
void startCooldown(::
Item const* item,
bool updateClient);
1072 MCAPI
void startCooldown(::
HashedString const& type,
int tickDuration,
bool updateClient);
1074 MCAPI
void startGliding();
1079 MCAPI
void startUsingItem(::
ItemStack const& instance,
int duration);
1081 MCAPI
void stopGliding();
1085 MCAPI
void stopUsingItem();
1087 MCAPI
bool take(::
Actor& actor,
int favoredSlot,
int);
1089 MCAPI
void tickArmor();
1091 MCAPI
bool tryStartGliding();
1095 MCAPI
void updateInventoryTransactions();
1097 MCAPI
void updateSkin(::
SerializedSkin const& skin,
int clientSubID);
1099 MCAPI
void updateTrackedBosses();
1101 MCAPI
void useSelectedItem(::ItemUseMethod itemUseMethod,
bool consumeItem);
1110 ::
Vec3 const& spawnPosition,
1113 bool adjustYToSolidGround,
1115 bool positionFromSave,
1116 bool spawningAtForcedSpawn,
1117 bool dimensionHeight,
1121 MCAPI static
bool checkNeedAutoJump(
1125 float movementSpeed,
1132 MCAPI static ::
std::optional<::SharedTypes::Legacy::LevelSoundEvent>
1133 getCustomHurtSound(::
Mob& mob, ::SharedTypes::Legacy::ActorDamageCause cause);
1135 MCAPI static
bool isDangerousVolumeForSpawn(::
BlockSource& region, ::
AABB const& centeredAABB);
1138 isDangerousVolume_DEPRECATED(::
BlockSource& region, ::
AABB const& centeredAABB,
bool checkForLava);
1145 updatePlayerGameTypeEntityData(::
EntityContext& entity, ::GameType gameType, ::GameType defaultGameType);
1151 MCAPI static
float const& DEFAULT_BB_HEIGHT();
1153 MCAPI static
float const& DEFAULT_BB_WIDTH();
1155 MCAPI static
float const& DEFAULT_PLAYER_EYE_OFFSET();
1157 MCAPI static
float const& DEFAULT_PLAYER_HEIGHT_OFFSET();
1159 MCAPI static
float const& DISTANCE_TO_TRANSFORM_EVENT();
1161 MCAPI static ::
Attribute const& EXHAUSTION();
1163 MCAPI static ::
Attribute const& EXPERIENCE();
1165 MCAPI static
int const& GLIDE_STOP_DELAY();
1167 MCAPI static ::
Attribute const& HUNGER();
1169 MCAPI static ::
Attribute const& LEVEL();
1171 MCAPI static
float const& PLAYER_SLEEPING_HEIGHT();
1173 MCAPI static ::
Attribute const& SATURATION();
1182 ::GameType playerGameType,
1183 bool isHostingPlayer,
1185 ::SubClientId subid,
1187 ::
std::
string const& playFabId,
1188 ::
std::
string const& deviceId,
1191 ::
std::
string const& platformId,
1192 ::
std::
string const& platformOnlineId
1205 MCAPI
void $initializeComponents(::ActorInitializationMethod method, ::
VariantParameterList const& params);
1207 MCAPI
void $reloadHardcoded(::ActorInitializationMethod method, ::
VariantParameterList const& params);
1209 MCAPI
void $prepareRegion(::
ChunkSource& mainChunkSource);
1211 MCAPI
void $destroyRegion();
1213 MCAPI
void $suspendRegion();
1215 MCAPI
void $_fireDimensionChanged();
1217 MCAPI
bool $canChangeDimensionsUsingPortal() const;
1221 MCAPI
void $tickWorld(::
Tick const&);
1223 MCAPI ::
std::vector<::
ChunkPos> const& $getTickingOffsets() const;
1225 MCAPI
void $normalTick();
1227 MCAPI
void $moveView();
1229 MCAPI
void $moveSpawnView(::
Vec3 const& spawnPosition, ::
DimensionType dimensionType);
1231 MCFOLD
void $onSynchedDataUpdate(
int dataId);
1233 MCAPI
void $aiStep();
1235 MCAPI
bool $isFireImmune() const;
1237 MCFOLD
void $checkMovementStats(::
Vec3 const&);
1239 MCFOLD ::
HashedString $getCurrentStructureFeature() const;
1241 MCFOLD
bool $isAutoJumpEnabled() const;
1243 MCAPI ::
Vec3 $getInterpolatedRidingOffset(
float,
int const) const;
1245 MCAPI
void $passengerTick();
1249 MCAPI
void $remove();
1251 MCAPI
void $respawn();
1253 MCAPI
bool $shouldDropDeathLoot() const;
1257 MCAPI
void $dropEquipmentOnDeath();
1259 MCFOLD
void $clearVanishEnchantedItemsOnDeath();
1261 MCAPI
bool $drop(::
ItemStack const& item,
bool const randomly);
1263 MCFOLD
void $resetRot();
1265 MCAPI
void $resetUserPos(
bool clearMore);
1267 MCFOLD
bool $isInTrialMode();
1269 MCAPI
void $setSpeed(
float speed);
1271 MCAPI
int $getItemUseDuration() const;
1273 MCAPI
float $getItemUseStartupProgress() const;
1275 MCAPI
float $getItemUseIntervalProgress() const;
1277 MCAPI
bool $isBlocking() const;
1281 MCAPI
void $handleEntityEvent(::ActorEvent eventId,
int data);
1283 MCAPI ::
std::vector<::
ItemStack const*> $getAllHand() const;
1285 MCAPI ::
std::vector<::
ItemStack const*> $getAllEquipment() const;
1289 MCFOLD ::
ItemStack const& $getCarriedItem() const;
1291 MCAPI
void $setCarriedItem(::
ItemStack const& item);
1293 MCFOLD
void $openPortfolio();
1295 MCFOLD
void $openBook(
int,
bool,
int, ::
BlockActor*);
1303 MCFOLD
void $openInventory();
1305 MCFOLD
void $displayChatMessage(
1306 ::
std::
string const& author,
1307 ::
std::
string const& message,
1308 ::
std::optional<::
std::
string> const filteredMessage
1312 $displayClientMessage(::
std::
string const& message, ::
std::optional<::
std::
string> const filteredMessage);
1314 MCFOLD
void $displayTextObjectMessage(
1316 ::
std::
string const& fromXuid,
1317 ::
std::
string const& fromPlatformId
1320 MCFOLD
void $displayTextObjectWhisperMessage(
1322 ::
std::
string const& xuid,
1323 ::
std::
string const& platformId
1326 MCFOLD
void $displayTextObjectWhisperMessage(
1327 ::
std::
string const& message,
1328 ::
std::
string const& xuid,
1329 ::
std::
string const& platformId
1332 MCFOLD
void $displayWhisperMessage(
1333 ::
std::
string const& author,
1334 ::
std::
string const& message,
1335 ::
std::optional<::
std::
string> const filteredMessage,
1336 ::
std::
string const& xuid,
1337 ::
std::
string const& platformId
1340 MCAPI
float $getShadowRadius() const;
1342 MCAPI
bool $isSleeping() const;
1344 MCAPI
void $setSleeping(
bool val);
1346 MCAPI ::BedSleepingResult $startSleepInBed(::
BlockPos const& bedBlockPos);
1348 MCAPI
void $stopSleepInBed(
bool forcefulWakeUp,
bool updateLevelList);
1350 MCAPI
bool $canStartSleepInBed();
1352 MCFOLD
void $sendInventory(
bool);
1354 MCFOLD
void $openSign(::
BlockPos const&,
bool);
1356 MCFOLD
void $playEmote(::
std::
string const&,
bool const);
1358 MCAPI
bool $isSilentObserver() const;
1360 MCAPI
void $useItem(::
ItemStackBase& item, ::ItemUseMethod itemUseMethod,
bool consumeItem);
1362 MCFOLD
bool $isLoading() const;
1364 MCFOLD
bool $isPlayerInitialized() const;
1366 MCFOLD
void $stopLoading();
1368 MCAPI
float $getSpeed() const;
1370 MCAPI
void $initHUDContainerManager();
1372 MCAPI
void $_crit(::
Actor& actor);
1374 MCAPI
bool $isImmobile() const;
1380 MCFOLD uint $getUserId() const;
1382 MCAPI
void $addExperience(
int xp);
1384 MCAPI
void $addLevels(
int levels);
1386 MCAPI
void $setArmor(::SharedTypes::Legacy::ArmorSlot slot, ::
ItemStack const& item);
1388 MCAPI
void $setOffhandSlot(::
ItemStack const& item);
1394 MCAPI
void $deleteContainerManager();
1396 MCAPI ::
ItemStack const& $getEquippedTotem() const;
1398 MCAPI
bool $consumeTotem();
1400 MCFOLD
bool $isActorRelevant(::
Actor const&);
1402 MCAPI
float $getMapDecorationRotation() const;
1405 $teleportTo(::
Vec3 const& pos,
bool shouldStopRiding,
int cause,
int sourceEntityType,
bool keepVelocity);
1407 MCAPI
bool $startRiding(::
Actor& vehicle,
bool forceRiding);
1409 MCAPI
void $startSwimming();
1411 MCAPI
void $stopSwimming();
1413 MCFOLD
void $onSuspension();
1415 MCFOLD
void $onLinkedSlotsChanged();
1417 MCFOLD
bool $canBePulledIntoVehicle() const;
1419 MCAPI
void $feed(
int itemId);
1421 MCFOLD
void $sendNetworkPacket(::
Packet& packet) const;
1423 MCFOLD
bool $canExistWhenDisallowMob() const;
1425 MCAPI ::mce::Color $getNameTagTextColor() const;
1427 MCAPI
bool $canAddPassenger(::
Actor& passenger) const;
1429 MCFOLD
bool $isSimulated() const;
1431 MCAPI ::
std::
string $getXuid() const;
1435 MCAPI
bool $canFreeze() const;
1437 MCAPI
bool $canInteractWithOtherEntitiesInGame() const;
1439 MCAPI
bool $canObstructSpawningAndBlockPlacement() const;
1441 MCAPI ::
std::optional<::
BlockPos> $getLastDeathPos() const;
1445 MCAPI
bool $hasDiedBefore() const;
1447 MCAPI
void $doEnterWaterSplashEffect();
1449 MCAPI
void $doExitWaterSplashEffect();
1451 MCFOLD
void $requestMissingSubChunk(::
SubChunkPos const&);
1453 MCFOLD uchar $getMaxChunkBuildRadius() const;
1455 MCAPI
float $causeFallDamageToActor(
float distance,
float multiplier, ::
ActorDamageSource source);
1457 MCAPI
bool $_hurt(::
ActorDamageSource const& source,
float damage,
bool knock,
bool ignite);
1461 MCAPI
void $addAdditionalSaveData(::
CompoundTag& entityTag) const;
1463 MCAPI
void $onMovePlayerPacketNormal(::
Vec3 const& pos, ::
Vec2 const& rot,
float yHeadRot);
1465 MCAPI
bool $_shouldProvideFeedbackOnHandContainerItemSet(::HandSlot handSlot, ::
ItemStack const& item) const;
1467 MCAPI
bool $_shouldProvideFeedbackOnArmorSet(::SharedTypes::Legacy::ArmorSlot slot, ::
ItemStack const& item) const;
1475 MCAPI ::
HashedString const& $getActorRendererId() const;
1477 MCFOLD
void $_serverInitItemStackIds();
1485 MCAPI static
void** $vftable();