11#if PROTOCOL_VERSION < 773
26#if PROTOCOL_VERSION > 765
28#if PROTOCOL_VERSION < 775
33#if PROTOCOL_VERSION > 766
39#if PROTOCOL_VERSION > 770
61#if PROTOCOL_VERSION > 404
123#if PROTOCOL_VERSION < 773
126 output[
"metadata"][
"data_shoulder_left"] = GetDataShoulderLeft().Serialize();
127 output[
"metadata"][
"data_shoulder_right"] = GetDataShoulderRight().Serialize();
130 output[
"metadata"][
"data_shoulder_parrot_left"] = data_shoulder_parrot_left.has_value() ?
ProtocolCraft::Json::Value(data_shoulder_parrot_left.value()) :
nullptr;
132 output[
"metadata"][
"data_shoulder_parrot_right"] = data_shoulder_parrot_right.has_value() ?
ProtocolCraft::Json::Value(data_shoulder_parrot_right.value()) :
nullptr;
138#if PROTOCOL_VERSION > 765
140#if PROTOCOL_VERSION < 775
145#if PROTOCOL_VERSION > 766
151#if PROTOCOL_VERSION > 770
169#if PROTOCOL_VERSION < 773
212#if PROTOCOL_VERSION < 773
268#if PROTOCOL_VERSION > 765
275#if PROTOCOL_VERSION < 775
290#if PROTOCOL_VERSION > 766
321#if PROTOCOL_VERSION > 770
332#if PROTOCOL_VERSION > 404
351#if PROTOCOL_VERSION > 404
360#if PROTOCOL_VERSION > 404
367#if PROTOCOL_VERSION > 404
370 const float half_width =
static_cast<float>(
GetWidth(pose)) / 2.0f;
371 const float half_height =
static_cast<float>(
GetHeight(pose)) / 2.0f;
char GetDataPlayerModeCustomisation() const
void SetDataPlayerModeCustomisation(const char data_player_mode_customisation)
int GetDataPlayerMainHand() const
void SetDataPlayerMainHand(const int data_player_main_hand)
@ PlayerSubmergedMiningSpeed
@ PlayerBlockInteractionRange
@ PlayerSweepingDamageRatio
void SetMetadata(const int index, const std::any &value)
std::shared_mutex entity_mutex
std::vector< std::any > metadata
Pose GetDataPoseImpl() const
Vector3< double > position
std::map< EntityAttribute::Type, EntityAttribute > attributes
virtual ProtocolCraft::Json::Value Serialize() const override
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
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...
#define BOTCRAFT_ENTITY_METADATA_INDEX(name)