3#if PROTOCOL_VERSION < 773
12#if PROTOCOL_VERSION < 773
13 class PlayerEntity :
public LivingEntity
20 std::string_view(
"data_player_absorption_id"),
21 std::string_view(
"data_score_id"),
22#if PROTOCOL_VERSION < 773
23 std::string_view(
"data_player_mode_customisation"),
24 std::string_view(
"data_player_main_hand"),
25 std::string_view(
"data_shoulder_left"),
26 std::string_view(
"data_shoulder_right"),
28 std::string_view(
"data_shoulder_parrot_left"),
29 std::string_view(
"data_shoulder_parrot_right"),
34#if PROTOCOL_VERSION < 773
46 virtual std::string
GetName()
const override;
49#if PROTOCOL_VERSION > 404
69#if PROTOCOL_VERSION < 773
81#if PROTOCOL_VERSION < 773
97#if PROTOCOL_VERSION > 765
99#if PROTOCOL_VERSION < 775
104#if PROTOCOL_VERSION > 766
110#if PROTOCOL_VERSION > 770
118#if PROTOCOL_VERSION > 404
122#if PROTOCOL_VERSION > 766
static constexpr int metadata_count
char GetDataPlayerModeCustomisation() const
static constexpr int hierarchy_metadata_count
void SetDataPlayerModeCustomisation(const char data_player_mode_customisation)
int GetDataPlayerMainHand() const
void SetDataPlayerMainHand(const int data_player_main_hand)
AABB GetColliderImpl() const
static constexpr int hierarchy_metadata_count
static constexpr int metadata_count
double GetAttributeEntityInteractionRangeValue() const
double GetAttributePlayerBlockBreakSpeedValue() const
double GetAttributeAttackSpeedValue() const
std::optional< int > GetDataShoulderParrotRight() const
int GetDataScoreId() const
void SetDataPlayerAbsorptionId(const float data_player_absorption_id)
virtual double GetWidthImpl() const override
static constexpr std::array metadata_names
double GetAttributePlayerSweepingDamageRatioValue() const
static constexpr int hierarchy_metadata_count
void SetDataShoulderParrotLeft(const std::optional< int > &data_shoulder_parrot_left)
virtual double GetHeightImpl() const override
float GetDataPlayerAbsorptionId() const
void SetDataShoulderParrotRight(const std::optional< int > &data_shoulder_parrot_right)
virtual std::string GetName() const override
Get the name of this entity TYPE as a string. For player name see NetworkManager::GetMyName()
virtual EntityType GetType() const override
double GetAttributeLuckValue() const
double GetAttributePlayerSneakingSpeedValueImpl() const
std::optional< int > GetDataShoulderParrotLeft() const
double GetAttributePlayerBlockInteractionRangeValue() const
virtual ProtocolCraft::Json::Value Serialize() const override
virtual bool IsRemotePlayer() const override
static constexpr int metadata_count
AABB GetColliderImpl() const
static EntityType GetClassType()
void SetDataScoreId(const int data_score_id)
double GetAttributePlayerSubmergedMiningSpeedValue() const
static std::string GetClassName()
double GetEyeHeight() const
virtual double GetEyeHeightImpl() const
double GetAttributePlayerMiningEfficiencyValue() const
double GetAttributePlayerSneakingSpeedValue() const
double GetAttributeAttackDamageValue() const
double GetAttributeWaypointReceiveRangeValue() const
Main class, basically a JsonVariant with extra utility functions it doesn't inherit JsonVariant direc...