LeviLamina
Loading...
Searching...
No Matches
Player.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4#include "mc/deps/certificates/Certificate.h"
5#include "mc/entity/components/UserEntityIdentifierComponent.h"
6#include "mc/network/NetworkPeer.h"
7#include "mc/world/inventory/EnderChestContainer.h"
8
9// auto generated inclusion list
10#include "mc/certificates/identity/PlayerAuthenticationType.h"
11#include "mc/common/SubClientId.h"
12#include "mc/deps/core/math/Vec3.h"
13#include "mc/deps/core/platform/BuildPlatform.h"
14#include "mc/deps/core/timing/Stopwatch.h"
15#include "mc/deps/core/utility/NonOwnerPointer.h"
16#include "mc/deps/core/utility/optional_ref.h"
17#include "mc/deps/core/utility/pub_sub/Publisher.h"
18#include "mc/deps/game_refs/OwnerPtr.h"
19#include "mc/deps/game_refs/StackRefResult.h"
20#include "mc/deps/shared_types/legacy/ContainerType.h"
21#include "mc/deps/shared_types/legacy/LevelSoundEvent.h"
22#include "mc/deps/shared_types/legacy/actor/ActorDamageCause.h"
23#include "mc/deps/shared_types/legacy/actor/ArmorSlot.h"
24#include "mc/entity/components/PlayerPositionModeComponent.h"
25#include "mc/legacy/ActorUniqueID.h"
26#include "mc/server/commands/CommandPermissionLevel.h"
27#include "mc/server/commands/PlayerPermissionLevel.h"
28#include "mc/world/ContainerID.h"
29#include "mc/world/PlayerUIContainer.h"
30#include "mc/world/actor/ActorEvent.h"
31#include "mc/world/actor/ActorInitializationMethod.h"
32#include "mc/world/actor/ActorResetRule.h"
33#include "mc/world/actor/ActorType.h"
34#include "mc/world/actor/Mob.h"
35#include "mc/world/actor/MobSpawnMethod.h"
36#include "mc/world/actor/bhave/BehaviorStatus.h"
37#include "mc/world/actor/player/AbilitiesIndex.h"
38#include "mc/world/actor/player/BedSleepingResult.h"
39#include "mc/world/actor/player/PlayerItemInUse.h"
40#include "mc/world/actor/player/PlayerSpawnFallbackType.h"
41#include "mc/world/actor/player/PlayerUISlot.h"
42#include "mc/world/inventory/FurnaceOptions.h"
43#include "mc/world/inventory/InventoryOptions.h"
44#include "mc/world/inventory/transaction/InventoryTransactionManager.h"
45#include "mc/world/item/HandSlot.h"
46#include "mc/world/item/ItemGroup.h"
47#include "mc/world/item/ItemInstance.h"
48#include "mc/world/item/ItemUseMethod.h"
49#include "mc/world/level/BlockPos.h"
50#include "mc/world/level/GameType.h"
51
52// auto generated forward declare list
53// clang-format off
54class AABB;
55class Actor;
57class ActorHurtResult;
59class Agent;
61class Attribute;
62class Block;
63class BlockActor;
64class BlockSource;
65class BodyControl;
67class ChunkPos;
68class ChunkSource;
69class ChunkViewSource;
71class CompoundTag;
72class Container;
75class DataLoadHelper;
77class EntityContext;
78class GameMode;
80class HashedString;
87class ILevel;
92class Item;
93class ItemDescriptor;
94class ItemStack;
95class ItemStackBase;
101class Packet;
102class PacketSender;
103class PersonaPiece;
105class PlayerInventory;
109class ShieldItem;
110class SubChunkPos;
111class TextObjectRoot;
112class Vec2;
113struct AABBShapeComponent;
115struct BiomeIdType;
116struct INpcDialogueData;
118struct PlayerComponent;
121struct PlayerPartyInfo;
123struct Tick;
125namespace Bedrock::PubSub::ThreadModel { struct SingleThreaded; }
126namespace Editor { class IEditorPlayer; }
127namespace mce { class Color; }
128namespace mce { class UUID; }
130class PlayerListener;
131// clang-format on
132
134class Inventory;
135
136class Player : public ::Mob {
137public:
138 // Player inner types declare
139 // clang-format off
140 struct AttackParameters;
141 struct CachedSpawnData;
144 struct PlayerSpawnPoint;
145 // clang-format on
146
147 // Player inner types define
148 enum class SpawnPositionSource : int {
149 Randomizer = 0,
150 Respawn = 1,
151 Teleport = 2,
152 Static = 3,
153 };
154
155 enum class SpawnPositionState : int {
156 InitializeSpawnPositionRandomizer = 0,
157 WaitForClientAck = 1,
158 DetermineDimension = 2,
159 ChangeDimension = 3,
160 WaitForDimension = 4,
161 ChooseSpawnArea = 5,
162 CheckLoadedChunk = 6,
163 ChooseSpawnPosition = 7,
164 SpawnComplete = 8,
165 };
166
168 public:
169 // AttackParameters inner types define
170 enum class Sound : int {
171 None = 0,
172 Predictive = 1,
173 NonPredictive = 2,
174 };
175
176 public:
177 // member variables
178 // NOLINTBEGIN
179 ::ll::TypedStorage<4, 4, ::Player::AttackParameters::Sound> mSound;
180 ::ll::TypedStorage<1, 1, bool> mTriggerCooldown;
181 ::ll::TypedStorage<1, 1, bool> mCanCrit;
182 // NOLINTEND
183 };
184
186 public:
187 // member variables
188 // NOLINTBEGIN
189 ::ll::TypedStorage<4, 4, ::DimensionType> mRespawnDimensionId;
190 ::ll::TypedStorage<4, 12, ::Vec3> mActualRespawnPosition;
191 ::ll::TypedStorage<4, 12, ::BlockPos> mRequestedRespawnPosition;
192 ::ll::TypedStorage<1, 1, bool> mHasRespawnPosition;
193 ::ll::TypedStorage<4, 12, ::BlockPos> mSharedSpawnPosition;
194 ::ll::TypedStorage<1, 1, bool> mRespawnReady;
195 ::ll::TypedStorage<4, 12, ::Vec3> mPlayerPos;
196 ::ll::TypedStorage<1, 1, bool> mIsForcedRespawn;
197 ::ll::TypedStorage<1, 1, bool> mIsAdventure;
198 ::ll::TypedStorage<1, 1, bool> mIsFlyingOrNotOverworld;
199 ::ll::TypedStorage<1, 1, bool> mPositionLoadedFromSave;
200 // NOLINTEND
201 };
202
204 public:
205 // member variables
206 // NOLINTBEGIN
207 ::ll::TypedStorage<4, 12, ::Vec3> mPosition;
208 ::ll::TypedStorage<4, 4, ::PlayerSpawnFallbackType> mSpawnFallbackType;
209 // NOLINTEND
210 };
211
213 public:
214 // member variables
215 // NOLINTBEGIN
216 ::ll::TypedStorage<4, 12, ::Vec3> mPosition;
217 ::ll::TypedStorage<1, 1, bool> mIsAboveLeaves;
218 // NOLINTEND
219 };
220
222 public:
223 // member variables
224 // NOLINTBEGIN
225 ::ll::TypedStorage<4, 12, ::BlockPos> mSpawnBlockPos;
226 ::ll::TypedStorage<4, 12, ::BlockPos> mPlayerPosition;
227 ::ll::TypedStorage<4, 4, ::DimensionType> mDimension;
228 // NOLINTEND
229 };
230
231 using PlayerFlagIDType = schar;
232
233 using PlayerListenerList = ::std::vector<::PlayerListener*>;
234
235public:
236 LLNDAPI UserEntityIdentifierComponent const& getUserEntityIdentifier() const;
237
238 LLNDAPI UserEntityIdentifierComponent& getUserEntityIdentifier();
239
240 LLNDAPI optional_ref<ConnectionRequest const> getConnectionRequest() const;
241
242 LLNDAPI NetworkIdentifier const& getNetworkIdentifier() const;
243
244 LLNDAPI SubClientId const& getClientSubId() const;
245
246 LLNDAPI int getSelectedItemSlot() const;
247
252 LLNDAPI mce::UUID const& getUuid() const;
253
258 LLNDAPI std::string getIPAndPort() const;
259
264 LLNDAPI std::string getRealName() const;
265
272 LLNDAPI std::string getLocaleCode() const;
273
274 LLNDAPI std::optional<NetworkPeer::NetworkStatus> getNetworkStatus() const;
275
279 LLAPI void disconnect(std::string_view reason) const;
283 LLAPI void sendMessage(std::string_view msg) const;
284
285 LLAPI void setAbility(::AbilitiesIndex index, bool value);
286
294 LLNDAPI bool isOperator() const;
295
306 LLAPI bool addAndRefresh(class ItemStack& item);
307
308 LLNDAPI optional_ref<EnderChestContainer> getEnderChestContainer() const;
309
310 LLNDAPI Inventory& getInventory() const;
311
312 LLNDAPI static Player* tryGetFromEntity(::EntityContext& entity, bool includeRemoved);
313
314public:
315 // member variables
316 // NOLINTBEGIN
317 ::ll::TypedStorage<8, 24, ::std::vector<ushort>> mFroglights;
318 ::ll::TypedStorage<4, 4, float const> mSneakHeight;
319 ::ll::TypedStorage<4, 4, float const> mSneakOffset;
320 ::ll::TypedStorage<4, 4, int> mScore;
321 ::ll::TypedStorage<4, 4, ::BuildPlatform> mBuildPlatform;
322 ::ll::TypedStorage<8, 32, ::std::string> mUniqueName;
323 ::ll::TypedStorage<8, 32, ::std::string> mServerId;
324 ::ll::TypedStorage<8, 32, ::std::string> mSelfSignedId;
325 ::ll::TypedStorage<8, 32, ::std::string> mPlatformOfflineId;
326 ::ll::TypedStorage<8, 8, uint64> mClientRandomId;
327 ::ll::TypedStorage<8, 32, ::std::string> mPlatformId;
328 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPendingVehicleID;
329 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPendingLeftShoulderPassengerID;
330 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPendingRightShoulderPassengerID;
331 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mInteractTarget;
332 ::ll::TypedStorage<4, 12, ::Vec3> mInteractTargetPos;
333 ::ll::TypedStorage<1, 1, bool> mHasFakeInventory;
334 ::ll::TypedStorage<1, 1, bool> mIsRegionSuspended;
335 ::ll::TypedStorage<1, 1, bool> mUpdateMobs;
336 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ChunkViewSource>> mChunkSource;
337 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ChunkViewSource>> mSpawnChunkSource;
338 ::ll::TypedStorage<4, 12, ::Vec3> mCapePosO;
339 ::ll::TypedStorage<4, 12, ::Vec3> mCapePos;
340 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ContainerManagerModel>> mContainerManager;
341 ::ll::TypedStorage<
342 8,
343 8,
344 ::std::unique_ptr<
345 ::Bedrock::PubSub::
347 mContainerManagerSubscribers;
348 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PlayerInventory>> mInventory;
349 ::ll::TypedStorage<4, 20, ::InventoryOptions> mInventoryOptions;
350 ::ll::TypedStorage<4, 12, ::FurnaceOptions> mFurnaceOptions;
351 ::ll::TypedStorage<4, 12, ::FurnaceOptions> mBlastFurnaceOptions;
352 ::ll::TypedStorage<4, 12, ::FurnaceOptions> mSmokerOptions;
353 ::ll::TypedStorage<4, 4, float> mDistanceSinceTransformEvent;
354 ::ll::TypedStorage<8, 24, ::std::vector<::ItemInstance>> mCreativeItemList;
355 ::ll::TypedStorage<8, 32, ::std::string> mPlatformOnlineId;
356 ::ll::TypedStorage<4, 4, ::Player::SpawnPositionState> mSpawnPositionState;
357 ::ll::TypedStorage<4, 4, ::Player::SpawnPositionSource> mSpawnPositionSource;
358 ::ll::TypedStorage<4, 12, ::Vec3> mSpawnPositioningTestPosition;
359 ::ll::TypedStorage<4, 4, uint> mRespawnChunkBuilderPolicyHandle;
360 ::ll::TypedStorage<4, 64, ::Player::CachedSpawnData> mCachedSpawnData;
361 ::ll::TypedStorage<8, 16, ::OwnerPtr<::BlockSource>> mSpawnBlockSource;
362 ::ll::TypedStorage<8, 56, ::Stopwatch> mRespawnStopwatch_Searching;
363 ::ll::TypedStorage<4, 12, ::Vec3> mRespawnOriginalPosition;
364 ::ll::TypedStorage<4, 4, ::DimensionType> mRespawnOriginalDimension;
365 ::ll::TypedStorage<8, 32, ::std::string> mRespawnMessage;
366 ::ll::TypedStorage<1, 1, bool> mRespawnReady;
367 ::ll::TypedStorage<1, 1, bool> mIsInitialSpawnDone;
368 ::ll::TypedStorage<1, 1, bool> mRespawningFromTheEnd;
369 ::ll::TypedStorage<1, 1, bool> mPositionLoadedFromSave;
370 ::ll::TypedStorage<1, 1, bool> mBlockRespawnUntilClientMessage;
371 ::ll::TypedStorage<1, 1, bool> mHasSeenCredits;
372 ::ll::TypedStorage<4, 8, ::std::optional<::PlayerSpawnFallbackType>> mSpawnFallbackType;
373 ::ll::TypedStorage<4, 16, ::std::optional<::Vec3>> mSpawnFallbackPosition;
374 ::ll::TypedStorage<8, 168, ::PlayerItemInUse> mItemInUse;
375 ::ll::TypedStorage<4, 4, ::ActorType> mLastHurtBy;
376 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPreviousInteractEntity;
377 ::ll::TypedStorage<4, 4, int> mPreviousCarriedItem;
378 ::ll::TypedStorage<4, 4, int> mEmoteTicks;
379 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::NetworkChunkPublisher>> mChunkPublisherView;
380 ::ll::TypedStorage<8, 8, ::PacketSender&> mPacketSender;
381 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::HudContainerManagerModel>> mHudContainerManagerModel;
382 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::EnderChestContainer>> mEnderChestInventory;
383 ::ll::TypedStorage<8, 24, ::std::vector<::ActorUniqueID>> mTrackedBossIDs;
384 ::ll::TypedStorage<8, 136, ::ItemGroup> mCursorSelectedItemGroup;
385 ::ll::TypedStorage<8, 440, ::PlayerUIContainer> mPlayerUIContainer;
386 ::ll::TypedStorage<8, 48, ::InventoryTransactionManager> mTransactionManager;
387 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::GameMode>> mGameMode;
388 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PlayerRespawnRandomizer>> mSpawnRandomizer;
389 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::SerializedSkinRef>> mSkin;
390 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ItemStackNetManagerBase>> mItemStackNetManager;
391 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::AnimationComponent>> mUIAnimationComponent;
392 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::AnimationComponent>> mMapAnimationComponent;
393 ::ll::TypedStorage<4, 28, ::Player::PlayerSpawnPoint> mPlayerRespawnPoint;
394 ::ll::TypedStorage<4, 4, float> mServerBuildRatio;
395 ::ll::TypedStorage<1, 1, ::SubClientId> mClientId;
396 ::ll::TypedStorage<1, 1, bool> mInteractDataDirty;
397 ::ll::TypedStorage<1, 1, bool> mShouldClientGenerateChunks;
398 ::ll::TypedStorage<8, 24, ::std::vector<::BiomeIdType>> mOceanBiomes;
399 ::ll::TypedStorage<1, 1, bool> mUseMapAnimationComponent;
400 ::ll::TypedStorage<1, 1, bool> mIsDeferredRenderingFirstPersonObjects;
401 ::ll::TypedStorage<1, 1, bool> mDestroyingBlock;
402 ::ll::TypedStorage<1, 1, bool> mPlayerLevelChanged;
403 ::ll::TypedStorage<4, 4, int> mPreviousLevelRequirement;
404 ::ll::TypedStorage<4, 4, int> mLastLevelUpTime;
405 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::AnimationComponent>> mFirstPersonAnimationComponent;
406 ::ll::TypedStorage<8, 24, ::std::vector<::PlayerListener*>> mListeners;
407 ::ll::TypedStorage<4, 12, ::Vec3> mRespawnPositionCandidate;
408 ::ll::TypedStorage<4, 12, ::Vec3> mPreDimensionTransferSpawnPosition;
409 ::ll::TypedStorage<4, 4, int> mEnchantmentSeed;
410 ::ll::TypedStorage<8, 24, ::std::vector<uint>> mOnScreenAnimationTextures;
411 ::ll::TypedStorage<4, 4, int> mOnScreenAnimationTicks;
412 ::ll::TypedStorage<4, 4, uint> mChunkRadius;
413 ::ll::TypedStorage<4, 4, int> mMapIndex;
414 ::ll::TypedStorage<4, 4, float> mElytraVolume;
415 ::ll::TypedStorage<8, 8, uint64> mElytraLoop;
416 ::ll::TypedStorage<8, 8, int64> mStartedBlockingTimeStamp;
417 ::ll::TypedStorage<8, 8, int64> mBlockedUsingShieldTimeStamp;
418 ::ll::TypedStorage<8, 8, int64> mBlockedUsingDamagedShieldTimeStamp;
419 ::ll::TypedStorage<8, 32, ::std::string> mName;
420 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mChatNamePrefix;
421 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mChatNameSuffix;
422 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mChatMessagePrefix;
423 ::ll::TypedStorage<8, 32, ::std::string> mLastEmotePlayed;
424 ::ll::TypedStorage<8, 8, int64> mEmoteEasterEggEndTime;
425 ::ll::TypedStorage<4, 4, uint> mEmoteMessageCount;
426 ::ll::TypedStorage<8, 32, ::std::string> mDeviceId;
427 ::ll::TypedStorage<1, 1, bool> mFlagClientForBAIReset;
428 ::ll::TypedStorage<1, 1, bool> mSendInventoryOptionsToClient;
429 ::ll::TypedStorage<1, 1, bool> mIsHostingPlayer;
430 ::ll::TypedStorage<1, 1, bool> mPrevBlockedUsingShield;
431 ::ll::TypedStorage<1, 1, bool> mPrevBlockedUsingDamagedShield;
432 ::ll::TypedStorage<1, 1, bool> mUsedPotion;
433 ::ll::TypedStorage<8, 8, ::PlayerDestroyProgressCacheComponent&> mDestroyProgressCache;
434 // NOLINTEND
435
436public:
437 // prevent constructor by default
438 Player& operator=(Player const&);
439 Player(Player const&);
440 Player();
441
442public:
443 // virtual functions
444 // NOLINTBEGIN
445 virtual ~Player() /*override*/;
446
447 virtual void
448 initializeComponents(::ActorInitializationMethod method, ::VariantParameterList const& params) /*override*/;
449
450 virtual void reloadHardcoded(::ActorInitializationMethod method, ::VariantParameterList const& params) /*override*/;
451
452 virtual void prepareRegion(::ChunkSource& mainChunkSource);
453
454 virtual void destroyRegion();
455
456 virtual void suspendRegion();
457
458 virtual void _fireDimensionChanged();
459
460 virtual bool canChangeDimensionsUsingPortal() const /*override*/;
461
462 virtual void changeDimensionWithCredits(::DimensionType dimension);
463
464 virtual void tickWorld(::Tick const& currentTick);
465
466 virtual void frameUpdate(::FrameUpdateContextBase&) = 0;
467
468 virtual ::std::vector<::ChunkPos> const& getTickingOffsets() const;
469
470 virtual void normalTick() /*override*/;
471
472 virtual void moveView();
473
474 virtual void moveSpawnView(::Vec3 const& spawnPosition, ::DimensionType dimensionType);
475
476 virtual void onSynchedDataUpdate(int dataId) /*override*/;
477
478 virtual void aiStep() /*override*/;
479
480 virtual bool isFireImmune() const /*override*/;
481
482 virtual void checkMovementStats(::Vec3 const& d);
483
484 virtual ::HashedString getCurrentStructureFeature() const;
485
486 virtual bool isAutoJumpEnabled() const;
487
488 virtual ::Vec3 getInterpolatedRidingOffset(float, int const) const /*override*/;
489
490 virtual void passengerTick() /*override*/;
491
492 virtual void die(::ActorDamageSource const& source) /*override*/;
493
494 virtual void remove() /*override*/;
495
496 virtual void respawn();
497
498 virtual bool shouldDropDeathLoot() const /*override*/;
499
500 virtual void dropEquipmentOnDeath(::ActorDamageSource const& source) /*override*/;
501
502 virtual void dropEquipmentOnDeath() /*override*/;
503
504 virtual void clearVanishEnchantedItemsOnDeath() /*override*/;
505
506 virtual bool drop(::ItemStack const& item, bool const randomly) /*override*/;
507
508 virtual void resetRot();
509
510 virtual void resetUserPos(::ActorResetRule resetRule) /*override*/;
511
512 virtual bool isInTrialMode();
513
514 virtual void setSpeed(float _speed) /*override*/;
515
516 virtual int getItemUseDuration() const /*override*/;
517
518 virtual float getItemUseStartupProgress() const /*override*/;
519
520 virtual float getItemUseIntervalProgress() const /*override*/;
521
522 virtual bool isBlocking() const /*override*/;
523
524 virtual bool isDamageBlocked(::ActorDamageSource const& source) const /*override*/;
525
526 virtual void handleEntityEvent(::ActorEvent id, int data) /*override*/;
527
528 virtual ::std::vector<::ItemStack const*> getAllHandEquipment() const /*override*/;
529
530 virtual ::std::vector<::ItemStack const*> getAllEquipment() const /*override*/;
531
532 virtual bool add(::ItemStack& item) /*override*/;
533
534 virtual ::CommandPermissionLevel getCommandPermissionLevel() const /*override*/;
535
536 virtual ::ActorHurtResult attack(::Actor& actor, ::SharedTypes::Legacy::ActorDamageCause const& cause) /*override*/;
537
538 virtual ::ItemStack const& getCarriedItem() const /*override*/;
539
540 virtual void setCarriedItem(::ItemStack const& item) /*override*/;
541
542 virtual void damageCarriedItemOnAttack(::Actor& target, float damageDealtToTarget) /*override*/;
543
544 virtual void openPortfolio();
545
546 virtual void openBook(int bookSlot, bool editable, int page, ::BlockActor* lectern);
547
548 virtual void openTrading(::ActorUniqueID const& uniqueID, bool useNewScreen);
549
550 virtual void openChalkboard(::ChalkboardBlockActor& chalkboard, bool showLockToggle);
551
552#ifdef LL_PLAT_S
553 virtual void openNpcInteractScreen(::std::shared_ptr<::INpcDialogueData> npc);
554#else // LL_PLAT_C
555 virtual void openNpcInteractScreen(::std::shared_ptr<::INpcDialogueData> data);
556#endif
557
558 virtual void openInventory();
559
560 virtual void displayChatMessage(
561 ::std::string const& author,
562 ::std::string const& message,
563 ::std::optional<::std::string> const filteredMessage
564 );
565
566 virtual void
567 displayClientMessage(::std::string const& message, ::std::optional<::std::string> const filteredMessage);
568
569 virtual void displayTextObjectMessage(
570 ::TextObjectRoot const& textObject,
571 ::std::string const& fromXuid,
572 ::std::string const& fromPlatformId
573 );
574
575 virtual void displayTextObjectWhisperMessage(
576 ::ResolvedTextObject const& resolvedTextObject,
577 ::std::string const& xuid,
578 ::std::string const& platformId
579 );
580
581 virtual void displayTextObjectWhisperMessage(
582 ::std::string const& message,
583 ::std::string const& xuid,
584 ::std::string const& platformId
585 );
586
587 virtual void displayWhisperMessage(
588 ::std::string const& author,
589 ::std::string const& message,
590 ::std::optional<::std::string> const filteredMessage,
591 ::std::string const& xuid,
592 ::std::string const& platformId
593 );
594
595 virtual float getShadowRadius() const /*override*/;
596
597 virtual bool isSleeping() const /*override*/;
598
599 virtual void setSleeping(bool val) /*override*/;
600
601 virtual ::BedSleepingResult startSleepInBed(::BlockPos const& bedBlockPos);
602
603 virtual void stopSleepInBed(bool forcefulWakeUp, bool updateLevelList);
604
605 virtual bool canStartSleepInBed();
606
607 virtual void sendInventory(bool shouldSelectSlot) /*override*/;
608
609 virtual void openSign(::BlockPos const& position, bool isFrontSide);
610
611 virtual void playEmote(::std::string const& pieceId, bool const playChatMessage);
612
613 virtual bool isSilentObserver() const /*override*/;
614
615 virtual void useItem(::ItemStackBase& instance, ::ItemUseMethod itemUseMethod, bool consumeItem) /*override*/;
616
617 virtual bool isLoading() const;
618
619 virtual bool isPlayerInitialized() const;
620
621 virtual void stopLoading();
622
623 virtual float getSpeed() const /*override*/;
624
625 virtual void setPlayerGameType(::GameType gameType);
626
627 virtual void initHUDContainerManager();
628
629 virtual void emitCriticalHitParticles(::Actor const& target, int particleCount);
630
631 virtual bool isImmobile() const /*override*/;
632
633 virtual void sendMotionPacketIfNeeded() /*override*/;
634
635 virtual ::IMinecraftEventing* getEventing() const;
636
637 virtual uint getUserId() const;
638
639 virtual void addExperience(int xp);
640
641 virtual void addLevels(int levels);
642
643 virtual void setArmor(::SharedTypes::Legacy::ArmorSlot slot, ::ItemStack const& item) /*override*/;
644
645 virtual void setOffhandSlot(::ItemStack const& item) /*override*/;
646
647 virtual ::std::unique_ptr<::Packet> tryCreateAddActorPacket() /*override*/;
648
649 virtual bool isInvulnerableTo(::ActorDamageSource const& source) const /*override*/;
650
651 virtual void setContainerData(::IContainerManager& menu, int id, int value) = 0;
652
653 virtual void slotChanged(::IContainerManager&, ::Container&, int, ::ItemStack const&, ::ItemStack const&, bool) = 0;
654
655 virtual void refreshContainer(::IContainerManager& menu) = 0;
656
657 virtual void deleteContainerManager();
658
659 virtual ::ItemStack const& getEquippedTotem() const /*override*/;
660
661 virtual bool consumeTotem() /*override*/;
662
663 virtual bool isActorRelevant(::Actor const& actor);
664
665 virtual float getMapDecorationRotation() const /*override*/;
666
667 virtual void teleportTo(
668 ::Vec3 const& pos,
669 bool shouldStopRiding,
670 int cause,
671 int sourceEntityType,
672 bool keepVelocity
673 ) /*override*/;
674
675 virtual bool startRiding(::Actor& vehicle, bool forceRiding) /*override*/;
676
677 virtual void startSwimming() /*override*/;
678
679 virtual void stopSwimming() /*override*/;
680
681 virtual bool isTeacher() const = 0;
682
683 virtual void onSuspension();
684
685 virtual void onLinkedSlotsChanged();
686
687 virtual bool canBePulledIntoVehicle() const /*override*/;
688
689 virtual void feed(int itemId) /*override*/;
690
691 virtual void sendInventoryTransaction(::InventoryTransaction const& transaction) const = 0;
692
693 virtual void
694 sendComplexInventoryTransaction(::std::unique_ptr<::ComplexInventoryTransaction> transaction) const = 0;
695
696 virtual void sendNetworkPacket(::Packet& packet) const;
697
698 virtual bool canExistWhenDisallowMob() const /*override*/;
699
700 virtual ::mce::Color getNameTagTextColor() const /*override*/;
701
702 virtual bool canAddPassenger(::Actor& passenger) const /*override*/;
703
704 virtual ::PlayerEventCoordinator& getPlayerEventCoordinator() = 0;
705
706 virtual bool isSimulated() const;
707
708 virtual ::std::string getXuid() const;
709
710 virtual ::PlayerMovementSettings const& getMovementSettings() const;
711
712 virtual bool canFreeze() const /*override*/;
713
714 virtual bool canInteractWithOtherEntitiesInGame() const /*override*/;
715
716 virtual bool canObstructSpawningAndBlockPlacement() const /*override*/;
717
718 virtual ::std::optional<::BlockPos> getLastDeathPos() const /*override*/;
719
720 virtual ::std::optional<::DimensionType> getLastDeathDimension() const /*override*/;
721
722 virtual bool hasDiedBefore() const /*override*/;
723
724 virtual void doEnterWaterSplashEffect() /*override*/;
725
726 virtual void doExitWaterSplashEffect() /*override*/;
727
728 virtual ::std::optional<::PlayerPartyInfo> getPartyInfo_UNTRUSTED() const;
729
730 virtual void requestMissingSubChunk(::SubChunkPos const& scp);
731
732 virtual uchar getMaxChunkBuildRadius() const;
733
734 virtual float causeFallDamageToActor(float distance, float multiplier, ::ActorDamageSource source) /*override*/;
735
736 virtual void setBehaviorCommandStatus(::std::string const& name, ::BehaviorStatus status);
737
738#ifdef LL_PLAT_S
739 virtual void setRemotePlayerTicked(bool);
740#else // LL_PLAT_C
741 virtual void setRemotePlayerTicked(bool ticked);
742#endif
743
744 virtual ::std::unique_ptr<::ISparseContainerSetListener> createSparseContainerListener();
745
746 virtual ::ActorHurtResult
747 _hurt(::ActorDamageSource const& source, float damage, bool knock, bool ignite) /*override*/;
748
749 virtual void readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) /*override*/;
750
751 virtual void addAdditionalSaveData(::CompoundTag& entityTag) const /*override*/;
752
753 virtual void onMovePlayerPacketNormal(::Vec3 const& pos, ::Vec2 const& rot, float yHeadRot);
754
755 virtual bool _shouldProvideFeedbackOnHandContainerItemSet(::HandSlot handSlot, ::ItemStack const& item) const
756 /*override*/;
757
758 virtual bool _shouldProvideFeedbackOnArmorSet(::SharedTypes::Legacy::ArmorSlot slot, ::ItemStack const& item) const
759 /*override*/;
760
761 virtual ::std::shared_ptr<::ChunkViewSource> _createChunkSource(::ChunkSource& mainChunkSource);
762
763 virtual void setAbilities(::LayeredAbilities const& newAbilities);
764
765 virtual ::AnimationComponent& getAnimationComponent() /*override*/;
766
767 virtual ::HashedString const& getActorRendererId() const /*override*/;
768
769 virtual ::Bedrock::NonOwnerPointer<::Editor::IEditorPlayer> getEditorPlayer() const = 0;
770
771 virtual void destroyEditorPlayer() = 0;
772
773 virtual void _serverInitItemStackIds() /*override*/;
774
775 virtual ::std::unique_ptr<::BodyControl> initBodyControl() /*override*/;
776 // NOLINTEND
777
778public:
779 // member functions
780 // NOLINTBEGIN
781 MCAPI Player(
782 ::ILevel& level,
783 ::PacketSender& packetSender,
784 ::GameType playerGameType,
785 bool isHostingPlayer,
786 ::NetworkIdentifier const& owner,
787 ::SubClientId subid,
788 ::mce::UUID uuid,
789 ::std::string const& deviceId,
790 ::PlayerAuthenticationType authType,
791 ::PlayerAuthenticationInfo const& authInfo,
792 ::EntityContext& entityContext,
793 ::std::string const& platformId,
794 ::std::string const& platformOnlineId
795 );
796
797 MCAPI void _addLevels(int levels);
798
799 MCAPI bool _blockUsingShield(::ActorDamageSource const& source, float damage);
800
801 MCAPI bool _canChangeGameType(::GameType newGameType) const;
802
803 MCAPI bool _checkAndFixSpawnPosition(
804 ::Vec3& spawnPosition,
805 ::std::vector<::gsl::not_null<::BlockSource*>> regions,
806 bool adjustYToSolidGround,
807 bool searchUp,
808 bool positionFromSave
809 );
810
811 MCAPI void _checkMovementShouldStopEmoting();
812
813 MCAPI void _chooseSpawnArea();
814
815 MCAPI bool _chooseSpawnPositionWithinArea();
816
817 MCAPI bool _findFallbackSpawnPosition(
818 ::Vec3& spawnPosition,
819 ::std::vector<::gsl::not_null<::BlockSource*>> regions,
820 uint maxDistance,
821 bool checkStoredFallback
822 );
823
824 MCAPI void _fireWillChangeDimension();
825
826 MCAPI bool _fixup4JBedSpawnPosition(::Vec3& pos);
827
828 MCAPI void _handleCarriedItemInteractText();
829
830 MCAPI bool _isChunkSourceLoaded(::Vec3 const& spawnPosition, ::BlockSource const& region) const;
831
832 MCAPI void _loadBlastFurnaceOptions(::CompoundTag const& tag);
833
834 MCAPI void _loadFurnaceOptions(::CompoundTag const& tag);
835
836 MCAPI void _loadInventoryOptions(::CompoundTag const& tag);
837
838 MCAPI void _loadSmokerOptions(::CompoundTag const& tag);
839
840 MCAPI void _preSpawnBuildSpawnDataCache();
841
842 MCAPI void _registerElytraLoopSound();
843
844 MCAPI void _registerPlayerAttributes();
845
846 MCAPI void _resetClientAnimations();
847
848 MCAPI void _saveInventoryOptions(::CompoundTag& tag) const;
849
850 MCAPI void _sendShieldUpdatePacket(
851 ::ShieldItem const& shieldItem,
852 ::ItemStack const& before,
853 ::ItemStack const& after,
854 ::ContainerID container,
855 int slot
856 );
857
858 MCAPI void _setPlayerGameType(::GameType gameType);
859
860 MCAPI void _setPreDimensionTransferSpawnPosition(::Vec3 pos);
861
862#ifdef LL_PLAT_C
863 MCAPI void _setStartedBlockingTimeStamp(int64 timeStamp);
864#endif
865
866 MCAPI bool _shouldCrit(::Actor const& target) const;
867
868 MCAPI void _tickItemCooldowns();
869
870 MCAPI bool _updateFroglightCountAndTestForAchievement(::ItemStack const& oldItem, ::ItemStack const& newItem);
871
872 MCAPI void _updateInteraction();
873
874 MCAPI bool _validateSpawnPositionAvailability(
875 ::Vec3 const& pos,
876 ::BlockSource* blockSourceChunkCheck,
877 ::Vec3 const* const AABBoffset
878 ) const;
879
880#ifdef LL_PLAT_C
881 MCAPI void addListener(::PlayerListener& listener);
882#endif
883
884 MCAPI ::ActorHurtResult attack(
885 ::Actor& actor,
886 ::SharedTypes::Legacy::ActorDamageCause const& cause,
887 ::Player::AttackParameters const& parameters
888 );
889
890 MCAPI void broadcastPlayerSpawnedMobEvent(::ActorType spawnedType, ::MobSpawnMethod spawnMethod);
891
892 MCAPI bool canBeSeenOnMap() const;
893
894 MCAPI bool canJump();
895
896 MCAPI bool canOpenContainerScreen();
897
898 MCAPI bool canSleep() const;
899
900 MCAPI bool canStackInOffhand(::ItemStack const& item) const;
901
902 MCAPI bool canUseAbility(::AbilitiesIndex abilityIndex) const;
903
904 MCAPI bool canUseOperatorBlocks() const;
905
906 MCAPI void causeFoodExhaustion(float exhaustionAmount);
907
908 MCAPI bool checkBed(::BlockSource* spawnBlockSource, ::Vec3 const* const positionToCheck);
909
910 MCAPI bool checkNeedAutoJump(float inputMoveX, float inputMoveZ);
911
912 MCAPI bool checkSpawnBlock(::BlockSource const& region) const;
913
914 MCAPI void clearRespawnPosition();
915
916 MCAPI void completeUsingItem();
917
918#ifdef LL_PLAT_C
919 MCAPI void crackBlock(::BlockPos const& pos, uchar face);
920#endif
921
922 MCAPI void eat(::ItemStack const& instance);
923
924 MCAPI void eat(int hungerValue, float saturationModifier);
925
926 MCAPI bool equippedArmorItemCanBeMoved(::ItemStack const& item) const;
927
928 MCAPI void fireDimensionChangedEvent(::DimensionType fromDimension, ::DimensionType toDimension);
929
930 MCAPI bool forceAllowEating() const;
931
932 MCFOLD ::LayeredAbilities const& getAbilities() const;
933
934 MCFOLD ::LayeredAbilities& getAbilities();
935
936 MCAPI ::Agent* getAgent() const;
937
938 MCAPI ::ActorUniqueID getAgentID() const;
939
940 MCAPI ::Agent* getAgentIfAllowed(bool callerCanAccessOtherAgents, ::ActorUniqueID callerAgentID) const;
941
942 MCAPI ::SharedTypes::Legacy::LevelSoundEvent getAttackHitSound() const;
943
944 MCAPI ::SharedTypes::Legacy::LevelSoundEvent getAttackMissSound() const;
945
946 MCFOLD ::BlockPos const& getBedPosition() const;
947
948#ifdef LL_PLAT_C
949 MCAPI ::FurnaceOptions const& getBlastFurnaceOptions() const;
950#endif
951
952 MCAPI int64 getBlockedUsingDamagedShieldTimeStamp() const;
953
954 MCAPI int64 getBlockedUsingShieldTimeStamp() const;
955
956 MCAPI int64 getBlockingStartTimeStamp() const;
957
958 MCAPI ::Vec3 getCapePos(float a);
959
960 MCAPI ::std::string getChatDisplayName() const;
961
962 MCAPI ::std::optional<::std::string> const& getChatMessagePrefix() const;
963
964 MCAPI ::std::optional<::std::string> const& getChatNamePrefix() const;
965
966 MCAPI ::std::optional<::std::string> const& getChatNameSuffix() const;
967
968 MCAPI uint getChunkRadius() const;
969
970 MCFOLD ::std::weak_ptr<::IContainerManager> getContainerManager() const;
971
972#ifdef LL_PLAT_C
973 MCFOLD ::std::weak_ptr<::ContainerManagerModel> getContainerManagerModel() const;
974#endif
975
976 MCAPI ::gsl::not_null<::StackRefResult<::IContainerRegistryAccess>> getContainerRegistryAccess() const;
977
978 MCAPI ::gsl::not_null<::StackRefResult<::IContainerRegistryTracker>> getContainerRegistryTracker() const;
979
980#ifdef LL_PLAT_C
981 MCAPI ::std::vector<::ItemInstance> const& getCreativeItemList() const;
982#endif
983
984 MCAPI ::ItemStack const& getCurrentActiveShield() const;
985
986#ifdef LL_PLAT_C
987 MCAPI uint getCurrentOnScreenAnimationEffectID() const;
988#endif
989
990 MCAPI float getDestroyProgress(::Block const& block);
991
992 MCAPI int getDirection() const;
993
994 MCAPI ::gsl::not_null<::StackRefResult<::IDynamicContainerSerialization>> getDynamicContainerSerialization() const;
995
996 MCAPI int getEnchantmentSeed() const;
997
998 MCAPI ::DimensionType getExpectedSpawnDimensionId() const;
999
1000 MCAPI ::BlockPos const& getExpectedSpawnPosition() const;
1001
1002#ifdef LL_PLAT_C
1003 MCAPI ::FurnaceOptions const& getFurnaceOptions() const;
1004#endif
1005
1006 MCAPI ::GameMode& getGameMode() const;
1007
1008#ifdef LL_PLAT_C
1009 MCAPI ::std::weak_ptr<::HudContainerManagerModel> getHudContainerManagerModel() const;
1010#endif
1011
1012 MCAPI ::std::string getInteractText() const;
1013
1014#ifdef LL_PLAT_C
1015 MCAPI ::std::string const& getInteractTextKey() const;
1016#endif
1017
1018 MCAPI ::Container& getInventory();
1019
1020#ifdef LL_PLAT_C
1021 MCAPI ::InventoryOptions const& getInventoryOptions() const;
1022#endif
1023
1024 MCAPI ::ItemStack const& getItem(int slot) const;
1025
1026 MCAPI int getItemCooldownLeft(::HashedString const& category) const;
1027
1028 MCAPI int getItemCooldownLeft(uint64 categoryHash) const;
1029
1030#ifdef LL_PLAT_C
1031 MCAPI float getItemCooldownProgress(::HashedString const& category) const;
1032#endif
1033
1034 MCFOLD ::ItemStack const& getItemInUse() const;
1035
1036 MCAPI int getItemInUseSlot() const;
1037
1038 MCAPI ::std::string getItemInteractText(::Item const& item) const;
1039
1040 MCFOLD ::ItemStackNetManagerBase const* getItemStackNetManager() const;
1041
1042 MCFOLD ::ItemStackNetManagerBase* getItemStackNetManager();
1043
1044#ifdef LL_PLAT_C
1045 MCAPI ::ActorType getLastHurtBy() const;
1046
1047 MCAPI float getLevelProgress() const;
1048#endif
1049
1050 MCAPI float getLuck();
1051
1052 MCAPI int getMapIndex();
1053
1054 MCAPI int getMaxItemCooldownLeft() const;
1055
1056 MCAPI ::std::string const& getName() const;
1057
1058 MCAPI void getNewEnchantmentSeed();
1059
1060#ifdef LL_PLAT_C
1061 MCFOLD ::std::vector<::BiomeIdType>& getOceanBiomes();
1062
1063 MCAPI int getOnScreenAnimationTicks() const;
1064#endif
1065
1066 MCAPI ::AABB getPickupArea() const;
1067
1068 MCAPI ::BuildPlatform getPlatform() const;
1069
1070 MCAPI ::std::string const& getPlatformOnlineId() const;
1071
1072 MCAPI ::GameType getPlayerGameType() const;
1073
1074 MCAPI int getPlayerIndex() const;
1075
1076 MCAPI int getPlayerLevel() const;
1077
1078 MCAPI ::PlayerPermissionLevel getPlayerPermissionLevel() const;
1079
1080 MCAPI ::std::string const& getPlayerSessionId() const;
1081
1082 MCAPI ::ItemStack const& getPlayerUIItem(::PlayerUISlot slot);
1083
1084 MCFOLD ::BlockPos const& getRespawnAnchorPosition() const;
1085
1086 MCFOLD ::ItemStack const& getSelectedItem() const;
1087
1088 MCAPI ::SerializedSkinRef const& getSkin() const;
1089
1090 MCAPI float getSleepRotation() const;
1091
1092#ifdef LL_PLAT_C
1093 MCAPI ::FurnaceOptions const& getSmokerOptions() const;
1094#endif
1095
1096 MCAPI ::DimensionType getSpawnDimension() const;
1097
1098 MCAPI ::BlockPos const& getSpawnPosition() const;
1099
1100 MCFOLD ::PlayerInventory const& getSupplies() const;
1101
1102 MCFOLD ::PlayerInventory& getSupplies();
1103
1104#ifdef LL_PLAT_C
1105 MCAPI int getTicksUsingItem() const;
1106#endif
1107
1108 MCAPI ::std::vector<::ActorUniqueID> const& getTrackedBosses() const;
1109
1110 MCAPI bool getUsedPotion();
1111
1112 MCAPI int getXpEarnedAtCurrentLevel() const;
1113
1114 MCAPI uint getXpNeededForLevelRange(int startlevel, int endlevel) const;
1115
1116 MCAPI int getXpNeededForNextLevel() const;
1117
1118#ifdef LL_PLAT_C
1119 MCAPI void handleMovePlayerPacket(
1120 ::PlayerPositionModeComponent::PositionMode mode,
1121 ::Vec3 const& pos,
1122 ::Vec2 const& rot,
1123 float yHeadRot,
1124 int cause,
1125 int sourceEntityType
1126 );
1127#endif
1128
1129 MCAPI bool hasBedPosition() const;
1130
1131 MCAPI bool hasOpenContainer() const;
1132
1133 MCAPI bool hasOpenContainerOfContainerType(::SharedTypes::Legacy::ContainerType containerType) const;
1134
1135 MCAPI bool hasOwnedChunkSource() const;
1136
1137 MCAPI bool hasResource(::ItemDescriptor const& resource);
1138
1139 MCAPI bool hasRespawnAnchorPosition() const;
1140
1141 MCFOLD bool hasRespawnPosition() const;
1142
1143#ifdef LL_PLAT_C
1144 MCFOLD bool hasSleepFlagSet();
1145#endif
1146
1147 MCAPI ::InteractionResult interact(::Actor& actor, ::Vec3 const& location);
1148
1149 MCAPI void inventoryChanged(
1150 ::Container&,
1151 int slot,
1152 ::ItemStack const& oldItem,
1153 ::ItemStack const& newItem,
1154 bool forceBalanced
1155 );
1156
1157 MCAPI bool is2DPositionRelevant(::DimensionType dimension, ::BlockPos const& position);
1158
1159#ifdef LL_PLAT_C
1160 MCAPI bool isCrawling();
1161#endif
1162
1163 MCAPI bool isCurrentSkinTrusted() const;
1164
1165#ifdef LL_PLAT_C
1166 MCAPI bool isEmoteMessageEasterEgg() const;
1167#endif
1168
1169 MCAPI bool isEmoting() const;
1170
1171 MCAPI bool isEquipmentHidden() const;
1172
1173 MCAPI bool isFlying() const;
1174
1175 MCAPI bool isForcedRespawn() const;
1176
1177 MCAPI bool isHiddenFrom(::Mob& target) const;
1178
1179 MCAPI bool isHostingPlayer() const;
1180
1181 MCAPI bool isHungry() const;
1182
1183 MCAPI bool isHurt();
1184
1185 MCAPI bool isInRaid() const;
1186
1187 MCAPI bool isItemOnCooldown(::HashedString const& category) const;
1188
1189 MCAPI bool isItemOnCooldown(::Item const& item) const;
1190
1191 MCAPI bool isRespawningFromTheEnd() const;
1192
1193#ifdef LL_PLAT_C
1194 MCAPI bool isScoping() const;
1195#endif
1196
1197 MCAPI bool isSleepingLongEnough() const;
1198
1199 MCAPI bool isSpawned() const;
1200
1201 MCAPI bool isUsingItem() const;
1202
1203 MCFOLD bool isValidSpawn() const;
1204
1205 MCAPI void loadLastDeathLocation(::CompoundTag const& tag);
1206
1207#ifdef LL_PLAT_C
1208 MCAPI void onMobStatusChanged(::ActorUniqueID mob);
1209
1210 MCAPI void onResetBAI(int);
1211#endif
1212
1213 MCAPI void passengerCheckMovementStats();
1214
1215 MCAPI void playFallOrLandSound(int expectedDamage, ::Block const& onBlock, ::Block const& blockAbove);
1216
1217 MCAPI void playPredictiveSynchronizedSound(
1218 ::SharedTypes::Legacy::LevelSoundEvent type,
1219 ::Vec3 const& pos,
1220 int data,
1221 bool isGlobal
1222 );
1223
1224#ifdef LL_PLAT_C
1225 MCAPI void queueOnScreenTextureAnimation(uint effectID);
1226#endif
1227
1228 MCAPI void recheckSpawnPosition();
1229
1230 MCAPI void registerTrackedBoss(::ActorUniqueID mob);
1231
1232 MCAPI void releaseUsingItem();
1233
1234#ifdef LL_PLAT_C
1235 MCAPI void removeListener(::PlayerListener& listener);
1236#endif
1237
1238 MCAPI void resendAllChunks();
1239
1240#ifdef LL_PLAT_C
1241 MCAPI void resetEmoteMessageData();
1242
1243 MCAPI void resetOnScreenAnimationTicks();
1244#endif
1245
1246 MCAPI void resetPlayerLevel();
1247
1248 MCAPI void resetPublisherInitialSpawn();
1249
1250 MCAPI void resetToDefaultGameMode();
1251
1252 MCAPI void saveLastDeathLocation(::CompoundTag& tag) const;
1253
1254 MCAPI void sendEventPacket(::LegacyTelemetryEventPacket& packet) const;
1255
1256 MCAPI void sendPlayerTeleported();
1257
1258 MCAPI void sendSpawnExperienceOrbPacketToServer(::Vec3 const& pos, int count);
1259
1260 MCAPI void setAgent(::Agent* agent);
1261
1262 MCAPI void setBedRespawnPosition(::BlockPos const& bedPosition);
1263
1264#ifdef LL_PLAT_C
1265 MCAPI void setBlastFurnaceOptions(::FurnaceOptions const& options);
1266#endif
1267
1268 MCAPI void setBlockRespawnUntilClientMessage(bool val);
1269
1270 MCAPI void setChatMessagePrefix(::std::optional<::std::string> prefix);
1271
1272 MCAPI void setChatNamePrefix(::std::optional<::std::string> prefix);
1273
1274 MCAPI void setChatNameSuffix(::std::optional<::std::string> suffix);
1275
1276 MCAPI void setChunkRadius(uint chunkRadius);
1277
1278 MCAPI void setCommandPermissions(::CommandPermissionLevel permissions);
1279
1280 MCAPI void setContainerManagerModel(::std::shared_ptr<::ContainerManagerModel> manager);
1281
1282 MCAPI void setCursorSelectedItem(::ItemStack const& item);
1283
1284 MCAPI void setCursorSelectedItemGroup(::ItemGroup const& itemGroup);
1285
1286 MCAPI void setEmotingStatus(uint emoteTicks);
1287
1288 MCAPI void setEnchantmentSeed(int newSeed);
1289
1290#ifdef LL_PLAT_C
1291 MCAPI void setFurnaceOptions(::FurnaceOptions const& options);
1292#endif
1293
1294 MCAPI void setHasSeenCredits(bool value);
1295
1296 MCAPI void setInventoryOptions(::InventoryOptions const& options);
1297
1298#ifdef LL_PLAT_C
1299 MCAPI void setIsDeferredRenderingFirstPersonObjects(bool isRenderingDeferredFirstPersonObjects);
1300#endif
1301
1302 MCAPI void setItem(::ItemStack const& item, int slot);
1303
1304#ifdef LL_PLAT_C
1305 MCAPI void setLastHurtBy(::ActorType lastHurtBy);
1306#endif
1307
1308 MCAPI void setMapIndex(int mapIndex);
1309
1310 MCAPI void setName(::std::string const& newName);
1311
1312#ifdef LL_PLAT_C
1313 MCAPI void setPlatform(::BuildPlatform platform);
1314#endif
1315
1316 MCAPI void setPlatformOnlineId(::std::string const& platformOnlineId);
1317
1318 MCAPI void setPlayerIndex(int index);
1319
1320 MCAPI void setPlayerUIItem(::PlayerUISlot slot, ::ItemStack const& item, bool forceBalance);
1321
1322 MCAPI void setRespawnPosition(::BlockPos const& inRespawnPosition, ::DimensionType dimension);
1323
1324#ifdef LL_PLAT_C
1325 MCAPI void
1326 setRespawnPosition(::BlockPos const& respawnPosition, ::DimensionType dimension, ::BlockPos const& spawnBlockPos);
1327#endif
1328
1329 MCAPI void setRespawnPositionCandidate();
1330
1331 MCAPI void setRespawnReady(::Vec3 const& respawnPosition);
1332
1333 MCAPI void setSelectedItem(::ItemStack const& item);
1334
1335 MCAPI ::ItemStack const& setSelectedSlot(int slot);
1336
1337#ifdef LL_PLAT_C
1338 MCAPI void setSmokerOptions(::FurnaceOptions const& options);
1339#endif
1340
1341 MCAPI bool setSpawnBlockRespawnPosition(::BlockPos const& spawnBlockPosition, ::DimensionType dimension);
1342
1343 MCAPI void setUsedPotion(bool used);
1344
1345 MCAPI bool shouldShowCredits() const;
1346
1347 MCAPI void startDestroying();
1348
1349 MCAPI void startGliding();
1350
1351 MCAPI void startItemCooldown(::Item const& item, bool updateClient);
1352
1353 MCAPI void startItemCooldown(::HashedString const& type, int tickDuration, bool updateClient);
1354
1355 MCAPI void
1356 startItemUseOn(uchar face, ::BlockPos const& blockPos, ::BlockPos const& buildBlockPos, ::ItemStack const& item);
1357
1358 MCAPI void startUsingItem(::ItemStack const& instance, int duration);
1359
1360 MCAPI void stopDestroying();
1361
1362 MCAPI void stopGliding();
1363
1364 MCAPI void stopItemUseOn(::BlockPos const& blockPos, ::ItemStack const& item);
1365
1366 MCAPI void stopUsingItem();
1367
1368 MCAPI bool take(::Actor& actor, int favoredSlot, int);
1369
1370 MCAPI void tickArmor();
1371
1372 MCAPI void tryDisableShield();
1373
1374 MCAPI bool tryStartGliding();
1375
1376 MCAPI void unRegisterTrackedBoss(::ActorUniqueID mob);
1377
1378#ifdef LL_PLAT_C
1379 MCAPI void updateCreativeItemList(::CreativeItemRegistry const& creativeItemRegistry);
1380
1381 MCAPI bool updateEmoteMessageData(::PersonaPiece const& emotePiece);
1382#endif
1383
1384 MCAPI void updateInventoryTransactions();
1385
1386 MCAPI void updateSkin(::SerializedSkinRef const& skin, int clientSubID);
1387
1388 MCAPI void updateTouch();
1389
1390 MCAPI void updateTrackedBosses();
1391
1392#ifdef LL_PLAT_C
1393 MCAPI void useMapAnimationComponent(bool InMap);
1394#endif
1395
1396 MCAPI void useSelectedItem(::ItemUseMethod itemUseMethod, bool consumeItem);
1397 // NOLINTEND
1398
1399public:
1400 // static functions
1401 // NOLINTBEGIN
1402#ifdef LL_PLAT_C
1403 MCAPI static ::PlayerSpawnFallbackType
1404 _findSpawnFallbackType(::Vec3 const& spawnPosition, ::gsl::not_null<::BlockSource*>& region);
1405#endif
1406
1407 MCAPI static bool _isDangerousBlockForSpawn(::Block const& block);
1408
1409 MCAPI static bool _isDangerousBlock_DEPRECATED(::Block const& block, bool checkForLava);
1410
1411#ifdef LL_PLAT_C
1412 MCAPI static ::std::optional<::Player::FixedSpawnPositionData> checkAndFixSpawnPosition(
1413 ::Vec3 const& spawnPosition,
1414 ::std::vector<::gsl::not_null<::BlockSource*>> regions,
1415 ::AABB aabb,
1416 bool adjustYToSolidGround,
1417 bool searchUp,
1418 bool positionFromSave,
1419 bool spawningAtForcedSpawn,
1420 short dimensionHeight
1421 );
1422#endif
1423
1424 MCAPI static ::std::optional<::Player::FixedSpawnPositionData_DEPRECATED> checkAndFixSpawnPosition_DEPRECATED(
1425 ::Vec3 const& spawnPosition,
1426 ::std::vector<::gsl::not_null<::BlockSource*>> regions,
1427 ::AABB aabb,
1428 bool adjustYToSolidGround,
1429 bool searchUp,
1430 bool positionFromSave,
1431 bool spawningAtForcedSpawn,
1432 bool dimensionHeight,
1433 short
1434 );
1435
1436 MCAPI static bool checkNeedAutoJump(
1437 ::IConstBlockSource const& region,
1438 ::AABBShapeComponent const& aabbShape,
1439 ::ActorRotationComponent const& actorRotation,
1440 float movementSpeed,
1441 ::StateVectorComponent const& stateVector,
1443 float inputMoveX,
1444 float inputMoveZ
1445 );
1446
1447 MCAPI static ::std::optional<::SharedTypes::Legacy::LevelSoundEvent>
1448 getCustomHurtSound(::Mob const& mob, ::SharedTypes::Legacy::ActorDamageCause cause);
1449
1450 MCAPI static bool isDangerousVolumeForSpawn(::BlockSource& region, ::AABB const& centeredAABB);
1451
1452 MCFOLD static ::Player const*
1453 tryGetFromComponent(::PlayerComponent const&, ::ActorOwnerComponent const& actor, bool includeRemoved);
1454
1455 MCFOLD static ::Player*
1456 tryGetFromComponent(::PlayerComponent const&, ::ActorOwnerComponent& actor, bool includeRemoved);
1457
1458 MCAPI static ::Player* tryGetFromEntity(::StackRefResult<::EntityContext> entity, bool includeRemoved);
1459
1460 MCAPI static void
1461 updatePlayerGameTypeEntityData(::EntityContext& entity, ::GameType gameType, ::GameType defaultGameType);
1462 // NOLINTEND
1463
1464public:
1465 // static variables
1466 // NOLINTBEGIN
1467 MCAPI static float const& DEFAULT_BB_HEIGHT();
1468
1469 MCAPI static float const& DEFAULT_BB_WIDTH();
1470
1471 MCAPI static float const& DEFAULT_PLAYER_EYE_OFFSET();
1472
1473 MCAPI static float const& DEFAULT_PLAYER_HEIGHT_OFFSET();
1474
1475 MCAPI static float const& DISTANCE_TO_TRANSFORM_EVENT();
1476
1477 MCAPI static float const& DISTANCE_TO_TRAVELLED_EVENT();
1478
1479 MCAPI static ::Attribute const& EXHAUSTION();
1480
1481 MCAPI static ::Attribute const& EXPERIENCE();
1482
1483 MCAPI static int const& GLIDE_STOP_DELAY();
1484
1485 MCAPI static ::Attribute const& HUNGER();
1486
1487 MCAPI static ::Attribute const& LEVEL();
1488
1489 MCAPI static float const& PLAYER_SLEEPING_HEIGHT();
1490
1491 MCAPI static ::Attribute const& SATURATION();
1492 // NOLINTEND
1493
1494public:
1495 // constructor thunks
1496 // NOLINTBEGIN
1497 MCAPI void* $ctor(
1498 ::ILevel& level,
1499 ::PacketSender& packetSender,
1500 ::GameType playerGameType,
1501 bool isHostingPlayer,
1502 ::NetworkIdentifier const& owner,
1503 ::SubClientId subid,
1504 ::mce::UUID uuid,
1505 ::std::string const& deviceId,
1506 ::PlayerAuthenticationType authType,
1507 ::PlayerAuthenticationInfo const& authInfo,
1508 ::EntityContext& entityContext,
1509 ::std::string const& platformId,
1510 ::std::string const& platformOnlineId
1511 );
1512 // NOLINTEND
1513
1514public:
1515 // destructor thunk
1516 // NOLINTBEGIN
1517 MCAPI void $dtor();
1518 // NOLINTEND
1519
1520public:
1521 // virtual function thunks
1522 // NOLINTBEGIN
1523 MCAPI void $initializeComponents(::ActorInitializationMethod method, ::VariantParameterList const& params);
1524
1525 MCAPI void $reloadHardcoded(::ActorInitializationMethod method, ::VariantParameterList const& params);
1526
1527 MCAPI void $prepareRegion(::ChunkSource& mainChunkSource);
1528
1529 MCAPI void $destroyRegion();
1530
1531 MCAPI void $suspendRegion();
1532
1533 MCAPI void $_fireDimensionChanged();
1534
1535 MCAPI bool $canChangeDimensionsUsingPortal() const;
1536
1537 MCFOLD void $changeDimensionWithCredits(::DimensionType dimension);
1538
1539 MCAPI void $tickWorld(::Tick const& currentTick);
1540
1541 MCAPI ::std::vector<::ChunkPos> const& $getTickingOffsets() const;
1542
1543 MCAPI void $normalTick();
1544
1545 MCAPI void $moveView();
1546
1547 MCAPI void $moveSpawnView(::Vec3 const& spawnPosition, ::DimensionType dimensionType);
1548
1549 MCFOLD void $onSynchedDataUpdate(int dataId);
1550
1551 MCAPI void $aiStep();
1552
1553 MCAPI bool $isFireImmune() const;
1554
1555 MCFOLD void $checkMovementStats(::Vec3 const& d);
1556
1557 MCFOLD ::HashedString $getCurrentStructureFeature() const;
1558
1559 MCFOLD bool $isAutoJumpEnabled() const;
1560
1561 MCAPI ::Vec3 $getInterpolatedRidingOffset(float, int const) const;
1562
1563 MCAPI void $passengerTick();
1564
1565 MCAPI void $die(::ActorDamageSource const& source);
1566
1567 MCAPI void $remove();
1568
1569 MCAPI void $respawn();
1570
1571 MCAPI bool $shouldDropDeathLoot() const;
1572
1573 MCAPI void $dropEquipmentOnDeath(::ActorDamageSource const& source);
1574
1575 MCAPI void $dropEquipmentOnDeath();
1576
1577 MCFOLD void $clearVanishEnchantedItemsOnDeath();
1578
1579 MCAPI bool $drop(::ItemStack const& item, bool const randomly);
1580
1581 MCFOLD void $resetRot();
1582
1583 MCAPI void $resetUserPos(::ActorResetRule resetRule);
1584
1585 MCFOLD bool $isInTrialMode();
1586
1587 MCAPI void $setSpeed(float _speed);
1588
1589 MCAPI int $getItemUseDuration() const;
1590
1591 MCAPI float $getItemUseStartupProgress() const;
1592
1593 MCAPI float $getItemUseIntervalProgress() const;
1594
1595 MCAPI bool $isBlocking() const;
1596
1597 MCAPI bool $isDamageBlocked(::ActorDamageSource const& source) const;
1598
1599 MCAPI void $handleEntityEvent(::ActorEvent id, int data);
1600
1601 MCAPI ::std::vector<::ItemStack const*> $getAllHandEquipment() const;
1602
1603 MCAPI ::std::vector<::ItemStack const*> $getAllEquipment() const;
1604
1605 MCAPI bool $add(::ItemStack& item);
1606
1607 MCAPI ::CommandPermissionLevel $getCommandPermissionLevel() const;
1608
1609 MCAPI ::ActorHurtResult $attack(::Actor& actor, ::SharedTypes::Legacy::ActorDamageCause const& cause);
1610
1611 MCFOLD ::ItemStack const& $getCarriedItem() const;
1612
1613 MCAPI void $setCarriedItem(::ItemStack const& item);
1614
1615 MCAPI void $damageCarriedItemOnAttack(::Actor& target, float damageDealtToTarget);
1616
1617 MCFOLD void $openPortfolio();
1618
1619 MCFOLD void $openBook(int bookSlot, bool editable, int page, ::BlockActor* lectern);
1620
1621 MCFOLD void $openTrading(::ActorUniqueID const& uniqueID, bool useNewScreen);
1622
1623 MCFOLD void $openChalkboard(::ChalkboardBlockActor& chalkboard, bool showLockToggle);
1624
1625 MCFOLD void $openNpcInteractScreen(::std::shared_ptr<::INpcDialogueData> npc);
1626
1627 MCFOLD void $openInventory();
1628
1629 MCFOLD void $displayChatMessage(
1630 ::std::string const& author,
1631 ::std::string const& message,
1632 ::std::optional<::std::string> const filteredMessage
1633 );
1634
1635 MCAPI void
1636 $displayClientMessage(::std::string const& message, ::std::optional<::std::string> const filteredMessage);
1637
1638 MCFOLD void $displayTextObjectMessage(
1639 ::TextObjectRoot const& textObject,
1640 ::std::string const& fromXuid,
1641 ::std::string const& fromPlatformId
1642 );
1643
1644 MCFOLD void $displayTextObjectWhisperMessage(
1645 ::ResolvedTextObject const& resolvedTextObject,
1646 ::std::string const& xuid,
1647 ::std::string const& platformId
1648 );
1649
1650 MCFOLD void $displayTextObjectWhisperMessage(
1651 ::std::string const& message,
1652 ::std::string const& xuid,
1653 ::std::string const& platformId
1654 );
1655
1656 MCFOLD void $displayWhisperMessage(
1657 ::std::string const& author,
1658 ::std::string const& message,
1659 ::std::optional<::std::string> const filteredMessage,
1660 ::std::string const& xuid,
1661 ::std::string const& platformId
1662 );
1663
1664 MCAPI float $getShadowRadius() const;
1665
1666 MCAPI bool $isSleeping() const;
1667
1668 MCAPI void $setSleeping(bool val);
1669
1670 MCAPI ::BedSleepingResult $startSleepInBed(::BlockPos const& bedBlockPos);
1671
1672 MCAPI void $stopSleepInBed(bool forcefulWakeUp, bool updateLevelList);
1673
1674 MCAPI bool $canStartSleepInBed();
1675
1676 MCFOLD void $sendInventory(bool shouldSelectSlot);
1677
1678 MCFOLD void $openSign(::BlockPos const& position, bool isFrontSide);
1679
1680 MCFOLD void $playEmote(::std::string const& pieceId, bool const playChatMessage);
1681
1682 MCAPI bool $isSilentObserver() const;
1683
1684 MCAPI void $useItem(::ItemStackBase& instance, ::ItemUseMethod itemUseMethod, bool consumeItem);
1685
1686 MCFOLD bool $isLoading() const;
1687
1688 MCFOLD bool $isPlayerInitialized() const;
1689
1690 MCFOLD void $stopLoading();
1691
1692 MCAPI float $getSpeed() const;
1693
1694 MCAPI void $setPlayerGameType(::GameType gameType);
1695
1696 MCAPI void $initHUDContainerManager();
1697
1698 MCAPI void $emitCriticalHitParticles(::Actor const& target, int particleCount);
1699
1700 MCAPI bool $isImmobile() const;
1701
1702 MCFOLD void $sendMotionPacketIfNeeded();
1703
1704 MCAPI ::IMinecraftEventing* $getEventing() const;
1705
1706 MCFOLD uint $getUserId() const;
1707
1708 MCAPI void $addExperience(int xp);
1709
1710 MCAPI void $addLevels(int levels);
1711
1712 MCAPI void $setArmor(::SharedTypes::Legacy::ArmorSlot slot, ::ItemStack const& item);
1713
1714 MCAPI void $setOffhandSlot(::ItemStack const& item);
1715
1716 MCAPI ::std::unique_ptr<::Packet> $tryCreateAddActorPacket();
1717
1718 MCAPI bool $isInvulnerableTo(::ActorDamageSource const& source) const;
1719
1720 MCAPI void $deleteContainerManager();
1721
1722 MCAPI ::ItemStack const& $getEquippedTotem() const;
1723
1724 MCAPI bool $consumeTotem();
1725
1726 MCFOLD bool $isActorRelevant(::Actor const& actor);
1727
1728 MCAPI float $getMapDecorationRotation() const;
1729
1730 MCAPI void
1731 $teleportTo(::Vec3 const& pos, bool shouldStopRiding, int cause, int sourceEntityType, bool keepVelocity);
1732
1733 MCAPI bool $startRiding(::Actor& vehicle, bool forceRiding);
1734
1735 MCAPI void $startSwimming();
1736
1737 MCAPI void $stopSwimming();
1738
1739 MCFOLD void $onSuspension();
1740
1741 MCFOLD void $onLinkedSlotsChanged();
1742
1743 MCFOLD bool $canBePulledIntoVehicle() const;
1744
1745 MCAPI void $feed(int itemId);
1746
1747 MCFOLD void $sendNetworkPacket(::Packet& packet) const;
1748
1749 MCFOLD bool $canExistWhenDisallowMob() const;
1750
1751 MCAPI ::mce::Color $getNameTagTextColor() const;
1752
1753 MCAPI bool $canAddPassenger(::Actor& passenger) const;
1754
1755 MCFOLD bool $isSimulated() const;
1756
1757 MCAPI ::std::string $getXuid() const;
1758
1759 MCAPI ::PlayerMovementSettings const& $getMovementSettings() const;
1760
1761 MCAPI bool $canFreeze() const;
1762
1763 MCAPI bool $canInteractWithOtherEntitiesInGame() const;
1764
1765 MCAPI bool $canObstructSpawningAndBlockPlacement() const;
1766
1767 MCAPI ::std::optional<::BlockPos> $getLastDeathPos() const;
1768
1769 MCAPI ::std::optional<::DimensionType> $getLastDeathDimension() const;
1770
1771 MCAPI bool $hasDiedBefore() const;
1772
1773 MCAPI void $doEnterWaterSplashEffect();
1774
1775 MCAPI void $doExitWaterSplashEffect();
1776
1777 MCFOLD ::std::optional<::PlayerPartyInfo> $getPartyInfo_UNTRUSTED() const;
1778
1779 MCFOLD void $requestMissingSubChunk(::SubChunkPos const& scp);
1780
1781 MCAPI uchar $getMaxChunkBuildRadius() const;
1782
1783 MCAPI float $causeFallDamageToActor(float distance, float multiplier, ::ActorDamageSource source);
1784
1785 MCFOLD void $setBehaviorCommandStatus(::std::string const& name, ::BehaviorStatus status);
1786
1787 MCFOLD void $setRemotePlayerTicked(bool);
1788
1789 MCFOLD ::std::unique_ptr<::ISparseContainerSetListener> $createSparseContainerListener();
1790
1791 MCAPI ::ActorHurtResult $_hurt(::ActorDamageSource const& source, float damage, bool knock, bool ignite);
1792
1793 MCAPI void $readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
1794
1795 MCAPI void $addAdditionalSaveData(::CompoundTag& entityTag) const;
1796
1797 MCAPI void $onMovePlayerPacketNormal(::Vec3 const& pos, ::Vec2 const& rot, float yHeadRot);
1798
1799 MCAPI bool $_shouldProvideFeedbackOnHandContainerItemSet(::HandSlot handSlot, ::ItemStack const& item) const;
1800
1801 MCAPI bool $_shouldProvideFeedbackOnArmorSet(::SharedTypes::Legacy::ArmorSlot slot, ::ItemStack const& item) const;
1802
1803 MCAPI ::std::shared_ptr<::ChunkViewSource> $_createChunkSource(::ChunkSource& mainChunkSource);
1804
1805 MCAPI void $setAbilities(::LayeredAbilities const& newAbilities);
1806
1807 MCAPI ::AnimationComponent& $getAnimationComponent();
1808
1809 MCAPI ::HashedString const& $getActorRendererId() const;
1810
1811 MCFOLD void $_serverInitItemStackIds();
1812
1813 MCAPI ::std::unique_ptr<::BodyControl> $initBodyControl();
1814
1815
1816 // NOLINTEND
1817
1818public:
1819 // vftables
1820 // NOLINTBEGIN
1821 MCAPI static void** $vftable();
1822 // NOLINTEND
1823};
Definition AABB.h:18
Definition ActorDamageSource.h:18
Definition ActorHurtResult.h:5
Definition ActorOwnerComponent.h:10
Definition Actor.h:123
Definition Agent.h:34
Definition AnimationComponent.h:37
Definition Attribute.h:9
Definition BlockActor.h:30
Definition BlockPos.h:21
Definition BlockSource.h:72
Definition Block.h:69
Definition BodyControl.h:13
Definition ChalkboardBlockActor.h:26
Definition ChunkPos.h:11
Definition ChunkSource.h:37
Definition ChunkViewSource.h:22
Definition ComplexInventoryTransaction.h:21
Definition CompoundTag.h:23
Definition ConnectionRequest.h:20
Definition ContainerManagerModel.h:34
Definition Container.h:34
Definition CreativeItemRegistry.h:23
Definition DataLoadHelper.h:20
Definition IEditorPlayer.h:16
Definition EnderChestContainer.h:15
Definition EntityContext.h:17
Definition FrameUpdateContextBase.h:5
Definition GameMode.h:22
Definition GetCollisionShapeInterface.h:13
Definition HashedString.h:5
Definition HudContainerManagerModel.h:19
Definition IConstBlockSource.h:23
Definition IContainerManager.h:16
Definition IContainerRegistryAccess.h:14
Definition IContainerRegistryTracker.h:15
Definition IDynamicContainerSerialization.h:12
Definition ILevel.h:218
Definition IMinecraftEventing.h:138
Definition ISparseContainerSetListener.h:11
Definition InteractionResult.h:5
Definition InventoryTransaction.h:22
Definition Inventory.h:14
Definition ItemDescriptor.h:25
Definition ItemGroup.h:8
Definition ItemStackBase.h:52
Definition ItemStackNetManagerBase.h:28
Definition ItemStack.h:35
Definition Item.h:71
Definition LayeredAbilities.h:21
Definition LegacyTelemetryEventPacket.h:19
Definition NetworkChunkPublisher.h:27
Definition NetworkIdentifier.h:10
Definition PacketSender.h:17
Definition Packet.h:30
Definition PersonaPiece.h:20
Definition PlayerEventCoordinator.h:27
Definition PlayerInventory.h:19
Definition PlayerListener.h:5
Definition PlayerRespawnRandomizer.h:11
LLNDAPI std::string getIPAndPort() const
Get the player's IP and port.
LLNDAPI std::string getLocaleCode() const
Get the name of the player's langtext.
LLAPI void sendMessage(std::string_view msg) const
Send a message to player.
LLAPI bool addAndRefresh(class ItemStack &item)
Give player item and refresh.
LLNDAPI mce::UUID const & getUuid() const
Get the player's uuid.
LLNDAPI bool isOperator() const
Determine if a player is an administrator of the server.
LLNDAPI std::string getRealName() const
Get the player's real in-game nickname.
LLAPI void disconnect(std::string_view reason) const
Disconnect player's client.
Definition ResolvedTextObject.h:10
Definition SerializedSkinRef.h:31
Definition ShieldItem.h:31
Definition StackRefResult.h:7
Definition SubChunkPos.h:5
Definition TextObjectRoot.h:17
Definition UserEntityIdentifierComponent.h:17
Definition Vec2.h:5
Definition Vec3.h:10
Definition Color.h:13
Definition UUID.h:7
Definition optional_ref.h:10
STL namespace.
Definition AABBShapeComponent.h:9
Definition ActorRotationComponent.h:8
Definition ActorUniqueID.h:10
Definition BiomeIdType.h:8
Definition FurnaceOptions.h:5
Definition INpcDialogueData.h:12
Definition InventoryOptions.h:10
Definition PlayerAuthenticationInfo.h:9
Definition PlayerComponent.h:5
Definition PlayerDestroyProgressCacheComponent.h:8
Definition PlayerMovementSettings.h:14
Definition PlayerPartyInfo.h:5
Definition Player.h:167
Definition Player.h:185
Definition Player.h:203
Definition Player.h:221
Definition StateVectorComponent.h:8
Definition Tick.h:5
Definition VariantParameterList.h:14