131class Player :
public ::Mob {
143 enum class SpawnPositionSource :
int {
150 enum class SpawnPositionState :
int {
151 InitializeSpawnPositionRandomizer = 0,
152 WaitForClientAck = 1,
153 DetermineDimension = 2,
155 WaitForDimension = 4,
157 CheckLoadedChunk = 6,
158 ChooseSpawnPosition = 7,
165 enum class Sound :
int {
174 ::ll::TypedStorage<4, 4, ::Player::AttackParameters::Sound> mSound;
175 ::ll::TypedStorage<1, 1, bool> mTriggerCooldown;
176 ::ll::TypedStorage<1, 1, bool> mCanCrit;
177 ::ll::TypedStorage<4, 16, ::std::optional<::Vec3>> mAimDirection;
185 ::ll::TypedStorage<4, 4, ::DimensionType> mRespawnDimensionId;
186 ::ll::TypedStorage<4, 12, ::Vec3> mActualRespawnPosition;
187 ::ll::TypedStorage<4, 12, ::BlockPos> mRequestedRespawnPosition;
188 ::ll::TypedStorage<1, 1, bool> mHasRespawnPosition;
189 ::ll::TypedStorage<4, 12, ::BlockPos> mSharedSpawnPosition;
190 ::ll::TypedStorage<1, 1, bool> mRespawnReady;
191 ::ll::TypedStorage<4, 12, ::Vec3> mPlayerPos;
192 ::ll::TypedStorage<1, 1, bool> mIsForcedRespawn;
193 ::ll::TypedStorage<1, 1, bool> mIsAdventure;
194 ::ll::TypedStorage<1, 1, bool> mIsFlyingOrNotOverworld;
195 ::ll::TypedStorage<1, 1, bool> mPositionLoadedFromSave;
203 ::ll::TypedStorage<4, 12, ::Vec3> mPosition;
204 ::ll::TypedStorage<4, 4, ::PlayerSpawnFallbackType> mSpawnFallbackType;
212 ::ll::TypedStorage<4, 12, ::Vec3> mPosition;
213 ::ll::TypedStorage<1, 1, bool> mIsAboveLeaves;
221 ::ll::TypedStorage<4, 12, ::BlockPos> mSpawnBlockPos;
222 ::ll::TypedStorage<4, 12, ::BlockPos> mPlayerPosition;
223 ::ll::TypedStorage<4, 4, ::DimensionType> mDimension;
227 using PlayerFlagIDType = schar;
229 using PlayerListenerList = ::std::vector<::PlayerListener*>;
240 LLNDAPI SubClientId
const& getClientSubId()
const;
242 LLNDAPI
int getSelectedItemSlot()
const;
270 LLNDAPI std::optional<NetworkPeer::NetworkStatus> getNetworkStatus()
const;
281 LLAPI
void setAbility(::AbilitiesIndex index,
bool value);
308 LLNDAPI
static Player* tryGetFromEntity(
::EntityContext& entity,
bool includeRemoved);
310 LLNDAPI
ItemStack const& getSelectedItem()
const;
312 LLAPI
void setSelectedItem(
ItemStack const& item)
const;
314 LLNDAPI
bool canSleep()
const;
316 LLNDAPI
bool isHungry()
const;
318 LLNDAPI
int getXpNeededForNextLevel();
320 LLNDAPI
int getPreviousLevelRequirement();
322 LLNDAPI
int getXpEarnedAtCurrentLevel();
324 LLNDAPI
bool setXpEarnedAtCurrentLevel(
int xp);
326 LLNDAPI
static long long getXpNeededForLevelRange(
int startLevel,
int endLevel);
331 ::ll::TypedStorage<8, 24, ::std::vector<ushort>> mFroglights;
332 ::ll::TypedStorage<4, 4, float const> mSneakHeight;
333 ::ll::TypedStorage<4, 4, float const> mSneakOffset;
334 ::ll::TypedStorage<4, 4, int> mScore;
335 ::ll::TypedStorage<4, 4, ::BuildPlatform> mBuildPlatform;
336 ::ll::TypedStorage<8, 32, ::std::string> mUniqueName;
337 ::ll::TypedStorage<8, 32, ::std::string> mServerId;
338 ::ll::TypedStorage<8, 32, ::std::string> mSelfSignedId;
339 ::ll::TypedStorage<8, 32, ::std::string> mPlatformOfflineId;
340 ::ll::TypedStorage<8, 8, uint64> mClientRandomId;
341 ::ll::TypedStorage<8, 32, ::std::string> mPlatformId;
342 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPendingVehicleID;
343 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPendingLeftShoulderPassengerID;
344 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPendingRightShoulderPassengerID;
345 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mInteractTarget;
346 ::ll::TypedStorage<4, 12, ::Vec3> mInteractTargetPos;
347 ::ll::TypedStorage<1, 1, bool> mHasFakeInventory;
348 ::ll::TypedStorage<1, 1, bool> mIsRegionSuspended;
349 ::ll::TypedStorage<1, 1, bool> mUpdateMobs;
350 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ChunkViewSource>> mChunkSource;
351 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ChunkViewSource>> mSpawnChunkSource;
352 ::ll::TypedStorage<4, 12, ::Vec3> mCapePosO;
353 ::ll::TypedStorage<4, 12, ::Vec3> mCapePos;
354 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ContainerManagerModel>> mContainerManager;
361 mContainerManagerSubscribers;
362 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PlayerInventory>> mInventory;
363 ::ll::TypedStorage<4, 20, ::InventoryOptions> mInventoryOptions;
364 ::ll::TypedStorage<4, 12, ::FurnaceOptions> mFurnaceOptions;
365 ::ll::TypedStorage<4, 12, ::FurnaceOptions> mBlastFurnaceOptions;
366 ::ll::TypedStorage<4, 12, ::FurnaceOptions> mSmokerOptions;
367 ::ll::TypedStorage<4, 4, float> mDistanceSinceTransformEvent;
368 ::ll::TypedStorage<8, 24, ::std::vector<::ItemInstance>> mCreativeItemList;
369 ::ll::TypedStorage<8, 32, ::std::string> mPlatformOnlineId;
370 ::ll::TypedStorage<4, 4, ::Player::SpawnPositionState> mSpawnPositionState;
371 ::ll::TypedStorage<4, 4, ::Player::SpawnPositionSource> mSpawnPositionSource;
372 ::ll::TypedStorage<4, 12, ::Vec3> mSpawnPositioningTestPosition;
373 ::ll::TypedStorage<4, 4, uint> mRespawnChunkBuilderPolicyHandle;
374 ::ll::TypedStorage<4, 64, ::Player::CachedSpawnData> mCachedSpawnData;
375 ::ll::TypedStorage<8, 16, ::OwnerPtr<::BlockSource>> mSpawnBlockSource;
376 ::ll::TypedStorage<8, 56, ::Stopwatch> mRespawnStopwatch_Searching;
377 ::ll::TypedStorage<4, 12, ::Vec3> mRespawnOriginalPosition;
378 ::ll::TypedStorage<4, 4, ::DimensionType> mRespawnOriginalDimension;
379 ::ll::TypedStorage<8, 32, ::std::string> mRespawnMessage;
380 ::ll::TypedStorage<1, 1, bool> mRespawnReady;
381 ::ll::TypedStorage<1, 1, bool> mIsInitialSpawnDone;
382 ::ll::TypedStorage<1, 1, bool> mRespawningFromTheEnd;
383 ::ll::TypedStorage<1, 1, bool> mPositionLoadedFromSave;
384 ::ll::TypedStorage<1, 1, bool> mBlockRespawnUntilClientMessage;
385 ::ll::TypedStorage<1, 1, bool> mHasSeenCredits;
386 ::ll::TypedStorage<4, 8, ::std::optional<::PlayerSpawnFallbackType>> mSpawnFallbackType;
387 ::ll::TypedStorage<4, 16, ::std::optional<::Vec3>> mSpawnFallbackPosition;
388 ::ll::TypedStorage<8, 168, ::PlayerItemInUse> mItemInUse;
389 ::ll::TypedStorage<4, 4, ::ActorType> mLastHurtBy;
390 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPreviousInteractEntity;
391 ::ll::TypedStorage<4, 4, int> mPreviousCarriedItem;
392 ::ll::TypedStorage<4, 4, int> mEmoteTicks;
393 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::NetworkChunkPublisher>> mChunkPublisherView;
394 ::ll::TypedStorage<8, 8, ::PacketSender&> mPacketSender;
395 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::HudContainerManagerModel>> mHudContainerManagerModel;
396 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::EnderChestContainer>> mEnderChestInventory;
397 ::ll::TypedStorage<8, 24, ::std::vector<::ActorUniqueID>> mTrackedBossIDs;
398 ::ll::TypedStorage<8, 136, ::ItemGroup> mCursorSelectedItemGroup;
399 ::ll::TypedStorage<8, 440, ::PlayerUIContainer> mPlayerUIContainer;
400 ::ll::TypedStorage<8, 48, ::InventoryTransactionManager> mTransactionManager;
401 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::GameMode>> mGameMode;
402 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PlayerRespawnRandomizer>> mSpawnRandomizer;
403 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::SerializedSkinRef>> mSkin;
404 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ItemStackNetManagerBase>> mItemStackNetManager;
405 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::AnimationComponent>> mUIAnimationComponent;
406 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::AnimationComponent>> mMapAnimationComponent;
407 ::ll::TypedStorage<4, 28, ::Player::PlayerSpawnPoint> mPlayerRespawnPoint;
408 ::ll::TypedStorage<4, 4, float> mServerBuildRatio;
409 ::ll::TypedStorage<1, 1, ::SubClientId> mClientId;
410 ::ll::TypedStorage<1, 1, bool> mInteractDataDirty;
411 ::ll::TypedStorage<1, 1, bool> mShouldClientGenerateChunks;
412 ::ll::TypedStorage<8, 24, ::std::vector<::BiomeIdType>> mOceanBiomes;
413 ::ll::TypedStorage<1, 1, bool> mUseMapAnimationComponent;
414 ::ll::TypedStorage<1, 1, bool> mIsDeferredRenderingFirstPersonObjects;
415 ::ll::TypedStorage<1, 1, bool> mDestroyingBlock;
416 ::ll::TypedStorage<1, 1, bool> mPlayerLevelChanged;
417 ::ll::TypedStorage<4, 4, int> mPreviousLevelRequirement;
418 ::ll::TypedStorage<4, 4, int> mLastLevelUpTime;
419 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::AnimationComponent>> mFirstPersonAnimationComponent;
420 ::ll::TypedStorage<8, 24, ::std::vector<::PlayerListener*>> mListeners;
421 ::ll::TypedStorage<4, 12, ::Vec3> mRespawnPositionCandidate;
422 ::ll::TypedStorage<4, 12, ::Vec3> mPreDimensionTransferSpawnPosition;
423 ::ll::TypedStorage<4, 4, int> mEnchantmentSeed;
424 ::ll::TypedStorage<8, 24, ::std::vector<uint>> mOnScreenAnimationTextures;
425 ::ll::TypedStorage<4, 4, int> mOnScreenAnimationTicks;
426 ::ll::TypedStorage<4, 4, uint> mChunkRadius;
427 ::ll::TypedStorage<4, 4, int> mMapIndex;
428 ::ll::TypedStorage<4, 4, float> mElytraVolume;
429 ::ll::TypedStorage<8, 8, uint64> mElytraLoop;
430 ::ll::TypedStorage<8, 8, int64> mStartedBlockingTimeStamp;
431 ::ll::TypedStorage<8, 8, int64> mBlockedUsingShieldTimeStamp;
432 ::ll::TypedStorage<8, 8, int64> mBlockedUsingDamagedShieldTimeStamp;
433 ::ll::TypedStorage<8, 32, ::std::string> mName;
434 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mChatNamePrefix;
435 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mChatNameSuffix;
436 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mChatMessagePrefix;
437 ::ll::TypedStorage<8, 32, ::std::string> mLastEmotePlayed;
438 ::ll::TypedStorage<8, 8, int64> mEmoteEasterEggEndTime;
439 ::ll::TypedStorage<4, 4, uint> mEmoteMessageCount;
440 ::ll::TypedStorage<8, 32, ::std::string> mDeviceId;
441 ::ll::TypedStorage<1, 1, bool> mFlagClientForBAIReset;
442 ::ll::TypedStorage<1, 1, uchar> mSendPlayerOptionsFlags;
443 ::ll::TypedStorage<1, 1, bool> mIsHostingPlayer;
444 ::ll::TypedStorage<1, 1, bool> mPrevBlockedUsingShield;
445 ::ll::TypedStorage<1, 1, bool> mPrevBlockedUsingDamagedShield;
446 ::ll::TypedStorage<1, 1, bool> mUsedPotion;
447 ::ll::TypedStorage<8, 8, ::PlayerDestroyProgressCacheComponent&> mDestroyProgressCache;
452 Player& operator=(Player
const&);
453 Player(Player
const&);
468 virtual void destroyRegion();
470 virtual void suspendRegion();
472 virtual void _fireDimensionChanged();
474 virtual bool canChangeDimensionsUsingPortal() const ;
476 virtual
void changeDimensionWithCredits(::
DimensionType dimension);
479 virtual void tickWorld(
::Tick const&);
481 virtual void tickWorld(
::Tick const& currentTick);
486 virtual ::std::vector<::ChunkPos>
const& getTickingOffsets()
const;
488 virtual void normalTick() ;
490 virtual void moveView();
494 virtual void onSynchedDataUpdate(
int dataId) ;
496 virtual void aiStep() ;
498 virtual bool isFireImmune() const ;
500 virtual
void checkMovementStats(::
Vec3 const& d);
502 virtual ::
HashedString getCurrentStructureFeature() const;
504 virtual
bool isAutoJumpEnabled() const;
506 virtual ::
Vec3 getInterpolatedRidingOffset(
float,
int const) const ;
508 virtual
void passengerTick() ;
512 virtual
void remove() ;
514 virtual
void respawn();
516 virtual
bool shouldDropDeathLoot() const ;
520 virtual
void dropEquipmentOnDeath() ;
522 virtual
void clearVanishEnchantedItemsOnDeath() ;
524 virtual
bool drop(::
ItemStack const& item,
bool const randomly) ;
526 virtual
void resetRot();
528 virtual
void resetUserPos(::ActorResetRule resetRule) ;
530 virtual
bool isInTrialMode();
532 virtual
void setSpeed(
float _speed) ;
534 virtual
int getItemUseDuration() const ;
536 virtual
float getItemUseStartupProgress() const ;
538 virtual
float getItemUseIntervalProgress() const ;
540 virtual
bool isBlocking() const ;
544 virtual
void handleEntityEvent(::ActorEvent
id,
int data) ;
546 virtual ::
std::vector<::
ItemStack const*> getAllHandEquipment() const ;
548 virtual ::
std::vector<::
ItemStack const*> getAllEquipment() const ;
552 virtual ::CommandPermissionLevel getCommandPermissionLevel() const ;
554 virtual ::
ActorHurtResult attack(::Actor& actor, ::SharedTypes::Legacy::ActorDamageCause const& cause) ;
556 virtual ::
ItemStack const& getCarriedItem() const ;
558 virtual
void setCarriedItem(::
ItemStack const& item) ;
560 virtual
void damageCarriedItemOnAttack(::Actor& target,
float damageDealtToTarget) ;
562 virtual
void openPortfolio();
567 virtual void openBook(
int bookSlot,
bool editable,
int page,
::BlockActor* lectern);
570 virtual void openTrading(
::ActorUniqueID const& uniqueID,
bool useNewScreen);
578 virtual void openNpcInteractScreen(::std::shared_ptr<::INpcDialogueData> npc);
580 virtual void openInventory();
582 virtual void displayChatMessage(
583 ::std::string
const& author,
584 ::std::string
const& message,
585 ::std::optional<::std::string>
const filteredMessage
589 displayClientMessage(::std::string
const& message, ::std::optional<::std::string>
const filteredMessage);
591 virtual void displayTextObjectMessage(
593 ::std::string
const& fromXuid,
594 ::std::string
const& fromPlatformId
597 virtual void displayTextObjectWhisperMessage(
599 ::std::string
const& xuid,
600 ::std::string
const& platformId
603 virtual void displayTextObjectWhisperMessage(
604 ::std::string
const& message,
605 ::std::string
const& xuid,
606 ::std::string
const& platformId
609 virtual void displayWhisperMessage(
610 ::std::string
const& author,
611 ::std::string
const& message,
612 ::std::optional<::std::string>
const filteredMessage,
613 ::std::string
const& xuid,
614 ::std::string
const& platformId
617 virtual float getShadowRadius() const ;
619 virtual
bool isSleeping() const ;
621 virtual
void setSleeping(
bool val) ;
623 virtual ::BedSleepingResult startSleepInBed(::
BlockPos const& bedPos,
bool setsRespawn,
float sleepOffset);
625 virtual
void stopSleepInBed(
bool forcefulWakeUp,
bool updateLevelList);
627 virtual
bool canStartSleepInBed();
629 virtual
void sendInventory(
bool shouldSelectSlot) ;
631 virtual
void openSign(::
BlockPos const& position,
bool isFrontSide);
634 virtual void playEmote(::std::string
const&,
bool const);
636 virtual void playEmote(::std::string
const& pieceId,
bool const playChatMessage);
639 virtual bool isSilentObserver() const ;
641 virtual
void useItem(::
ItemStackBase& instance, ::ItemUseMethod itemUseMethod,
bool consumeItem) ;
643 virtual
bool isLoading() const;
645 virtual
bool isPlayerInitialized() const;
647 virtual
void stopLoading();
649 virtual
float getSpeed() const ;
651 virtual
void setPlayerGameType(::GameType gameType);
653 virtual
void initHUDContainerManager();
655 virtual
void emitCriticalHitParticles(::Actor const& target,
int particleCount);
657 virtual
bool isImmobile() const ;
659 virtual
void sendMotionPacketIfNeeded() ;
663 virtual uint getUserId() const;
665 virtual
void addExperience(
int xp);
667 virtual
void addLevels(
int levels);
669 virtual
void setArmor(::SharedTypes::Legacy::ArmorSlot slot, ::
ItemStack const& item) ;
671 virtual
void setOffhandSlot(::
ItemStack const& item) ;
673 virtual ::
std::unique_ptr<::
Packet> tryCreateAddActorPacket() ;
679 virtual
void slotChanged(
690 virtual
void deleteContainerManager();
692 virtual ::
ItemStack const& getEquippedTotem() const ;
694 virtual
bool consumeTotem() ;
696 virtual
bool isActorRelevant(::Actor const& actor);
698 virtual
float getMapDecorationRotation() const ;
700 virtual
void teleportTo(
702 bool shouldStopRiding,
704 int sourceEntityType,
708 virtual
bool startRiding(::Actor& vehicle,
bool forceRiding) ;
710 virtual
void startSwimming() ;
712 virtual
void stopSwimming() ;
714 virtual
bool isTeacher() const = 0;
716 virtual
bool isExternalCommunicationAllowed() const = 0;
718 virtual
void onSuspension();
720 virtual
void onLinkedSlotsChanged();
722 virtual
bool canBePulledIntoVehicle() const ;
724 virtual
void feed(
int itemId) ;
731 virtual
void sendNetworkPacket(::
Packet& packet) const;
733 virtual
bool canExistWhenDisallowMob() const ;
735 virtual ::mce::Color getNameTagTextColor() const ;
737 virtual
bool canAddPassenger(::Actor& passenger) const ;
741 virtual
bool isSimulated() const;
743 virtual ::
std::
string getXuid() const;
745 virtual ::
std::
string getPlayFabId() const;
749 virtual
bool canInteractWithOtherEntitiesInGame() const ;
751 virtual
bool canObstructSpawningAndBlockPlacement() const ;
753 virtual ::
std::optional<::
BlockPos> getLastDeathPos() const ;
757 virtual
bool hasDiedBefore() const ;
759 virtual
void doEnterWaterSplashEffect() ;
761 virtual
void doExitWaterSplashEffect() ;
768 virtual void requestMissingSubChunk(
::SubChunkPos const& scp);
771 virtual uchar getMaxChunkBuildRadius()
const;
773 virtual float causeFallDamageToActor(
float distance,
float multiplier,
::ActorDamageSource source) ;
776 virtual void setBehaviorCommandStatus(::std::string
const&, ::BehaviorStatus);
778 virtual void setBehaviorCommandStatus(::std::string
const& name, ::BehaviorStatus status);
782 virtual void setRemotePlayerTicked(
bool);
784 virtual void setRemotePlayerTicked(
bool ticked);
787 virtual ::std::unique_ptr<::ISparseContainerSetListener> createSparseContainerListener();
789 virtual void addChunksToQueue(::std::vector<::ChunkPos>
const& chunkPostions,
bool isBiomeUpdate);
791 virtual ::ActorHurtResult
796 virtual void addAdditionalSaveData(
::CompoundTag& entityTag)
const ;
798 virtual void onMovePlayerPacketNormal(
::Vec3 const& pos,
::Vec2 const& rot,
float yHeadRot);
800 virtual bool _shouldProvideFeedbackOnHandContainerItemSet(::HandSlot handSlot,
::ItemStack const& item)
const
803 virtual bool _shouldProvideFeedbackOnArmorSet(::SharedTypes::Legacy::ArmorSlot slot,
::ItemStack const& item)
const
806 virtual ::std::shared_ptr<::ChunkViewSource> _createChunkSource(
::ChunkSource& mainChunkSource);
810 virtual ::AnimationComponent& getAnimationComponent() ;
812 virtual ::HashedString
const& getActorRendererId() const ;
814 virtual ::Bedrock::NonOwnerPointer<::Editor::IEditorPlayer> getEditorPlayer() const = 0;
816 virtual
void destroyEditorPlayer() = 0;
818 virtual
void _serverInitItemStackIds() ;
829 ::GameType playerGameType,
830 bool isHostingPlayer,
834 ::
std::
string const& deviceId,
835 ::PlayerAuthenticationType authType,
838 ::
std::
string const& platformId,
839 ::
std::
string const& platformOnlineId
843 MCNAPI
bool _canChangeGameType(::GameType newGameType)
const;
848 ::std::vector<::gsl::not_null<::BlockSource*>> regions,
849 bool adjustYToSolidGround,
851 bool positionFromSave
855 MCNAPI
void _enterBedSleepState(
::BlockPos const& bedBlockPos,
float sleepOffset);
857 MCNAPI
bool _findFallbackSpawnPosition(
859 ::std::vector<::gsl::not_null<::BlockSource*>> regions,
860 uint
const maxDistance,
861 bool const checkStoredFallback
872 MCNAPI ::BedSleepingResult _validateCanSleepInBed(
::BlockPos const& bedBlockPos)
const;
874 MCNAPI ::BedSleepingResult _validateSleepConditions(
::BlockPos const& bedBlockPos)
const;
880 ::Vec3 const*
const AABBoffset
883 MCAPI ::ActorHurtResult attack(
885 ::SharedTypes::Legacy::ActorDamageCause
const& cause,
889 MCAPI
bool canJump();
891 MCAPI
bool canOpenContainerScreen();
895 MCAPI
bool canUseAbility(::AbilitiesIndex abilityIndex)
const;
897 MCAPI
bool canUseOperatorBlocks()
const;
899 MCAPI
void causeFoodExhaustion(
float exhaustionAmount);
907 MCAPI
void completeUsingItem();
910 MCNAPI
void crackBlock(
::BlockPos const& pos, uchar face);
915 MCAPI
void eat(
int hungerValue,
float saturationModifier);
921 MCFOLD ::LayeredAbilities
const& getAbilities()
const;
923 MCFOLD ::LayeredAbilities& getAbilities();
925 MCNAPI ::Bedrock::SmallOptional<::HandSlot, ::Bedrock::DefaultSmallOptionalTraits<::HandSlot>>
938 MCAPI
float getDestroyProgress(
::Block const& block);
940 MCAPI ::DimensionType getExpectedSpawnDimensionId()
const;
942 MCAPI ::BlockPos
const& getExpectedSpawnPosition()
const;
946 MCAPI
int getItemCooldownLeft(
::HashedString const& category)
const;
951 MCNAPI
float getItemCooldownProgress(
::HashedString const& category)
const;
958 MCAPI ::AABB getPickupArea()
const;
960 MCAPI ::GameType getPlayerGameType()
const;
962 MCAPI ::PlayerPermissionLevel getPlayerPermissionLevel()
const;
967 MCNAPI
void handleMovePlayerPacket(
968 ::PlayerPositionModeComponent::PositionMode mode,
979 MCAPI ::InteractionResult interact(::Actor& actor,
::Vec3 const& location, ::HandSlot handSlot);
981 MCAPI
void inventoryChanged(
991 MCAPI
bool isEquipmentHidden()
const;
993 MCAPI
bool isFlying()
const;
995 MCAPI
bool isForcedRespawn()
const;
997 MCAPI
bool isItemOnCooldown(
::HashedString const& category)
const;
1000 MCNAPI
bool isScoping()
const;
1011 ::SharedTypes::Legacy::LevelSoundEvent type,
1021 MCAPI
void releaseUsingItem();
1023 MCAPI
void resetPlayerLevel();
1030 MCNAPI
void setBedRespawnPosition(
::BlockPos const& bedPosition);
1033 MCAPI
void setChunkRadius(uint chunkRadius);
1035 MCAPI
void setCommandPermissions(::CommandPermissionLevel permissions);
1037 MCAPI
void setContainerManagerModel(::std::shared_ptr<::ContainerManagerModel> manager);
1039 MCAPI
void setName(::std::string
const& newName);
1041 MCAPI
void setPlayerUIItem(::PlayerUISlot slot,
::ItemStack const& item,
bool forceBalance);
1045 MCAPI
void setRespawnPositionCandidate();
1047 MCAPI ::ItemStack
const& setSelectedSlot(
int slot);
1051 MCAPI
void startGliding();
1060 MCAPI
void startUsingItem(
::ItemStack const& instance,
int duration, ::HandSlot handSlot);
1062 MCAPI
void stopGliding();
1066 MCAPI
void stopUsingItem();
1068 MCAPI
bool take(::Actor& actor,
int,
int favoredSlot);
1070 MCAPI
bool tryStartGliding();
1075 MCAPI
bool updateEmoteMessageData(
::PersonaPiece const& emotePiece);
1078 MCAPI
void updateInventoryTransactions();
1084 MCNAPI
void useItemInHandSlot(::HandSlot handSlot, ::ItemUseMethod itemUseMethod,
bool consumeItem);
1094 float movementSpeed,
1101 MCNAPI static ::std::optional<::SharedTypes::Legacy::LevelSoundEvent>
1106 updatePlayerGameTypeEntityData(
::EntityContext& entity, ::GameType gameType, ::GameType defaultGameType);
1113 MCAPI static ::Attribute
const& EXHAUSTION();
1115 MCAPI static ::Attribute
const& EXPERIENCE();
1117 MCAPI static ::Attribute
const& HUNGER();
1119 MCAPI static ::Attribute
const& LEVEL();
1121 MCAPI static ::Attribute
const& SATURATION();
1130 ::GameType playerGameType,
1131 bool isHostingPlayer,
1133 ::SubClientId subid,
1135 ::std::string
const& deviceId,
1136 ::PlayerAuthenticationType authType,
1139 ::std::string
const& platformId,
1140 ::std::string
const& platformOnlineId
1170 MCAPI
void $tickWorld(
::Tick const&);
1172 MCAPI
void $tickWorld(
::Tick const& currentTick);
1177 MCAPI
void $normalTick();
1201 MCAPI
void $remove();
1203 MCAPI
void $respawn();
1213 MCAPI
bool $drop(
::ItemStack const& item,
bool const randomly);
1243 MCAPI ::ActorHurtResult $attack(::Actor& actor, ::SharedTypes::Legacy::ActorDamageCause
const& cause);
1272 ::std::string
const& author,
1273 ::std::string
const& message,
1274 ::std::optional<::std::string>
const filteredMessage
1282 ::std::string
const& fromXuid,
1283 ::std::string
const& fromPlatformId
1288 ::std::string
const& xuid,
1289 ::std::string
const& platformId
1293 ::std::string
const& message,
1294 ::std::string
const& xuid,
1295 ::std::string
const& platformId
1299 ::std::string
const& author,
1300 ::std::string
const& message,
1301 ::std::optional<::std::string>
const filteredMessage,
1302 ::std::string
const& xuid,
1303 ::std::string
const& platformId
1312 MCAPI ::BedSleepingResult $startSleepInBed(
::BlockPos const& bedPos,
bool setsRespawn,
float sleepOffset);
1314 MCAPI
void $stopSleepInBed(
bool forcefulWakeUp,
bool updateLevelList);
1316 MCAPI
bool $canStartSleepInBed();
1323 MCNAPI
void $playEmote(::std::string
const&,
bool const);
1325 MCNAPI
void $playEmote(::std::string
const& pieceId,
bool const playChatMessage);
1330 MCAPI
void $useItem(
::ItemStackBase& instance, ::ItemUseMethod itemUseMethod,
bool consumeItem);
1340 MCAPI
void $setPlayerGameType(::GameType gameType);
1354 MCAPI
void $addExperience(
int xp);
1356 MCAPI
void $addLevels(
int levels);
1358 MCAPI
void $setArmor(::SharedTypes::Legacy::ArmorSlot slot,
::ItemStack const& item);
1360 MCAPI
void $setOffhandSlot(
::ItemStack const& item);
1377 $teleportTo(
::Vec3 const& pos,
bool shouldStopRiding,
int cause,
int sourceEntityType,
bool keepVelocity);
1379 MCAPI
bool $startRiding(::Actor& vehicle,
bool forceRiding);
1399 MCAPI
bool $canAddPassenger(::Actor& passenger)
const;
1403 MCAPI ::std::string $getXuid()
const;
1433 MCAPI
float $causeFallDamageToActor(
float distance,
float multiplier,
::ActorDamageSource source);
1451 MCAPI ::ActorHurtResult
1464 MCAPI ::std::shared_ptr<::ChunkViewSource> $_createChunkSource(
::ChunkSource& mainChunkSource);