Botcraft 26.3
Loading...
Searching...
No Matches
Botcraft::Entity Class Referenceabstract

#include <Entity.hpp>

Inheritance diagram for Botcraft::Entity:
Botcraft::AreaEffectCloudEntity Botcraft::BlockAttachedEntity Botcraft::DisplayEntity Botcraft::EndCrystalEntity Botcraft::EvokerFangsEntity Botcraft::ExperienceOrbEntity Botcraft::EyeOfEnderEntity Botcraft::FallingBlockEntity Botcraft::InteractionEntity Botcraft::ItemEntity Botcraft::LightningBoltEntity Botcraft::LivingEntity Botcraft::MarkerEntity Botcraft::OminousItemSpawnerEntity Botcraft::PrimedTntEntity Botcraft::ProjectileEntity Botcraft::UnknownEntity Botcraft::VehicleEntity

Public Member Functions

 Entity ()
 
virtual ~Entity ()
 
virtual std::string GetName () const =0
 
virtual EntityType GetType () const =0
 
AABB GetCollider () const
 
double GetWidth () const
 
double GetHeight () const
 
void LoadMetadataFromRawArray (const std::vector< unsigned char > &data)
 
char GetDataSharedFlagsId () const
 
bool GetDataSharedFlagsId (const EntitySharedFlagsId id) const
 
int GetDataAirSupplyId () const
 
std::optional< ProtocolCraft::Chat > GetDataCustomName () const
 
bool GetDataCustomNameVisible () const
 
bool GetDataSilent () const
 
bool GetDataNoGravity () const
 
Pose GetDataPose () const
 
int GetDataTicksFrozen () const
 
void SetDataSharedFlagsId (const char data_shared_flags_id)
 
void SetDataSharedFlagsId (const EntitySharedFlagsId id, const bool b)
 
void SetDataAirSupplyId (const int data_air_supply_id)
 
void SetDataCustomName (const std::optional< ProtocolCraft::Chat > &data_custom_name)
 
void SetDataCustomNameVisible (const bool data_custom_name_visible)
 
void SetDataSilent (const bool data_silent)
 
void SetDataNoGravity (const bool data_no_gravity)
 
void SetDataPose (const Pose data_pose)
 
void SetDataTicksFrozen (const int data_ticks_frozen)
 
int GetEntityID () const
 
ProtocolCraft::UUID GetUUID () const
 
Vector3< double > GetPosition () const
 
double GetX () const
 
double GetY () const
 
double GetZ () const
 
float GetYaw () const
 
float GetPitch () const
 
Vector3< double > GetSpeed () const
 
double GetSpeedX () const
 
double GetSpeedY () const
 
double GetSpeedZ () const
 
bool GetOnGround () const
 
std::map< EquipmentSlot, ProtocolCraft::Slot > GetEquipments () const
 
ProtocolCraft::Slot GetEquipment (const EquipmentSlot slot) const
 
std::vector< EntityEffect > GetEffects () const
 
std::vector< Renderer::Face > GetFaces (const bool reset_uptodate_status)
 
bool GetAreRenderedFacesUpToDate () const
 
void SetEntityID (const int entity_id_)
 
void SetUUID (const ProtocolCraft::UUID &uuid_)
 
virtual void SetPosition (const Vector3< double > &position_)
 
virtual void SetX (const double x_)
 
virtual void SetY (const double y_)
 
virtual void SetZ (const double z_)
 
virtual void SetYaw (const float yaw_)
 
virtual void SetPitch (const float pitch_)
 
void AddSpeed (const Vector3< double > &delta)
 
void SetSpeed (const Vector3< double > &speed_)
 
void SetSpeedX (const double speed_x_)
 
void SetSpeedY (const double speed_y_)
 
void SetSpeedZ (const double speed_z_)
 
void SetOnGround (const bool on_ground_)
 
void SetEquipment (const EquipmentSlot slot, const ProtocolCraft::Slot &item)
 
void SetEffects (const std::vector< EntityEffect > &effects_)
 
void AddEffect (const EntityEffect &effect)
 
void RemoveEffect (const EntityEffectType type)
 
void SetAreRenderedFacesUpToDate (const bool are_rendered_faces_up_to_date_)
 
virtual ProtocolCraft::Json::Value Serialize () const
 
virtual bool IsLocalPlayer () const
 
virtual bool IsRemotePlayer () const
 
virtual bool IsLivingEntity () const
 
virtual bool IsAbstractArrow () const
 
virtual bool IsAnimal () const
 
virtual bool IsAmbientCreature () const
 
virtual bool IsMonster () const
 
virtual bool IsDisplay () const
 
virtual bool IsVehicle () const
 
virtual bool IsTamableAnimal () const
 
virtual bool IsAbstractSchoolingFish () const
 
virtual bool IsWaterAnimal () const
 
virtual bool IsAbstractChestedHorse () const
 
virtual bool IsAbstractHurtingProjectile () const
 
virtual bool IsMob () const
 
virtual bool IsSpellcasterIllager () const
 
virtual bool IsProjectile () const
 
virtual bool IsAbstractHorse () const
 
virtual bool IsAbstractGolem () const
 
virtual bool IsHangingEntity () const
 
virtual bool IsFireball () const
 
virtual bool IsAbstractMinecart () const
 
virtual bool IsAbstractCow () const
 
virtual bool IsAbstractMinecartContainer () const
 
virtual bool IsShoulderRidingEntity () const
 
virtual bool IsAbstractPiglin () const
 
virtual bool IsAbstractIllager () const
 
virtual bool IsAbstractThrownPotion () const
 
virtual bool IsAbstractFish () const
 
virtual bool IsRaider () const
 
virtual bool IsAbstractSkeleton () const
 
virtual bool IsThrowableItemProjectile () const
 
virtual bool IsAbstractVillager () const
 
virtual bool IsAgeableMob () const
 
virtual bool IsPathfinderMob () const
 
virtual bool IsPatrollingMonster () const
 
virtual bool IsThrowableProjectile () const
 
virtual bool IsAbstractWindCharge () const
 
virtual bool IsBlockAttachedEntity () const
 
virtual bool IsAbstractBoat () const
 
virtual bool IsAbstractChestBoat () const
 
virtual bool IsAgeableWaterCreature () const
 
virtual bool IsBoat () const
 
virtual bool IsChestBoat () const
 
virtual bool IsChestRaft () const
 
virtual bool IsRaft () const
 
virtual bool IsAvatar () const
 
virtual bool IsAbstractNautilus () const
 
virtual bool IsAbstractCubeMob () const
 

Static Public Member Functions

static std::shared_ptr< Entity > CreateEntity (const EntityType type)
 

Protected Member Functions

template<typename T >
T GetMetadataImpl (const int index) const
 
template<typename T >
T GetMetadata (const int index) const
 
void SetMetadataImpl (const int index, const std::any &value)
 
void SetMetadata (const int index, const std::any &value)
 
virtual void OnMetadataChangedImpl (const int index)
 
virtual void InitializeFaces ()
 
void OnSizeUpdated ()
 
char GetDataSharedFlagsIdImpl () const
 
bool GetDataSharedFlagsIdImpl (const EntitySharedFlagsId id) const
 
void SetDataSharedFlagsIdImpl (const char data_shared_flags_id)
 
void SetDataSharedFlagsIdImpl (const EntitySharedFlagsId id, const bool b)
 
Pose GetDataPoseImpl () const
 
void SetDataPoseImpl (const Pose data_pose)
 
AABB GetColliderImpl () const
 
virtual double GetWidthImpl () const
 
virtual double GetHeightImpl () const
 

Static Protected Member Functions

template<size_t N>
static constexpr int FindMetadataIndex (const std::array< std::string_view, N > &names, const std::string_view name)
 

Protected Attributes

std::shared_mutex entity_mutex
 
int entity_id
 
ProtocolCraft::UUID uuid
 
Vector3< double > position
 
float yaw
 
float pitch
 
Vector3< double > speed
 
bool on_ground
 
std::map< EquipmentSlot, ProtocolCraft::Slot > equipments
 Items on this entity.
 
std::vector< EntityEffect > effects
 
std::vector< std::any > metadata
 
std::vector< FaceDescriptor > face_descriptors
 
std::vector< Renderer::Face > faces
 
bool are_rendered_faces_up_to_date
 

Static Protected Attributes

static constexpr int metadata_count = static_cast<int>(metadata_names.size())
 
static constexpr int hierarchy_metadata_count = 0
 

Static Private Attributes

static constexpr std::array metadata_names
 

Detailed Description

Definition at line 54 of file Entity.hpp.

Constructor & Destructor Documentation

◆ Entity()

◆ ~Entity()

Botcraft::Entity::~Entity ( )
virtual

Definition at line 331 of file Entity.cpp.

Member Function Documentation

◆ AddEffect()

void Botcraft::Entity::AddEffect ( const EntityEffect &  effect)

Definition at line 1200 of file Entity.cpp.

References effects, entity_mutex, and Botcraft::EntityEffect::type.

◆ AddSpeed()

void Botcraft::Entity::AddSpeed ( const Vector3< double > &  delta)

Definition at line 1152 of file Entity.cpp.

References entity_mutex, and speed.

◆ CreateEntity()

std::shared_ptr< Entity > Botcraft::Entity::CreateEntity ( const EntityType  type)
static

Definition at line 1571 of file Entity.cpp.

References Botcraft::AcaciaBoat, Botcraft::AcaciaChestBoat, Botcraft::Allay, Botcraft::AreaEffectCloud, Botcraft::Armadillo, Botcraft::ArmorStand, Botcraft::Arrow, Botcraft::Axolotl, Botcraft::Bat, Botcraft::Bee, Botcraft::BirchBoat, Botcraft::BirchChestBoat, Botcraft::Blaze, Botcraft::Bogged, Botcraft::Breeze, Botcraft::BreezeWindCharge, Botcraft::Camel, Botcraft::CamelHusk, Botcraft::Cat, Botcraft::CaveSpider, Botcraft::CherryBoat, Botcraft::CherryChestBoat, Botcraft::ChestRaft, Botcraft::Chicken, Botcraft::Cod, Botcraft::CopperGolem, Botcraft::Cow, Botcraft::Creaking, Botcraft::Creeper, Botcraft::Cushion, Botcraft::DarkOakBoat, Botcraft::DarkOakChestBoat, Botcraft::DisplayBlockDisplay, Botcraft::DisplayItemDisplay, Botcraft::DisplayTextDisplay, Botcraft::Dolphin, Botcraft::Donkey, Botcraft::DragonFireball, Botcraft::Drowned, Botcraft::ElderGuardian, Botcraft::EndCrystal, Botcraft::EnderDragon, Botcraft::EnderMan, Botcraft::Endermite, Botcraft::Evoker, Botcraft::EvokerFangs, Botcraft::ExperienceOrb, Botcraft::EyeOfEnder, Botcraft::FallingBlockEntity, Botcraft::FireworkRocketEntity, Botcraft::FishingHook, Botcraft::Fox, Botcraft::Frog, Botcraft::Ghast, Botcraft::Giant, Botcraft::GlowItemFrame, Botcraft::GlowSquid, Botcraft::Goat, Botcraft::Guardian, Botcraft::HappyGhast, Botcraft::Hoglin, Botcraft::Horse, Botcraft::Husk, Botcraft::Illusioner, Botcraft::Interaction, Botcraft::IronGolem, Botcraft::ItemEntity, Botcraft::ItemFrame, Botcraft::JungleBoat, Botcraft::JungleChestBoat, Botcraft::LargeFireball, Botcraft::LeashFenceKnotEntity, Botcraft::LightningBolt, Botcraft::Llama, Botcraft::LlamaSpit, LOG_WARNING, Botcraft::MagmaCube, Botcraft::MangroveBoat, Botcraft::MangroveChestBoat, Botcraft::Mannequin, Botcraft::Marker, Botcraft::Minecart, Botcraft::MinecartChest, Botcraft::MinecartCommandBlock, Botcraft::MinecartFurnace, Botcraft::MinecartHopper, Botcraft::MinecartSpawner, Botcraft::MinecartTNT, Botcraft::Mule, Botcraft::MushroomCow, Botcraft::Nautilus, Botcraft::None, Botcraft::OakBoat, Botcraft::OakChestBoat, Botcraft::Ocelot, Botcraft::OminousItemSpawner, Botcraft::Painting, Botcraft::PaleOakBoat, Botcraft::PaleOakChestBoat, Botcraft::Panda, Botcraft::Parched, Botcraft::Parrot, Botcraft::Phantom, Botcraft::Pig, Botcraft::Piglin, Botcraft::PiglinBrute, Botcraft::Pillager, Botcraft::Player, Botcraft::PolarBear, Botcraft::PoplarBoat, Botcraft::PoplarChestBoat, Botcraft::PrimedTnt, Botcraft::Pufferfish, Botcraft::Rabbit, Botcraft::Raft, Botcraft::Ravager, Botcraft::Salmon, Botcraft::Sheep, Botcraft::Shulker, Botcraft::ShulkerBullet, Botcraft::Silverfish, Botcraft::Skeleton, Botcraft::SkeletonHorse, Botcraft::Slime, Botcraft::SmallFireball, Botcraft::Sniffer, Botcraft::Snowball, Botcraft::SnowGolem, Botcraft::SpectralArrow, Botcraft::Spider, Botcraft::SpruceBoat, Botcraft::SpruceChestBoat, Botcraft::Squid, Botcraft::Stray, Botcraft::Strider, Botcraft::SulfurCube, Botcraft::Tadpole, Botcraft::ThrownEgg, Botcraft::ThrownEnderpearl, Botcraft::ThrownExperienceBottle, Botcraft::ThrownLingeringPotion, Botcraft::ThrownSplashPotion, Botcraft::ThrownTrident, Botcraft::TraderLlama, Botcraft::TropicalFish, Botcraft::Turtle, Botcraft::Vex, Botcraft::Villager, Botcraft::Vindicator, Botcraft::WanderingTrader, Botcraft::Warden, Botcraft::WindCharge, Botcraft::Witch, Botcraft::WitherBoss, Botcraft::WitherSkeleton, Botcraft::WitherSkull, Botcraft::Wolf, Botcraft::Zoglin, Botcraft::Zombie, Botcraft::ZombieHorse, Botcraft::ZombieNautilus, Botcraft::ZombieVillager, and Botcraft::ZombifiedPiglin.

Referenced by Botcraft::EntityManager::Handle().

◆ FindMetadataIndex()

template<size_t N>
static constexpr int Botcraft::Entity::FindMetadataIndex ( const std::array< std::string_view, N > &  names,
const std::string_view  name 
)
inlinestaticconstexprprotected

Definition at line 89 of file Entity.hpp.

◆ GetAreRenderedFacesUpToDate()

bool Botcraft::Entity::GetAreRenderedFacesUpToDate ( ) const

Definition at line 1033 of file Entity.cpp.

References are_rendered_faces_up_to_date, and entity_mutex.

◆ GetCollider()

AABB Botcraft::Entity::GetCollider ( ) const

Definition at line 337 of file Entity.cpp.

References entity_mutex, and GetColliderImpl().

◆ GetColliderImpl()

AABB Botcraft::Entity::GetColliderImpl ( ) const
protected

◆ GetDataAirSupplyId()

int Botcraft::Entity::GetDataAirSupplyId ( ) const

Definition at line 808 of file Entity.cpp.

References BOTCRAFT_ENTITY_METADATA_INDEX.

Referenced by Serialize().

◆ GetDataCustomName()

std::optional< ProtocolCraft::Chat > Botcraft::Entity::GetDataCustomName ( ) const

Definition at line 814 of file Entity.cpp.

References BOTCRAFT_ENTITY_METADATA_INDEX.

Referenced by Serialize().

◆ GetDataCustomNameVisible()

bool Botcraft::Entity::GetDataCustomNameVisible ( ) const

Definition at line 825 of file Entity.cpp.

References BOTCRAFT_ENTITY_METADATA_INDEX.

Referenced by Serialize().

◆ GetDataNoGravity()

bool Botcraft::Entity::GetDataNoGravity ( ) const

Definition at line 835 of file Entity.cpp.

References BOTCRAFT_ENTITY_METADATA_INDEX.

Referenced by Serialize().

◆ GetDataPose()

Pose Botcraft::Entity::GetDataPose ( ) const

Definition at line 841 of file Entity.cpp.

References BOTCRAFT_ENTITY_METADATA_INDEX.

Referenced by Serialize().

◆ GetDataPoseImpl()

Pose Botcraft::Entity::GetDataPoseImpl ( ) const
protected

◆ GetDataSharedFlagsId() [1/2]

char Botcraft::Entity::GetDataSharedFlagsId ( ) const

Definition at line 796 of file Entity.cpp.

References entity_mutex, and GetDataSharedFlagsIdImpl().

Referenced by Serialize().

◆ GetDataSharedFlagsId() [2/2]

bool Botcraft::Entity::GetDataSharedFlagsId ( const EntitySharedFlagsId  id) const

Definition at line 802 of file Entity.cpp.

References entity_mutex, and GetDataSharedFlagsIdImpl().

◆ GetDataSharedFlagsIdImpl() [1/2]

char Botcraft::Entity::GetDataSharedFlagsIdImpl ( ) const
protected

◆ GetDataSharedFlagsIdImpl() [2/2]

bool Botcraft::Entity::GetDataSharedFlagsIdImpl ( const EntitySharedFlagsId  id) const
protected

Definition at line 2200 of file Entity.cpp.

References GetDataSharedFlagsIdImpl().

◆ GetDataSilent()

bool Botcraft::Entity::GetDataSilent ( ) const

Definition at line 830 of file Entity.cpp.

References BOTCRAFT_ENTITY_METADATA_INDEX.

Referenced by Serialize().

◆ GetDataTicksFrozen()

int Botcraft::Entity::GetDataTicksFrozen ( ) const

Definition at line 848 of file Entity.cpp.

References BOTCRAFT_ENTITY_METADATA_INDEX.

Referenced by Serialize().

◆ GetEffects()

std::vector< EntityEffect > Botcraft::Entity::GetEffects ( ) const

Definition at line 1004 of file Entity.cpp.

References effects, and entity_mutex.

◆ GetEntityID()

int Botcraft::Entity::GetEntityID ( ) const

Definition at line 914 of file Entity.cpp.

References entity_id, and entity_mutex.

◆ GetEquipment()

ProtocolCraft::Slot Botcraft::Entity::GetEquipment ( const EquipmentSlot  slot) const

Definition at line 998 of file Entity.cpp.

References entity_mutex, and equipments.

◆ GetEquipments()

std::map< EquipmentSlot, ProtocolCraft::Slot > Botcraft::Entity::GetEquipments ( ) const

Definition at line 992 of file Entity.cpp.

References entity_mutex, and equipments.

◆ GetFaces()

std::vector< Renderer::Face > Botcraft::Entity::GetFaces ( const bool  reset_uptodate_status)

◆ GetHeight()

double Botcraft::Entity::GetHeight ( ) const

Definition at line 349 of file Entity.cpp.

References entity_mutex, and GetHeightImpl().

◆ GetHeightImpl()

double Botcraft::Entity::GetHeightImpl ( ) const
protectedvirtual

Reimplemented in Botcraft::BatEntity, Botcraft::AllayEntity, Botcraft::ArmadilloEntity, Botcraft::AxolotlEntity, Botcraft::BeeEntity, Botcraft::CamelEntity, Botcraft::CamelHuskEntity, Botcraft::ChickenEntity, Botcraft::CowEntity, Botcraft::MushroomCowEntity, Botcraft::DolphinEntity, Botcraft::DonkeyEntity, Botcraft::HorseEntity, Botcraft::LlamaEntity, Botcraft::MuleEntity, Botcraft::SkeletonHorseEntity, Botcraft::TraderLlamaEntity, Botcraft::ZombieHorseEntity, Botcraft::CatEntity, Botcraft::OcelotEntity, Botcraft::CodEntity, Botcraft::PufferfishEntity, Botcraft::SalmonEntity, Botcraft::TropicalFishEntity, Botcraft::FoxEntity, Botcraft::FrogEntity, Botcraft::TadpoleEntity, Botcraft::GoatEntity, Botcraft::CopperGolemEntity, Botcraft::IronGolemEntity, Botcraft::SnowGolemEntity, Botcraft::HappyGhastEntity, Botcraft::NautilusEntity, Botcraft::ZombieNautilusEntity, Botcraft::PandaEntity, Botcraft::ParrotEntity, Botcraft::PigEntity, Botcraft::PolarBearEntity, Botcraft::RabbitEntity, Botcraft::SheepEntity, Botcraft::SnifferEntity, Botcraft::GlowSquidEntity, Botcraft::SquidEntity, Botcraft::TurtleEntity, Botcraft::WolfEntity, Botcraft::AreaEffectCloudEntity, Botcraft::EndCrystalEntity, Botcraft::EnderDragonEntity, Botcraft::WitherBossEntity, Botcraft::ArmorStandEntity, Botcraft::CushionEntity, Botcraft::GlowItemFrameEntity, Botcraft::ItemFrameEntity, Botcraft::LeashFenceKnotEntity, Botcraft::MannequinEntity, Botcraft::PaintingEntity, Botcraft::DisplayBlockDisplayEntity, Botcraft::DisplayItemDisplayEntity, Botcraft::DisplayTextDisplayEntity, Botcraft::ExperienceOrbEntity, Botcraft::InteractionEntity, Botcraft::FallingBlockEntity, Botcraft::ItemEntity, Botcraft::PrimedTntEntity, Botcraft::LightningBoltEntity, Botcraft::MarkerEntity, Botcraft::BlazeEntity, Botcraft::BreezeEntity, Botcraft::CreakingEntity, Botcraft::CreeperEntity, Botcraft::MagmaCubeEntity, Botcraft::SlimeEntity, Botcraft::SulfurCubeEntity, Botcraft::ElderGuardianEntity, Botcraft::EnderManEntity, Botcraft::EndermiteEntity, Botcraft::GhastEntity, Botcraft::GiantEntity, Botcraft::GuardianEntity, Botcraft::HoglinEntity, Botcraft::EvokerEntity, Botcraft::IllusionerEntity, Botcraft::PillagerEntity, Botcraft::VindicatorEntity, Botcraft::PhantomEntity, Botcraft::PiglinBruteEntity, Botcraft::PiglinEntity, Botcraft::RavagerEntity, Botcraft::ShulkerEntity, Botcraft::SilverfishEntity, Botcraft::BoggedEntity, Botcraft::ParchedEntity, Botcraft::SkeletonEntity, Botcraft::StrayEntity, Botcraft::WitherSkeletonEntity, Botcraft::CaveSpiderEntity, Botcraft::SpiderEntity, Botcraft::StriderEntity, Botcraft::VexEntity, Botcraft::WardenEntity, Botcraft::WitchEntity, Botcraft::ZoglinEntity, Botcraft::DrownedEntity, Botcraft::HuskEntity, Botcraft::ZombieEntity, Botcraft::ZombieVillagerEntity, Botcraft::ZombifiedPiglinEntity, Botcraft::VillagerEntity, Botcraft::WanderingTraderEntity, Botcraft::OminousItemSpawnerEntity, Botcraft::PlayerEntity, Botcraft::ArrowEntity, Botcraft::SpectralArrowEntity, Botcraft::ThrownTridentEntity, Botcraft::EvokerFangsEntity, Botcraft::EyeOfEnderEntity, Botcraft::FireworkRocketEntity, Botcraft::FishingHookEntity, Botcraft::DragonFireballEntity, Botcraft::LargeFireballEntity, Botcraft::SmallFireballEntity, Botcraft::BreezeWindChargeEntity, Botcraft::WindChargeEntity, Botcraft::WitherSkullEntity, Botcraft::LlamaSpitEntity, Botcraft::ShulkerBulletEntity, Botcraft::SnowballEntity, Botcraft::ThrownEggEntity, Botcraft::ThrownEnderpearlEntity, Botcraft::ThrownExperienceBottleEntity, Botcraft::ThrownLingeringPotionEntity, Botcraft::ThrownSplashPotionEntity, Botcraft::UnknownEntity, Botcraft::BoatEntity, Botcraft::ChestBoatEntity, Botcraft::ChestRaftEntity, Botcraft::RaftEntity, Botcraft::MinecartChestEntity, Botcraft::MinecartCommandBlockEntity, Botcraft::MinecartEntity, Botcraft::MinecartFurnaceEntity, Botcraft::MinecartHopperEntity, Botcraft::MinecartSpawnerEntity, and Botcraft::MinecartTNTEntity.

Definition at line 2248 of file Entity.cpp.

Referenced by GetColliderImpl(), GetHeight(), InitializeFaces(), and OnSizeUpdated().

◆ GetMetadata()

template<typename T >
T Botcraft::Entity::GetMetadata ( const int  index) const
inlineprotected

Definition at line 108 of file Entity.hpp.

References entity_mutex.

◆ GetMetadataImpl()

template<typename T >
T Botcraft::Entity::GetMetadataImpl ( const int  index) const
inlineprotected

Definition at line 102 of file Entity.hpp.

References metadata.

◆ GetName()

virtual std::string Botcraft::Entity::GetName ( ) const
pure virtual

Implemented in Botcraft::BatEntity, Botcraft::AllayEntity, Botcraft::ArmadilloEntity, Botcraft::AxolotlEntity, Botcraft::BeeEntity, Botcraft::CamelEntity, Botcraft::CamelHuskEntity, Botcraft::ChickenEntity, Botcraft::CowEntity, Botcraft::MushroomCowEntity, Botcraft::DolphinEntity, Botcraft::DonkeyEntity, Botcraft::HorseEntity, Botcraft::LlamaEntity, Botcraft::MuleEntity, Botcraft::SkeletonHorseEntity, Botcraft::TraderLlamaEntity, Botcraft::ZombieHorseEntity, Botcraft::CatEntity, Botcraft::OcelotEntity, Botcraft::CodEntity, Botcraft::PufferfishEntity, Botcraft::SalmonEntity, Botcraft::TropicalFishEntity, Botcraft::FoxEntity, Botcraft::FrogEntity, Botcraft::TadpoleEntity, Botcraft::GoatEntity, Botcraft::CopperGolemEntity, Botcraft::IronGolemEntity, Botcraft::SnowGolemEntity, Botcraft::HappyGhastEntity, Botcraft::NautilusEntity, Botcraft::ZombieNautilusEntity, Botcraft::PandaEntity, Botcraft::ParrotEntity, Botcraft::PigEntity, Botcraft::PolarBearEntity, Botcraft::RabbitEntity, Botcraft::SheepEntity, Botcraft::SnifferEntity, Botcraft::GlowSquidEntity, Botcraft::SquidEntity, Botcraft::TurtleEntity, Botcraft::WolfEntity, Botcraft::AreaEffectCloudEntity, Botcraft::EndCrystalEntity, Botcraft::EnderDragonEntity, Botcraft::WitherBossEntity, Botcraft::ArmorStandEntity, Botcraft::CushionEntity, Botcraft::GlowItemFrameEntity, Botcraft::ItemFrameEntity, Botcraft::LeashFenceKnotEntity, Botcraft::MannequinEntity, Botcraft::PaintingEntity, Botcraft::DisplayBlockDisplayEntity, Botcraft::DisplayItemDisplayEntity, Botcraft::DisplayTextDisplayEntity, Botcraft::ExperienceOrbEntity, Botcraft::InteractionEntity, Botcraft::FallingBlockEntity, Botcraft::ItemEntity, Botcraft::PrimedTntEntity, Botcraft::LightningBoltEntity, Botcraft::MarkerEntity, Botcraft::BlazeEntity, Botcraft::BreezeEntity, Botcraft::CreakingEntity, Botcraft::CreeperEntity, Botcraft::MagmaCubeEntity, Botcraft::SlimeEntity, Botcraft::SulfurCubeEntity, Botcraft::ElderGuardianEntity, Botcraft::EnderManEntity, Botcraft::EndermiteEntity, Botcraft::GhastEntity, Botcraft::GiantEntity, Botcraft::GuardianEntity, Botcraft::HoglinEntity, Botcraft::EvokerEntity, Botcraft::IllusionerEntity, Botcraft::PillagerEntity, Botcraft::VindicatorEntity, Botcraft::PhantomEntity, Botcraft::PiglinBruteEntity, Botcraft::PiglinEntity, Botcraft::RavagerEntity, Botcraft::ShulkerEntity, Botcraft::SilverfishEntity, Botcraft::BoggedEntity, Botcraft::ParchedEntity, Botcraft::SkeletonEntity, Botcraft::StrayEntity, Botcraft::WitherSkeletonEntity, Botcraft::CaveSpiderEntity, Botcraft::SpiderEntity, Botcraft::StriderEntity, Botcraft::VexEntity, Botcraft::WardenEntity, Botcraft::WitchEntity, Botcraft::ZoglinEntity, Botcraft::DrownedEntity, Botcraft::HuskEntity, Botcraft::ZombieEntity, Botcraft::ZombieVillagerEntity, Botcraft::ZombifiedPiglinEntity, Botcraft::VillagerEntity, Botcraft::WanderingTraderEntity, Botcraft::OminousItemSpawnerEntity, Botcraft::PlayerEntity, Botcraft::ArrowEntity, Botcraft::SpectralArrowEntity, Botcraft::ThrownTridentEntity, Botcraft::EvokerFangsEntity, Botcraft::EyeOfEnderEntity, Botcraft::FireworkRocketEntity, Botcraft::FishingHookEntity, Botcraft::DragonFireballEntity, Botcraft::LargeFireballEntity, Botcraft::SmallFireballEntity, Botcraft::BreezeWindChargeEntity, Botcraft::WindChargeEntity, Botcraft::WitherSkullEntity, Botcraft::LlamaSpitEntity, Botcraft::ShulkerBulletEntity, Botcraft::SnowballEntity, Botcraft::ThrownEggEntity, Botcraft::ThrownEnderpearlEntity, Botcraft::ThrownExperienceBottleEntity, Botcraft::ThrownLingeringPotionEntity, Botcraft::ThrownSplashPotionEntity, Botcraft::UnknownEntity, Botcraft::BoatEntity, Botcraft::ChestBoatEntity, Botcraft::ChestRaftEntity, Botcraft::RaftEntity, Botcraft::MinecartChestEntity, Botcraft::MinecartCommandBlockEntity, Botcraft::MinecartEntity, Botcraft::MinecartFurnaceEntity, Botcraft::MinecartHopperEntity, Botcraft::MinecartSpawnerEntity, and Botcraft::MinecartTNTEntity.

Referenced by Botcraft::LivingEntity::AddAttribute(), Botcraft::LivingEntity::SetAttributeBaseValue(), Botcraft::LivingEntity::SetAttributeModifierImpl(), and SetMetadataImpl().

◆ GetOnGround()

bool Botcraft::Entity::GetOnGround ( ) const

Definition at line 986 of file Entity.cpp.

References entity_mutex, and on_ground.

◆ GetPitch()

float Botcraft::Entity::GetPitch ( ) const

Definition at line 956 of file Entity.cpp.

References entity_mutex, and pitch.

◆ GetPosition()

Vector3< double > Botcraft::Entity::GetPosition ( ) const

Definition at line 926 of file Entity.cpp.

References entity_mutex, and position.

◆ GetSpeed()

Vector3< double > Botcraft::Entity::GetSpeed ( ) const

Definition at line 962 of file Entity.cpp.

References entity_mutex, and speed.

◆ GetSpeedX()

double Botcraft::Entity::GetSpeedX ( ) const

Definition at line 968 of file Entity.cpp.

References entity_mutex, speed, and Botcraft::Vector3< T >::x.

◆ GetSpeedY()

double Botcraft::Entity::GetSpeedY ( ) const

Definition at line 974 of file Entity.cpp.

References entity_mutex, speed, and Botcraft::Vector3< T >::y.

◆ GetSpeedZ()

double Botcraft::Entity::GetSpeedZ ( ) const

Definition at line 980 of file Entity.cpp.

References entity_mutex, speed, and Botcraft::Vector3< T >::z.

◆ GetType()

virtual EntityType Botcraft::Entity::GetType ( ) const
pure virtual

Implemented in Botcraft::BatEntity, Botcraft::AllayEntity, Botcraft::ArmadilloEntity, Botcraft::AxolotlEntity, Botcraft::BeeEntity, Botcraft::CamelEntity, Botcraft::CamelHuskEntity, Botcraft::ChickenEntity, Botcraft::CowEntity, Botcraft::MushroomCowEntity, Botcraft::DolphinEntity, Botcraft::DonkeyEntity, Botcraft::HorseEntity, Botcraft::LlamaEntity, Botcraft::MuleEntity, Botcraft::SkeletonHorseEntity, Botcraft::TraderLlamaEntity, Botcraft::ZombieHorseEntity, Botcraft::CatEntity, Botcraft::OcelotEntity, Botcraft::CodEntity, Botcraft::PufferfishEntity, Botcraft::SalmonEntity, Botcraft::TropicalFishEntity, Botcraft::FoxEntity, Botcraft::FrogEntity, Botcraft::TadpoleEntity, Botcraft::GoatEntity, Botcraft::CopperGolemEntity, Botcraft::IronGolemEntity, Botcraft::SnowGolemEntity, Botcraft::HappyGhastEntity, Botcraft::NautilusEntity, Botcraft::ZombieNautilusEntity, Botcraft::PandaEntity, Botcraft::ParrotEntity, Botcraft::PigEntity, Botcraft::PolarBearEntity, Botcraft::RabbitEntity, Botcraft::SheepEntity, Botcraft::SnifferEntity, Botcraft::GlowSquidEntity, Botcraft::SquidEntity, Botcraft::TurtleEntity, Botcraft::WolfEntity, Botcraft::AreaEffectCloudEntity, Botcraft::EndCrystalEntity, Botcraft::EnderDragonEntity, Botcraft::WitherBossEntity, Botcraft::ArmorStandEntity, Botcraft::CushionEntity, Botcraft::GlowItemFrameEntity, Botcraft::ItemFrameEntity, Botcraft::LeashFenceKnotEntity, Botcraft::MannequinEntity, Botcraft::PaintingEntity, Botcraft::DisplayBlockDisplayEntity, Botcraft::DisplayItemDisplayEntity, Botcraft::DisplayTextDisplayEntity, Botcraft::ExperienceOrbEntity, Botcraft::InteractionEntity, Botcraft::FallingBlockEntity, Botcraft::ItemEntity, Botcraft::PrimedTntEntity, Botcraft::LightningBoltEntity, Botcraft::MarkerEntity, Botcraft::BlazeEntity, Botcraft::BreezeEntity, Botcraft::CreakingEntity, Botcraft::CreeperEntity, Botcraft::MagmaCubeEntity, Botcraft::SlimeEntity, Botcraft::SulfurCubeEntity, Botcraft::ElderGuardianEntity, Botcraft::EnderManEntity, Botcraft::EndermiteEntity, Botcraft::GhastEntity, Botcraft::GiantEntity, Botcraft::GuardianEntity, Botcraft::HoglinEntity, Botcraft::EvokerEntity, Botcraft::IllusionerEntity, Botcraft::PillagerEntity, Botcraft::VindicatorEntity, Botcraft::PhantomEntity, Botcraft::PiglinBruteEntity, Botcraft::PiglinEntity, Botcraft::RavagerEntity, Botcraft::ShulkerEntity, Botcraft::SilverfishEntity, Botcraft::BoggedEntity, Botcraft::ParchedEntity, Botcraft::SkeletonEntity, Botcraft::StrayEntity, Botcraft::WitherSkeletonEntity, Botcraft::CaveSpiderEntity, Botcraft::SpiderEntity, Botcraft::StriderEntity, Botcraft::VexEntity, Botcraft::WardenEntity, Botcraft::WitchEntity, Botcraft::ZoglinEntity, Botcraft::DrownedEntity, Botcraft::HuskEntity, Botcraft::ZombieEntity, Botcraft::ZombieVillagerEntity, Botcraft::ZombifiedPiglinEntity, Botcraft::VillagerEntity, Botcraft::WanderingTraderEntity, Botcraft::OminousItemSpawnerEntity, Botcraft::PlayerEntity, Botcraft::ArrowEntity, Botcraft::SpectralArrowEntity, Botcraft::ThrownTridentEntity, Botcraft::EvokerFangsEntity, Botcraft::EyeOfEnderEntity, Botcraft::FireworkRocketEntity, Botcraft::FishingHookEntity, Botcraft::DragonFireballEntity, Botcraft::LargeFireballEntity, Botcraft::SmallFireballEntity, Botcraft::BreezeWindChargeEntity, Botcraft::WindChargeEntity, Botcraft::WitherSkullEntity, Botcraft::LlamaSpitEntity, Botcraft::ShulkerBulletEntity, Botcraft::SnowballEntity, Botcraft::ThrownEggEntity, Botcraft::ThrownEnderpearlEntity, Botcraft::ThrownExperienceBottleEntity, Botcraft::ThrownLingeringPotionEntity, Botcraft::ThrownSplashPotionEntity, Botcraft::UnknownEntity, Botcraft::BoatEntity, Botcraft::ChestBoatEntity, Botcraft::ChestRaftEntity, Botcraft::RaftEntity, Botcraft::MinecartChestEntity, Botcraft::MinecartCommandBlockEntity, Botcraft::MinecartEntity, Botcraft::MinecartFurnaceEntity, Botcraft::MinecartHopperEntity, Botcraft::MinecartSpawnerEntity, and Botcraft::MinecartTNTEntity.

◆ GetUUID()

ProtocolCraft::UUID Botcraft::Entity::GetUUID ( ) const

Definition at line 920 of file Entity.cpp.

References entity_mutex, and uuid.

◆ GetWidth()

double Botcraft::Entity::GetWidth ( ) const

Definition at line 343 of file Entity.cpp.

References entity_mutex, and GetWidthImpl().

◆ GetWidthImpl()

double Botcraft::Entity::GetWidthImpl ( ) const
protectedvirtual

Reimplemented in Botcraft::BatEntity, Botcraft::AllayEntity, Botcraft::ArmadilloEntity, Botcraft::AxolotlEntity, Botcraft::BeeEntity, Botcraft::CamelEntity, Botcraft::CamelHuskEntity, Botcraft::ChickenEntity, Botcraft::CowEntity, Botcraft::MushroomCowEntity, Botcraft::DolphinEntity, Botcraft::DonkeyEntity, Botcraft::HorseEntity, Botcraft::LlamaEntity, Botcraft::MuleEntity, Botcraft::SkeletonHorseEntity, Botcraft::TraderLlamaEntity, Botcraft::ZombieHorseEntity, Botcraft::CatEntity, Botcraft::OcelotEntity, Botcraft::CodEntity, Botcraft::PufferfishEntity, Botcraft::SalmonEntity, Botcraft::TropicalFishEntity, Botcraft::FoxEntity, Botcraft::FrogEntity, Botcraft::TadpoleEntity, Botcraft::GoatEntity, Botcraft::CopperGolemEntity, Botcraft::IronGolemEntity, Botcraft::SnowGolemEntity, Botcraft::HappyGhastEntity, Botcraft::NautilusEntity, Botcraft::ZombieNautilusEntity, Botcraft::PandaEntity, Botcraft::ParrotEntity, Botcraft::PigEntity, Botcraft::PolarBearEntity, Botcraft::RabbitEntity, Botcraft::SheepEntity, Botcraft::SnifferEntity, Botcraft::GlowSquidEntity, Botcraft::SquidEntity, Botcraft::TurtleEntity, Botcraft::WolfEntity, Botcraft::AreaEffectCloudEntity, Botcraft::EndCrystalEntity, Botcraft::EnderDragonEntity, Botcraft::WitherBossEntity, Botcraft::ArmorStandEntity, Botcraft::CushionEntity, Botcraft::GlowItemFrameEntity, Botcraft::ItemFrameEntity, Botcraft::LeashFenceKnotEntity, Botcraft::MannequinEntity, Botcraft::PaintingEntity, Botcraft::DisplayBlockDisplayEntity, Botcraft::DisplayItemDisplayEntity, Botcraft::DisplayTextDisplayEntity, Botcraft::ExperienceOrbEntity, Botcraft::InteractionEntity, Botcraft::FallingBlockEntity, Botcraft::ItemEntity, Botcraft::PrimedTntEntity, Botcraft::LightningBoltEntity, Botcraft::MarkerEntity, Botcraft::BlazeEntity, Botcraft::BreezeEntity, Botcraft::CreakingEntity, Botcraft::CreeperEntity, Botcraft::MagmaCubeEntity, Botcraft::SlimeEntity, Botcraft::SulfurCubeEntity, Botcraft::ElderGuardianEntity, Botcraft::EnderManEntity, Botcraft::EndermiteEntity, Botcraft::GhastEntity, Botcraft::GiantEntity, Botcraft::GuardianEntity, Botcraft::HoglinEntity, Botcraft::EvokerEntity, Botcraft::IllusionerEntity, Botcraft::PillagerEntity, Botcraft::VindicatorEntity, Botcraft::PhantomEntity, Botcraft::PiglinBruteEntity, Botcraft::PiglinEntity, Botcraft::RavagerEntity, Botcraft::ShulkerEntity, Botcraft::SilverfishEntity, Botcraft::BoggedEntity, Botcraft::ParchedEntity, Botcraft::SkeletonEntity, Botcraft::StrayEntity, Botcraft::WitherSkeletonEntity, Botcraft::CaveSpiderEntity, Botcraft::SpiderEntity, Botcraft::StriderEntity, Botcraft::VexEntity, Botcraft::WardenEntity, Botcraft::WitchEntity, Botcraft::ZoglinEntity, Botcraft::DrownedEntity, Botcraft::HuskEntity, Botcraft::ZombieEntity, Botcraft::ZombieVillagerEntity, Botcraft::ZombifiedPiglinEntity, Botcraft::VillagerEntity, Botcraft::WanderingTraderEntity, Botcraft::OminousItemSpawnerEntity, Botcraft::PlayerEntity, Botcraft::ArrowEntity, Botcraft::SpectralArrowEntity, Botcraft::ThrownTridentEntity, Botcraft::EvokerFangsEntity, Botcraft::EyeOfEnderEntity, Botcraft::FireworkRocketEntity, Botcraft::FishingHookEntity, Botcraft::DragonFireballEntity, Botcraft::LargeFireballEntity, Botcraft::SmallFireballEntity, Botcraft::BreezeWindChargeEntity, Botcraft::WindChargeEntity, Botcraft::WitherSkullEntity, Botcraft::LlamaSpitEntity, Botcraft::ShulkerBulletEntity, Botcraft::SnowballEntity, Botcraft::ThrownEggEntity, Botcraft::ThrownEnderpearlEntity, Botcraft::ThrownExperienceBottleEntity, Botcraft::ThrownLingeringPotionEntity, Botcraft::ThrownSplashPotionEntity, Botcraft::UnknownEntity, Botcraft::BoatEntity, Botcraft::ChestBoatEntity, Botcraft::ChestRaftEntity, Botcraft::RaftEntity, Botcraft::MinecartChestEntity, Botcraft::MinecartCommandBlockEntity, Botcraft::MinecartEntity, Botcraft::MinecartFurnaceEntity, Botcraft::MinecartHopperEntity, Botcraft::MinecartSpawnerEntity, and Botcraft::MinecartTNTEntity.

Definition at line 2243 of file Entity.cpp.

Referenced by GetColliderImpl(), GetWidth(), InitializeFaces(), and OnSizeUpdated().

◆ GetX()

double Botcraft::Entity::GetX ( ) const

Definition at line 932 of file Entity.cpp.

References entity_mutex, position, and Botcraft::Vector3< T >::x.

◆ GetY()

double Botcraft::Entity::GetY ( ) const

Definition at line 938 of file Entity.cpp.

References entity_mutex, position, and Botcraft::Vector3< T >::y.

◆ GetYaw()

float Botcraft::Entity::GetYaw ( ) const

Definition at line 950 of file Entity.cpp.

References entity_mutex, and yaw.

◆ GetZ()

double Botcraft::Entity::GetZ ( ) const

Definition at line 944 of file Entity.cpp.

References entity_mutex, position, and Botcraft::Vector3< T >::z.

◆ InitializeFaces()

◆ IsAbstractArrow()

bool Botcraft::Entity::IsAbstractArrow ( ) const
virtual

Reimplemented in Botcraft::AbstractArrowEntity.

Definition at line 1303 of file Entity.cpp.

◆ IsAbstractBoat()

bool Botcraft::Entity::IsAbstractBoat ( ) const
virtual

Reimplemented in Botcraft::AbstractBoatEntity.

Definition at line 1513 of file Entity.cpp.

◆ IsAbstractChestBoat()

bool Botcraft::Entity::IsAbstractChestBoat ( ) const
virtual

Reimplemented in Botcraft::AbstractChestBoatEntity.

Definition at line 1518 of file Entity.cpp.

◆ IsAbstractChestedHorse()

bool Botcraft::Entity::IsAbstractChestedHorse ( ) const
virtual

Reimplemented in Botcraft::AbstractChestedHorseEntity.

Definition at line 1352 of file Entity.cpp.

◆ IsAbstractCow()

bool Botcraft::Entity::IsAbstractCow ( ) const
virtual

Reimplemented in Botcraft::AbstractCowEntity.

Definition at line 1412 of file Entity.cpp.

◆ IsAbstractCubeMob()

bool Botcraft::Entity::IsAbstractCubeMob ( ) const
virtual

Reimplemented in Botcraft::AbstractCubeMobEntity.

Definition at line 1564 of file Entity.cpp.

◆ IsAbstractFish()

bool Botcraft::Entity::IsAbstractFish ( ) const
virtual

Reimplemented in Botcraft::AbstractFishEntity.

Definition at line 1447 of file Entity.cpp.

◆ IsAbstractGolem()

bool Botcraft::Entity::IsAbstractGolem ( ) const
virtual

Reimplemented in Botcraft::AbstractGolemEntity.

Definition at line 1391 of file Entity.cpp.

◆ IsAbstractHorse()

bool Botcraft::Entity::IsAbstractHorse ( ) const
virtual

Reimplemented in Botcraft::AbstractHorseEntity.

Definition at line 1386 of file Entity.cpp.

◆ IsAbstractHurtingProjectile()

bool Botcraft::Entity::IsAbstractHurtingProjectile ( ) const
virtual

Reimplemented in Botcraft::AbstractHurtingProjectileEntity.

Definition at line 1357 of file Entity.cpp.

◆ IsAbstractIllager()

bool Botcraft::Entity::IsAbstractIllager ( ) const
virtual

Reimplemented in Botcraft::AbstractIllagerEntity.

Definition at line 1435 of file Entity.cpp.

◆ IsAbstractMinecart()

bool Botcraft::Entity::IsAbstractMinecart ( ) const
virtual

Reimplemented in Botcraft::AbstractMinecartEntity.

Definition at line 1406 of file Entity.cpp.

◆ IsAbstractMinecartContainer()

bool Botcraft::Entity::IsAbstractMinecartContainer ( ) const
virtual

Reimplemented in Botcraft::AbstractMinecartContainerEntity.

Definition at line 1418 of file Entity.cpp.

◆ IsAbstractNautilus()

bool Botcraft::Entity::IsAbstractNautilus ( ) const
virtual

Reimplemented in Botcraft::AbstractNautilusEntity.

Definition at line 1557 of file Entity.cpp.

◆ IsAbstractPiglin()

bool Botcraft::Entity::IsAbstractPiglin ( ) const
virtual

Reimplemented in Botcraft::AbstractPiglinEntity.

Definition at line 1429 of file Entity.cpp.

◆ IsAbstractSchoolingFish()

bool Botcraft::Entity::IsAbstractSchoolingFish ( ) const
virtual

Reimplemented in Botcraft::AbstractSchoolingFishEntity.

Definition at line 1342 of file Entity.cpp.

◆ IsAbstractSkeleton()

bool Botcraft::Entity::IsAbstractSkeleton ( ) const
virtual

Reimplemented in Botcraft::AbstractSkeletonEntity.

Definition at line 1459 of file Entity.cpp.

◆ IsAbstractThrownPotion()

bool Botcraft::Entity::IsAbstractThrownPotion ( ) const
virtual

Reimplemented in Botcraft::AbstractThrownPotionEntity.

Definition at line 1441 of file Entity.cpp.

◆ IsAbstractVillager()

bool Botcraft::Entity::IsAbstractVillager ( ) const
virtual

Reimplemented in Botcraft::AbstractVillagerEntity.

Definition at line 1470 of file Entity.cpp.

◆ IsAbstractWindCharge()

bool Botcraft::Entity::IsAbstractWindCharge ( ) const
virtual

Reimplemented in Botcraft::AbstractWindChargeEntity.

Definition at line 1499 of file Entity.cpp.

◆ IsAgeableMob()

bool Botcraft::Entity::IsAgeableMob ( ) const
virtual

Reimplemented in Botcraft::AgeableMobEntity.

Definition at line 1476 of file Entity.cpp.

◆ IsAgeableWaterCreature()

bool Botcraft::Entity::IsAgeableWaterCreature ( ) const
virtual

Reimplemented in Botcraft::AgeableWaterCreatureEntity.

Definition at line 1523 of file Entity.cpp.

◆ IsAmbientCreature()

bool Botcraft::Entity::IsAmbientCreature ( ) const
virtual

Reimplemented in Botcraft::AmbientCreatureEntity.

Definition at line 1313 of file Entity.cpp.

◆ IsAnimal()

bool Botcraft::Entity::IsAnimal ( ) const
virtual

Reimplemented in Botcraft::AnimalEntity.

Definition at line 1308 of file Entity.cpp.

◆ IsAvatar()

bool Botcraft::Entity::IsAvatar ( ) const
virtual

Reimplemented in Botcraft::AvatarEntity.

Definition at line 1550 of file Entity.cpp.

◆ IsBlockAttachedEntity()

bool Botcraft::Entity::IsBlockAttachedEntity ( ) const
virtual

Reimplemented in Botcraft::BlockAttachedEntity.

Definition at line 1506 of file Entity.cpp.

◆ IsBoat()

bool Botcraft::Entity::IsBoat ( ) const
virtual

Reimplemented in Botcraft::BoatEntity.

Definition at line 1528 of file Entity.cpp.

◆ IsChestBoat()

bool Botcraft::Entity::IsChestBoat ( ) const
virtual

Reimplemented in Botcraft::ChestBoatEntity.

Definition at line 1533 of file Entity.cpp.

◆ IsChestRaft()

bool Botcraft::Entity::IsChestRaft ( ) const
virtual

Reimplemented in Botcraft::ChestRaftEntity.

Definition at line 1538 of file Entity.cpp.

◆ IsDisplay()

bool Botcraft::Entity::IsDisplay ( ) const
virtual

Reimplemented in Botcraft::DisplayEntity.

Definition at line 1324 of file Entity.cpp.

◆ IsFireball()

bool Botcraft::Entity::IsFireball ( ) const
virtual

Reimplemented in Botcraft::FireballEntity.

Definition at line 1401 of file Entity.cpp.

◆ IsHangingEntity()

bool Botcraft::Entity::IsHangingEntity ( ) const
virtual

Reimplemented in Botcraft::HangingEntity.

Definition at line 1396 of file Entity.cpp.

◆ IsLivingEntity()

bool Botcraft::Entity::IsLivingEntity ( ) const
virtual

Reimplemented in Botcraft::LivingEntity.

Definition at line 1298 of file Entity.cpp.

◆ IsLocalPlayer()

bool Botcraft::Entity::IsLocalPlayer ( ) const
virtual

Reimplemented in Botcraft::LocalPlayer.

Definition at line 1288 of file Entity.cpp.

◆ IsMob()

bool Botcraft::Entity::IsMob ( ) const
virtual

Reimplemented in Botcraft::MobEntity.

Definition at line 1362 of file Entity.cpp.

◆ IsMonster()

bool Botcraft::Entity::IsMonster ( ) const
virtual

Reimplemented in Botcraft::MonsterEntity.

Definition at line 1318 of file Entity.cpp.

◆ IsPathfinderMob()

bool Botcraft::Entity::IsPathfinderMob ( ) const
virtual

Reimplemented in Botcraft::PathfinderMobEntity.

Definition at line 1481 of file Entity.cpp.

◆ IsPatrollingMonster()

bool Botcraft::Entity::IsPatrollingMonster ( ) const
virtual

Reimplemented in Botcraft::PatrollingMonsterEntity.

Definition at line 1487 of file Entity.cpp.

◆ IsProjectile()

bool Botcraft::Entity::IsProjectile ( ) const
virtual

Reimplemented in Botcraft::ProjectileEntity.

Definition at line 1373 of file Entity.cpp.

◆ IsRaft()

bool Botcraft::Entity::IsRaft ( ) const
virtual

Reimplemented in Botcraft::RaftEntity.

Definition at line 1543 of file Entity.cpp.

◆ IsRaider()

bool Botcraft::Entity::IsRaider ( ) const
virtual

Reimplemented in Botcraft::RaiderEntity.

Definition at line 1453 of file Entity.cpp.

◆ IsRemotePlayer()

bool Botcraft::Entity::IsRemotePlayer ( ) const
virtual

Reimplemented in Botcraft::PlayerEntity, and Botcraft::LocalPlayer.

Definition at line 1293 of file Entity.cpp.

◆ IsShoulderRidingEntity()

bool Botcraft::Entity::IsShoulderRidingEntity ( ) const
virtual

Reimplemented in Botcraft::ShoulderRidingEntity.

Definition at line 1423 of file Entity.cpp.

◆ IsSpellcasterIllager()

bool Botcraft::Entity::IsSpellcasterIllager ( ) const
virtual

Reimplemented in Botcraft::SpellcasterIllagerEntity.

Definition at line 1367 of file Entity.cpp.

◆ IsTamableAnimal()

bool Botcraft::Entity::IsTamableAnimal ( ) const
virtual

Reimplemented in Botcraft::TamableAnimalEntity.

Definition at line 1337 of file Entity.cpp.

◆ IsThrowableItemProjectile()

bool Botcraft::Entity::IsThrowableItemProjectile ( ) const
virtual

Reimplemented in Botcraft::ThrowableItemProjectileEntity.

Definition at line 1464 of file Entity.cpp.

◆ IsThrowableProjectile()

bool Botcraft::Entity::IsThrowableProjectile ( ) const
virtual

Reimplemented in Botcraft::ThrowableProjectileEntity.

Definition at line 1493 of file Entity.cpp.

◆ IsVehicle()

bool Botcraft::Entity::IsVehicle ( ) const
virtual

Reimplemented in Botcraft::VehicleEntity.

Definition at line 1331 of file Entity.cpp.

◆ IsWaterAnimal()

bool Botcraft::Entity::IsWaterAnimal ( ) const
virtual

Reimplemented in Botcraft::WaterAnimalEntity.

Definition at line 1347 of file Entity.cpp.

◆ LoadMetadataFromRawArray()

void Botcraft::Entity::LoadMetadataFromRawArray ( const std::vector< unsigned char > &  data)

Definition at line 383 of file Entity.cpp.

References LOG_ERROR, position, ProtocolCraft::NetworkType::Read(), and SetMetadata().

◆ OnMetadataChangedImpl()

◆ OnSizeUpdated()

◆ RemoveEffect()

void Botcraft::Entity::RemoveEffect ( const EntityEffectType  type)

Definition at line 1220 of file Entity.cpp.

References effects, and entity_mutex.

◆ Serialize()

ProtocolCraft::Json::Value Botcraft::Entity::Serialize ( ) const
virtual

Reimplemented in Botcraft::AgeableMobEntity, Botcraft::BatEntity, Botcraft::AllayEntity, Botcraft::AnimalEntity, Botcraft::ArmadilloEntity, Botcraft::AxolotlEntity, Botcraft::BeeEntity, Botcraft::CamelEntity, Botcraft::ChickenEntity, Botcraft::CowEntity, Botcraft::MushroomCowEntity, Botcraft::DolphinEntity, Botcraft::AbstractChestedHorseEntity, Botcraft::AbstractHorseEntity, Botcraft::HorseEntity, Botcraft::LlamaEntity, Botcraft::CatEntity, Botcraft::OcelotEntity, Botcraft::AbstractFishEntity, Botcraft::PufferfishEntity, Botcraft::SalmonEntity, Botcraft::TropicalFishEntity, Botcraft::FoxEntity, Botcraft::FrogEntity, Botcraft::TadpoleEntity, Botcraft::GoatEntity, Botcraft::CopperGolemEntity, Botcraft::IronGolemEntity, Botcraft::SnowGolemEntity, Botcraft::HappyGhastEntity, Botcraft::AbstractNautilusEntity, Botcraft::ZombieNautilusEntity, Botcraft::PandaEntity, Botcraft::ParrotEntity, Botcraft::PigEntity, Botcraft::PolarBearEntity, Botcraft::RabbitEntity, Botcraft::SheepEntity, Botcraft::SnifferEntity, Botcraft::GlowSquidEntity, Botcraft::TurtleEntity, Botcraft::WolfEntity, Botcraft::AreaEffectCloudEntity, Botcraft::AvatarEntity, Botcraft::EndCrystalEntity, Botcraft::EnderDragonEntity, Botcraft::WitherBossEntity, Botcraft::ArmorStandEntity, Botcraft::CushionEntity, Botcraft::HangingEntity, Botcraft::ItemFrameEntity, Botcraft::MannequinEntity, Botcraft::PaintingEntity, Botcraft::DisplayBlockDisplayEntity, Botcraft::DisplayEntity, Botcraft::DisplayItemDisplayEntity, Botcraft::DisplayTextDisplayEntity, Botcraft::ExperienceOrbEntity, Botcraft::InteractionEntity, Botcraft::FallingBlockEntity, Botcraft::ItemEntity, Botcraft::PrimedTntEntity, Botcraft::LivingEntity, Botcraft::MobEntity, Botcraft::BlazeEntity, Botcraft::CreakingEntity, Botcraft::CreeperEntity, Botcraft::AbstractCubeMobEntity, Botcraft::SulfurCubeEntity, Botcraft::EnderManEntity, Botcraft::GhastEntity, Botcraft::GuardianEntity, Botcraft::HoglinEntity, Botcraft::PillagerEntity, Botcraft::SpellcasterIllagerEntity, Botcraft::MonsterEntity, Botcraft::PhantomEntity, Botcraft::AbstractPiglinEntity, Botcraft::PiglinEntity, Botcraft::ShulkerEntity, Botcraft::BoggedEntity, Botcraft::SkeletonEntity, Botcraft::SpiderEntity, Botcraft::StriderEntity, Botcraft::VexEntity, Botcraft::WardenEntity, Botcraft::WitchEntity, Botcraft::ZoglinEntity, Botcraft::ZombieEntity, Botcraft::ZombieVillagerEntity, Botcraft::AbstractVillagerEntity, Botcraft::VillagerEntity, Botcraft::OminousItemSpawnerEntity, Botcraft::PlayerEntity, Botcraft::AbstractArrowEntity, Botcraft::ArrowEntity, Botcraft::ThrownTridentEntity, Botcraft::EyeOfEnderEntity, Botcraft::FireworkRocketEntity, Botcraft::FishingHookEntity, Botcraft::FireballEntity, Botcraft::WitherSkullEntity, Botcraft::ThrowableItemProjectileEntity, Botcraft::RaiderEntity, Botcraft::TamableAnimalEntity, Botcraft::AbstractBoatEntity, Botcraft::BoatEntity, Botcraft::ChestBoatEntity, Botcraft::ChestRaftEntity, Botcraft::RaftEntity, Botcraft::AbstractMinecartEntity, Botcraft::MinecartCommandBlockEntity, Botcraft::MinecartFurnaceEntity, and Botcraft::VehicleEntity.

Definition at line 1246 of file Entity.cpp.

References entity_id, entity_mutex, equipments, GetDataAirSupplyId(), GetDataCustomName(), GetDataCustomNameVisible(), GetDataNoGravity(), GetDataPose(), GetDataSharedFlagsId(), GetDataSilent(), GetDataTicksFrozen(), on_ground, pitch, position, Botcraft::Vector3< T >::Serialize(), speed, and yaw.

Referenced by Botcraft::AgeableMobEntity::Serialize(), Botcraft::BatEntity::Serialize(), Botcraft::AllayEntity::Serialize(), Botcraft::DolphinEntity::Serialize(), Botcraft::AbstractFishEntity::Serialize(), Botcraft::CopperGolemEntity::Serialize(), Botcraft::IronGolemEntity::Serialize(), Botcraft::SnowGolemEntity::Serialize(), Botcraft::AreaEffectCloudEntity::Serialize(), Botcraft::EndCrystalEntity::Serialize(), Botcraft::CushionEntity::Serialize(), Botcraft::HangingEntity::Serialize(), Botcraft::DisplayEntity::Serialize(), Botcraft::ExperienceOrbEntity::Serialize(), Botcraft::InteractionEntity::Serialize(), Botcraft::FallingBlockEntity::Serialize(), Botcraft::ItemEntity::Serialize(), Botcraft::PrimedTntEntity::Serialize(), Botcraft::LivingEntity::Serialize(), Botcraft::PillagerEntity::Serialize(), Botcraft::SpellcasterIllagerEntity::Serialize(), Botcraft::MonsterEntity::Serialize(), Botcraft::ShulkerEntity::Serialize(), Botcraft::BoggedEntity::Serialize(), Botcraft::SkeletonEntity::Serialize(), Botcraft::OminousItemSpawnerEntity::Serialize(), Botcraft::AbstractArrowEntity::Serialize(), Botcraft::EyeOfEnderEntity::Serialize(), Botcraft::FireworkRocketEntity::Serialize(), Botcraft::FishingHookEntity::Serialize(), Botcraft::FireballEntity::Serialize(), Botcraft::WitherSkullEntity::Serialize(), Botcraft::ThrowableItemProjectileEntity::Serialize(), Botcraft::RaiderEntity::Serialize(), Botcraft::BoatEntity::Serialize(), Botcraft::ChestBoatEntity::Serialize(), Botcraft::ChestRaftEntity::Serialize(), Botcraft::AbstractMinecartEntity::Serialize(), and Botcraft::VehicleEntity::Serialize().

◆ SetAreRenderedFacesUpToDate()

void Botcraft::Entity::SetAreRenderedFacesUpToDate ( const bool  are_rendered_faces_up_to_date_)

Definition at line 1238 of file Entity.cpp.

References are_rendered_faces_up_to_date, and entity_mutex.

◆ SetDataAirSupplyId()

void Botcraft::Entity::SetDataAirSupplyId ( const int  data_air_supply_id)

Definition at line 867 of file Entity.cpp.

References BOTCRAFT_ENTITY_METADATA_INDEX, and SetMetadata().

Referenced by Entity().

◆ SetDataCustomName()

void Botcraft::Entity::SetDataCustomName ( const std::optional< ProtocolCraft::Chat > &  data_custom_name)

Definition at line 873 of file Entity.cpp.

References BOTCRAFT_ENTITY_METADATA_INDEX, and SetMetadata().

◆ SetDataCustomNameVisible()

void Botcraft::Entity::SetDataCustomNameVisible ( const bool  data_custom_name_visible)

Definition at line 884 of file Entity.cpp.

References BOTCRAFT_ENTITY_METADATA_INDEX, and SetMetadata().

◆ SetDataNoGravity()

void Botcraft::Entity::SetDataNoGravity ( const bool  data_no_gravity)

Definition at line 894 of file Entity.cpp.

References BOTCRAFT_ENTITY_METADATA_INDEX, and SetMetadata().

◆ SetDataPose()

void Botcraft::Entity::SetDataPose ( const Pose  data_pose)

Definition at line 900 of file Entity.cpp.

References BOTCRAFT_ENTITY_METADATA_INDEX, and SetMetadata().

◆ SetDataPoseImpl()

void Botcraft::Entity::SetDataPoseImpl ( const Pose  data_pose)
protected

Definition at line 2227 of file Entity.cpp.

References BOTCRAFT_ENTITY_METADATA_INDEX, and SetMetadataImpl().

◆ SetDataSharedFlagsId() [1/2]

void Botcraft::Entity::SetDataSharedFlagsId ( const char  data_shared_flags_id)

Definition at line 855 of file Entity.cpp.

References entity_mutex, and SetDataSharedFlagsIdImpl().

Referenced by Entity().

◆ SetDataSharedFlagsId() [2/2]

void Botcraft::Entity::SetDataSharedFlagsId ( const EntitySharedFlagsId  id,
const bool  b 
)

Definition at line 861 of file Entity.cpp.

References entity_mutex, and SetDataSharedFlagsIdImpl().

◆ SetDataSharedFlagsIdImpl() [1/2]

void Botcraft::Entity::SetDataSharedFlagsIdImpl ( const char  data_shared_flags_id)
protected

◆ SetDataSharedFlagsIdImpl() [2/2]

void Botcraft::Entity::SetDataSharedFlagsIdImpl ( const EntitySharedFlagsId  id,
const bool  b 
)
protected

Definition at line 2210 of file Entity.cpp.

References GetDataSharedFlagsIdImpl(), and SetDataSharedFlagsIdImpl().

◆ SetDataSilent()

void Botcraft::Entity::SetDataSilent ( const bool  data_silent)

Definition at line 889 of file Entity.cpp.

References BOTCRAFT_ENTITY_METADATA_INDEX, and SetMetadata().

◆ SetDataTicksFrozen()

void Botcraft::Entity::SetDataTicksFrozen ( const int  data_ticks_frozen)

Definition at line 907 of file Entity.cpp.

References BOTCRAFT_ENTITY_METADATA_INDEX, and SetMetadata().

◆ SetEffects()

void Botcraft::Entity::SetEffects ( const std::vector< EntityEffect > &  effects_)

Definition at line 1194 of file Entity.cpp.

References effects, and entity_mutex.

◆ SetEntityID()

void Botcraft::Entity::SetEntityID ( const int  entity_id_)

Definition at line 1041 of file Entity.cpp.

References entity_id, and entity_mutex.

◆ SetEquipment()

void Botcraft::Entity::SetEquipment ( const EquipmentSlot  slot,
const ProtocolCraft::Slot &  item 
)

Definition at line 1188 of file Entity.cpp.

References entity_mutex, and equipments.

◆ SetMetadata()

void Botcraft::Entity::SetMetadata ( const int  index,
const std::any &  value 
)
protected

Definition at line 366 of file Entity.cpp.

References entity_mutex, and SetMetadataImpl().

Referenced by LoadMetadataFromRawArray(), Botcraft::AgeableMobEntity::SetAgeLocked(), Botcraft::TadpoleEntity::SetAgeLocked(), Botcraft::ArmadilloEntity::SetArmadilloState(), Botcraft::CreakingEntity::SetCanMove(), Botcraft::WardenEntity::SetClientAngerLevel(), Botcraft::CopperGolemEntity::SetCopperGolemState(), Botcraft::CamelEntity::SetDash(), SetDataAirSupplyId(), Botcraft::BeeEntity::SetDataAngerEndTime(), Botcraft::WolfEntity::SetDataAngerEndTime(), Botcraft::LivingEntity::SetDataArrowCountId(), Botcraft::FireworkRocketEntity::SetDataAttachedToTarget(), Botcraft::ShulkerEntity::SetDataAttachFaceId(), Botcraft::AgeableMobEntity::SetDataBabyId(), Botcraft::PiglinEntity::SetDataBabyId(), Botcraft::ZoglinEntity::SetDataBabyId(), Botcraft::ZombieEntity::SetDataBabyId(), Botcraft::DisplayTextDisplayEntity::SetDataBackgroundColorId(), Botcraft::EndCrystalEntity::SetDataBeamTarget(), Botcraft::DisplayEntity::SetDataBillboardRenderConstraintsId(), Botcraft::FishingHookEntity::SetDataBiting(), Botcraft::DisplayBlockDisplayEntity::SetDataBlockStateId(), Botcraft::PrimedTntEntity::SetDataBlockStateId(), Botcraft::ArmorStandEntity::SetDataBodyPose(), Botcraft::PigEntity::SetDataBoostTime(), Botcraft::StriderEntity::SetDataBoostTime(), Botcraft::DisplayEntity::SetDataBrightnessOverrideId(), Botcraft::AllayEntity::SetDataCanDuplicate(), Botcraft::EnderManEntity::SetDataCarryState(), Botcraft::ArmorStandEntity::SetDataClientFlags(), Botcraft::CatEntity::SetDataCollarColor(), Botcraft::WolfEntity::SetDataCollarColor(), Botcraft::CushionEntity::SetDataColor(), Botcraft::ShulkerEntity::SetDataColorId(), Botcraft::ZombieVillagerEntity::SetDataConvertingId(), Botcraft::EnderManEntity::SetDataCreepy(), SetDataCustomName(), SetDataCustomNameVisible(), Botcraft::AllayEntity::SetDataDancing(), Botcraft::WitherSkullEntity::SetDataDangerous(), Botcraft::GlowSquidEntity::SetDataDarkTicksRemaining(), Botcraft::AbstractNautilusEntity::SetDataDash(), Botcraft::MannequinEntity::SetDataDescription(), Botcraft::HangingEntity::SetDataDirection(), Botcraft::SnifferEntity::SetDataDropSeedAtTick(), Botcraft::ZombieEntity::SetDataDrownedConversionId(), Botcraft::LivingEntity::SetDataEffectAmbienceId(), Botcraft::LivingEntity::SetDataEffectParticles(), Botcraft::BeeEntity::SetDataFlagsId(), Botcraft::FoxEntity::SetDataFlagsId(), Botcraft::IronGolemEntity::SetDataFlagsId(), Botcraft::BlazeEntity::SetDataFlagsId(), Botcraft::SpiderEntity::SetDataFlagsId(), Botcraft::VexEntity::SetDataFlagsId(), Botcraft::TamableAnimalEntity::SetDataFlagsId(), Botcraft::PrimedTntEntity::SetDataFuseId(), Botcraft::DisplayEntity::SetDataGlowColorOverrideId(), Botcraft::GoatEntity::SetDataHasLeftHorn(), Botcraft::GoatEntity::SetDataHasRightHorn(), Botcraft::ArmorStandEntity::SetDataHeadPose(), Botcraft::LivingEntity::SetDataHealthId(), Botcraft::DisplayEntity::SetDataHeightId(), Botcraft::InteractionEntity::SetDataHeightId(), Botcraft::FishingHookEntity::SetDataHookedEntity(), Botcraft::GuardianEntity::SetDataIdAttackTarget(), Botcraft::AbstractBoatEntity::SetDataIdBubbleTime(), Botcraft::AbstractChestedHorseEntity::SetDataIdChest(), Botcraft::MinecartCommandBlockEntity::SetDataIdCommandName(), Botcraft::AbstractMinecartEntity::SetDataIdCustomDisplayBlock(), Botcraft::VehicleEntity::SetDataIdDamage(), Botcraft::AbstractMinecartEntity::SetDataIdDisplayOffset(), Botcraft::FireworkRocketEntity::SetDataIdFireworksItem(), Botcraft::BatEntity::SetDataIdFlags(), Botcraft::AbstractHorseEntity::SetDataIdFlags(), Botcraft::PandaEntity::SetDataIdFlags(), Botcraft::MinecartFurnaceEntity::SetDataIdFuel(), Botcraft::VehicleEntity::SetDataIdHurt(), Botcraft::VehicleEntity::SetDataIdHurtdir(), Botcraft::WitherBossEntity::SetDataIdInv(), Botcraft::MinecartCommandBlockEntity::SetDataIdLastOutput(), Botcraft::GuardianEntity::SetDataIdMoving(), Botcraft::AbstractBoatEntity::SetDataIdPaddleLeft(), Botcraft::AbstractBoatEntity::SetDataIdPaddleRight(), Botcraft::HorseEntity::SetDataIdTypeVariant(), Botcraft::TropicalFishEntity::SetDataIdTypeVariant(), Botcraft::MannequinEntity::SetDataImmovable(), Botcraft::HoglinEntity::SetDataImmuneToZombification(), Botcraft::AbstractPiglinEntity::SetDataImmuneToZombification(), Botcraft::WolfEntity::SetDataInterestedId(), Botcraft::GhastEntity::SetDataIsCharging(), Botcraft::PiglinEntity::SetDataIsChargingCrossbow(), Botcraft::PiglinEntity::SetDataIsDancing(), Botcraft::CreeperEntity::SetDataIsIgnited(), Botcraft::CreeperEntity::SetDataIsPowered(), Botcraft::GoatEntity::SetDataIsScreamingGoat(), Botcraft::ItemFrameEntity::SetDataItem(), Botcraft::ItemEntity::SetDataItem(), Botcraft::OminousItemSpawnerEntity::SetDataItem(), Botcraft::DisplayItemDisplayEntity::SetDataItemDisplayId(), Botcraft::EyeOfEnderEntity::SetDataItemStack(), Botcraft::FireballEntity::SetDataItemStack(), Botcraft::ThrowableItemProjectileEntity::SetDataItemStack(), Botcraft::DisplayItemDisplayEntity::SetDataItemStackId(), Botcraft::ArmorStandEntity::SetDataLeftArmPose(), Botcraft::ArmorStandEntity::SetDataLeftLegPose(), Botcraft::DisplayEntity::SetDataLeftRotationId(), Botcraft::DisplayTextDisplayEntity::SetDataLineWidthId(), Botcraft::LivingEntity::SetDataLivingEntityFlags(), Botcraft::MobEntity::SetDataMobFlagsId(), SetDataNoGravity(), Botcraft::TamableAnimalEntity::SetDataOwneruuidId(), Botcraft::PaintingEntity::SetDataPaintingVariantId(), Botcraft::AreaEffectCloudEntity::SetDataParticle(), Botcraft::ShulkerEntity::SetDataPeekId(), Botcraft::EnderDragonEntity::SetDataPhase(), Botcraft::PlayerEntity::SetDataPlayerAbsorptionId(), Botcraft::AvatarEntity::SetDataPlayerMainHand(), Botcraft::AvatarEntity::SetDataPlayerModeCustomisation(), Botcraft::AxolotlEntity::SetDataPlayingDead(), SetDataPose(), Botcraft::DisplayEntity::SetDataPosRotInterpolationDurationId(), Botcraft::MannequinEntity::SetDataProfile(), Botcraft::SnowGolemEntity::SetDataPumpkinId(), Botcraft::AreaEffectCloudEntity::SetDataRadius(), Botcraft::InteractionEntity::SetDataResponseId(), Botcraft::ArmorStandEntity::SetDataRightArmPose(), Botcraft::ArmorStandEntity::SetDataRightLegPose(), Botcraft::DisplayEntity::SetDataRightRotationId(), Botcraft::ItemFrameEntity::SetDataRotation(), Botcraft::DisplayEntity::SetDataScaleId(), Botcraft::PlayerEntity::SetDataScoreId(), Botcraft::DisplayEntity::SetDataShadowRadiusId(), Botcraft::DisplayEntity::SetDataShadowStrengthId(), Botcraft::BoggedEntity::SetDataSheared(), Botcraft::FireworkRocketEntity::SetDataShotAtAngle(), Botcraft::PlayerEntity::SetDataShoulderParrotLeft(), Botcraft::PlayerEntity::SetDataShoulderParrotRight(), Botcraft::EndCrystalEntity::SetDataShowBottom(), SetDataSilent(), Botcraft::ChickenEntity::SetDataSoundVariantId(), Botcraft::CowEntity::SetDataSoundVariantId(), Botcraft::CatEntity::SetDataSoundVariantId(), Botcraft::PigEntity::SetDataSoundVariantId(), Botcraft::WolfEntity::SetDataSoundVariantId(), Botcraft::ZombieEntity::SetDataSpecialTypeId(), Botcraft::SpellcasterIllagerEntity::SetDataSpellCastingId(), Botcraft::PolarBearEntity::SetDataStandingId(), Botcraft::EnderManEntity::SetDataStaredAt(), Botcraft::FallingBlockEntity::SetDataStartPos(), Botcraft::SnifferEntity::SetDataState(), Botcraft::LivingEntity::SetDataStingerCountId(), Botcraft::SkeletonEntity::SetDataStrayConversionId(), Botcraft::LlamaEntity::SetDataStrengthId(), Botcraft::DisplayTextDisplayEntity::SetDataStyleFlagsId(), Botcraft::StriderEntity::SetDataSuffocating(), Botcraft::CreeperEntity::SetDataSwellDir(), Botcraft::WitherBossEntity::SetDataTargetA(), Botcraft::WitherBossEntity::SetDataTargetB(), Botcraft::WitherBossEntity::SetDataTargetC(), Botcraft::DisplayTextDisplayEntity::SetDataTextId(), Botcraft::DisplayTextDisplayEntity::SetDataTextOpacityId(), SetDataTicksFrozen(), Botcraft::FrogEntity::SetDataTongueTargetId(), Botcraft::DisplayEntity::SetDataTransformationInterpolationDurationId(), Botcraft::DisplayEntity::SetDataTransformationInterpolationStartDeltaTicksId(), Botcraft::DisplayEntity::SetDataTranslationId(), Botcraft::FoxEntity::SetDataTrustedId0(), Botcraft::FoxEntity::SetDataTrustedId1(), Botcraft::OcelotEntity::SetDataTrusting(), Botcraft::MushroomCowEntity::SetDataType(), Botcraft::CatEntity::SetDataTypeId(), Botcraft::FoxEntity::SetDataTypeId(), Botcraft::RabbitEntity::SetDataTypeId(), Botcraft::AbstractVillagerEntity::SetDataUnhappyCounter(), Botcraft::WitchEntity::SetDataUsingItem(), Botcraft::ExperienceOrbEntity::SetDataValue(), Botcraft::AxolotlEntity::SetDataVariant(), Botcraft::ChickenEntity::SetDataVariantId(), Botcraft::CowEntity::SetDataVariantId(), Botcraft::LlamaEntity::SetDataVariantId(), Botcraft::FrogEntity::SetDataVariantId(), Botcraft::ZombieNautilusEntity::SetDataVariantId(), Botcraft::ParrotEntity::SetDataVariantId(), Botcraft::PigEntity::SetDataVariantId(), Botcraft::WolfEntity::SetDataVariantId(), Botcraft::DisplayEntity::SetDataViewRangeId(), Botcraft::ZombieVillagerEntity::SetDataVillagerData(), Botcraft::VillagerEntity::SetDataVillagerData(), Botcraft::ZombieVillagerEntity::SetDataVillagerDataFinalized(), Botcraft::VillagerEntity::SetDataVillagerDataFinalized(), Botcraft::AreaEffectCloudEntity::SetDataWaiting(), Botcraft::DisplayEntity::SetDataWidthId(), Botcraft::InteractionEntity::SetDataWidthId(), Botcraft::SheepEntity::SetDataWoolId(), Botcraft::PandaEntity::SetEatCounter(), Botcraft::AxolotlEntity::SetFromBucket(), Botcraft::AbstractFishEntity::SetFromBucket(), Botcraft::SulfurCubeEntity::SetFromBucket(), Botcraft::DolphinEntity::SetGotFish(), Botcraft::TurtleEntity::SetHasEgg(), Botcraft::PandaEntity::SetHiddenGeneId(), Botcraft::CreakingEntity::SetHomePos(), Botcraft::ArrowEntity::SetIdEffectColor(), Botcraft::AbstractArrowEntity::SetIdFlags(), Botcraft::ThrownTridentEntity::SetIdFoil(), Botcraft::ThrownTridentEntity::SetIdLoyalty(), Botcraft::AbstractCubeMobEntity::SetIdSize(), Botcraft::PhantomEntity::SetIdSize(), Botcraft::AbstractArrowEntity::SetInGround(), Botcraft::CreakingEntity::SetIsActive(), Botcraft::RaiderEntity::SetIsCelebrating(), Botcraft::PillagerEntity::SetIsChargingCrossbow(), Botcraft::HappyGhastEntity::SetIsLeashHolder(), Botcraft::CatEntity::SetIsLying(), Botcraft::CreakingEntity::SetIsTearingDown(), Botcraft::CamelEntity::SetLastPoseChangeTick(), Botcraft::TurtleEntity::SetLayingEgg(), Botcraft::PandaEntity::SetMainGeneId(), Botcraft::SulfurCubeEntity::SetMaxFuse(), Botcraft::DolphinEntity::SetMoistnessLevel(), Botcraft::AbstractArrowEntity::SetPierceLevel(), Botcraft::PufferfishEntity::SetPuffState(), Botcraft::CatEntity::SetRelaxStateOne(), Botcraft::LivingEntity::SetSleepingPosId(), Botcraft::PandaEntity::SetSneezeCounter(), Botcraft::HappyGhastEntity::SetStaysStill(), and Botcraft::PandaEntity::SetUnhappyCounter().

◆ SetMetadataImpl()

void Botcraft::Entity::SetMetadataImpl ( const int  index,
const std::any &  value 
)
protected

Definition at line 356 of file Entity.cpp.

References GetName(), metadata, and OnMetadataChangedImpl().

Referenced by SetDataPoseImpl(), SetDataSharedFlagsIdImpl(), and SetMetadata().

◆ SetOnGround()

void Botcraft::Entity::SetOnGround ( const bool  on_ground_)

Definition at line 1182 of file Entity.cpp.

References entity_mutex, and on_ground.

◆ SetPitch()

void Botcraft::Entity::SetPitch ( const float  pitch_)
virtual

Reimplemented in Botcraft::LocalPlayer.

Definition at line 1136 of file Entity.cpp.

References are_rendered_faces_up_to_date, entity_mutex, face_descriptors, faces, and pitch.

◆ SetPosition()

void Botcraft::Entity::SetPosition ( const Vector3< double > &  position_)
virtual

◆ SetSpeed()

void Botcraft::Entity::SetSpeed ( const Vector3< double > &  speed_)

Definition at line 1158 of file Entity.cpp.

References entity_mutex, and speed.

◆ SetSpeedX()

void Botcraft::Entity::SetSpeedX ( const double  speed_x_)

Definition at line 1164 of file Entity.cpp.

References entity_mutex, speed, and Botcraft::Vector3< T >::x.

◆ SetSpeedY()

void Botcraft::Entity::SetSpeedY ( const double  speed_y_)

Definition at line 1170 of file Entity.cpp.

References entity_mutex, speed, and Botcraft::Vector3< T >::y.

◆ SetSpeedZ()

void Botcraft::Entity::SetSpeedZ ( const double  speed_z_)

Definition at line 1176 of file Entity.cpp.

References entity_mutex, speed, and Botcraft::Vector3< T >::z.

◆ SetUUID()

void Botcraft::Entity::SetUUID ( const ProtocolCraft::UUID &  uuid_)

Definition at line 1047 of file Entity.cpp.

References entity_mutex, and uuid.

◆ SetX()

void Botcraft::Entity::SetX ( const double  x_)
virtual

◆ SetY()

void Botcraft::Entity::SetY ( const double  y_)
virtual

◆ SetYaw()

void Botcraft::Entity::SetYaw ( const float  yaw_)
virtual

Reimplemented in Botcraft::LocalPlayer.

Definition at line 1120 of file Entity.cpp.

References are_rendered_faces_up_to_date, entity_mutex, face_descriptors, faces, and yaw.

◆ SetZ()

void Botcraft::Entity::SetZ ( const double  z_)
virtual

Member Data Documentation

◆ are_rendered_faces_up_to_date

bool Botcraft::Entity::are_rendered_faces_up_to_date
protected

◆ effects

std::vector<EntityEffect> Botcraft::Entity::effects
protected

Definition at line 333 of file Entity.hpp.

Referenced by AddEffect(), GetEffects(), RemoveEffect(), and SetEffects().

◆ entity_id

int Botcraft::Entity::entity_id
protected

Definition at line 322 of file Entity.hpp.

Referenced by Entity(), GetEntityID(), Serialize(), and SetEntityID().

◆ entity_mutex

std::shared_mutex Botcraft::Entity::entity_mutex
mutableprotected

Definition at line 320 of file Entity.hpp.

Referenced by Botcraft::LivingEntity::AddAttribute(), AddEffect(), Botcraft::LocalPlayer::AddInputsForward(), Botcraft::LocalPlayer::AddInputsLeft(), AddSpeed(), Botcraft::LivingEntity::ClearModifiers(), Entity(), Botcraft::LocalPlayer::GetAbilitiesFlags(), GetAreRenderedFacesUpToDate(), Botcraft::LivingEntity::GetAttribute(), Botcraft::LivingEntity::GetAttributeAirDragModifierValue(), Botcraft::LivingEntity::GetAttributeArmorToughnessValue(), Botcraft::LivingEntity::GetAttributeArmorValue(), Botcraft::AllayEntity::GetAttributeAttackDamageValue(), Botcraft::AxolotlEntity::GetAttributeAttackDamageValue(), Botcraft::BeeEntity::GetAttributeAttackDamageValue(), Botcraft::DolphinEntity::GetAttributeAttackDamageValue(), Botcraft::CatEntity::GetAttributeAttackDamageValue(), Botcraft::OcelotEntity::GetAttributeAttackDamageValue(), Botcraft::FoxEntity::GetAttributeAttackDamageValue(), Botcraft::FrogEntity::GetAttributeAttackDamageValue(), Botcraft::GoatEntity::GetAttributeAttackDamageValue(), Botcraft::IronGolemEntity::GetAttributeAttackDamageValue(), Botcraft::AbstractNautilusEntity::GetAttributeAttackDamageValue(), Botcraft::PandaEntity::GetAttributeAttackDamageValue(), Botcraft::ParrotEntity::GetAttributeAttackDamageValue(), Botcraft::PolarBearEntity::GetAttributeAttackDamageValue(), Botcraft::RabbitEntity::GetAttributeAttackDamageValue(), Botcraft::WolfEntity::GetAttributeAttackDamageValue(), Botcraft::HoglinEntity::GetAttributeAttackDamageValue(), Botcraft::MonsterEntity::GetAttributeAttackDamageValue(), Botcraft::PlayerEntity::GetAttributeAttackDamageValue(), Botcraft::LivingEntity::GetAttributeAttackKnockbackValue(), Botcraft::PlayerEntity::GetAttributeAttackSpeedValue(), Botcraft::LivingEntity::GetAttributeBelowNameDistanceValue(), Botcraft::LivingEntity::GetAttributeBouncinessValue(), Botcraft::LivingEntity::GetAttributeBurningTimeValue(), Botcraft::LivingEntity::GetAttributeCameraDistanceValue(), Botcraft::LivingEntity::GetAttributeEntityInteractionRangeValue(), Botcraft::LivingEntity::GetAttributeExplosionKnockbackResistanceValue(), Botcraft::LivingEntity::GetAttributeFallDamageMultiplierValue(), Botcraft::AllayEntity::GetAttributeFlyingSpeedValue(), Botcraft::BeeEntity::GetAttributeFlyingSpeedValue(), Botcraft::HappyGhastEntity::GetAttributeFlyingSpeedValue(), Botcraft::ParrotEntity::GetAttributeFlyingSpeedValue(), Botcraft::WitherBossEntity::GetAttributeFlyingSpeedValue(), Botcraft::GhastEntity::GetAttributeFlyingSpeedValue(), Botcraft::MobEntity::GetAttributeFollowRangeValue(), Botcraft::LivingEntity::GetAttributeFrictionModifierValue(), Botcraft::LivingEntity::GetAttributeGravityValue(), Botcraft::LivingEntity::GetAttributeJumpStrengthValue(), Botcraft::LivingEntity::GetAttributeKnockbackResistanceValue(), Botcraft::PlayerEntity::GetAttributeLuckValue(), Botcraft::LivingEntity::GetAttributeMaxAbsorptionValue(), Botcraft::LivingEntity::GetAttributeMaxHealthValue(), Botcraft::LivingEntity::GetAttributeMovementEfficiencyValue(), Botcraft::LivingEntity::GetAttributeMovementSpeedValue(), Botcraft::LivingEntity::GetAttributeNameTagDistanceValue(), Botcraft::LivingEntity::GetAttributeOxygenBonusValue(), Botcraft::PlayerEntity::GetAttributePlayerBlockBreakSpeedValue(), Botcraft::PlayerEntity::GetAttributePlayerBlockInteractionRangeValue(), Botcraft::PlayerEntity::GetAttributePlayerMiningEfficiencyValue(), Botcraft::PlayerEntity::GetAttributePlayerSneakingSpeedValue(), Botcraft::PlayerEntity::GetAttributePlayerSubmergedMiningSpeedValue(), Botcraft::PlayerEntity::GetAttributePlayerSweepingDamageRatioValue(), Botcraft::LivingEntity::GetAttributeSafeFallDistanceValue(), Botcraft::LivingEntity::GetAttributeScaleValue(), Botcraft::ZombieEntity::GetAttributeSpawnReinforcementsChanceValue(), Botcraft::LivingEntity::GetAttributeStepHeightValue(), Botcraft::AnimalEntity::GetAttributeTemptRangeValue(), Botcraft::SulfurCubeEntity::GetAttributeTemptRangeValue(), Botcraft::LivingEntity::GetAttributeWaterMovementEfficiencyValue(), Botcraft::PlayerEntity::GetAttributeWaypointReceiveRangeValue(), Botcraft::LivingEntity::GetAttributeWaypointTransmitRangeValue(), GetCollider(), Botcraft::PlayerEntity::GetCollider(), Botcraft::LivingEntity::GetDataLivingEntityFlags(), Botcraft::AreaEffectCloudEntity::GetDataRadius(), GetDataSharedFlagsId(), GetDataSharedFlagsId(), Botcraft::SalmonEntity::GetDataType(), Botcraft::LocalPlayer::GetDirtyInputs(), GetEffects(), GetEntityID(), GetEquipment(), GetEquipments(), Botcraft::PlayerEntity::GetEyeHeight(), GetFaces(), Botcraft::LocalPlayer::GetFlying(), Botcraft::LocalPlayer::GetFlyingSpeed(), Botcraft::LocalPlayer::GetFood(), Botcraft::LocalPlayer::GetFoodSaturation(), Botcraft::LocalPlayer::GetFrontVector(), Botcraft::LocalPlayer::GetGameMode(), Botcraft::LocalPlayer::GetHealth(), GetHeight(), Botcraft::AbstractCubeMobEntity::GetIdSize(), Botcraft::LocalPlayer::GetInstabuild(), Botcraft::LocalPlayer::GetInvulnerable(), Botcraft::LocalPlayer::GetMayBuild(), Botcraft::LocalPlayer::GetMayFly(), GetMetadata(), GetOnGround(), GetPitch(), GetPosition(), Botcraft::LocalPlayer::GetRightVector(), Botcraft::LivingEntity::GetSleepingPosId(), GetSpeed(), GetSpeedX(), GetSpeedY(), GetSpeedZ(), GetUUID(), Botcraft::LocalPlayer::GetWalkingSpeed(), GetWidth(), GetX(), Botcraft::LocalPlayer::GetXZVector(), GetY(), GetYaw(), GetZ(), InitializeFaces(), Botcraft::LocalPlayer::IsClimbing(), Botcraft::LocalPlayer::IsInFluid(), Botcraft::LocalPlayer::IsInLava(), Botcraft::LocalPlayer::IsInWater(), Botcraft::LocalPlayer::LocalPlayer(), Botcraft::LocalPlayer::LookAt(), Botcraft::LivingEntity::RemoveAttributeModifier(), RemoveEffect(), Serialize(), Botcraft::LocalPlayer::SetAbilitiesFlags(), SetAreRenderedFacesUpToDate(), Botcraft::LivingEntity::SetAttributeBaseValue(), Botcraft::LivingEntity::SetAttributeModifier(), SetDataSharedFlagsId(), SetDataSharedFlagsId(), Botcraft::LocalPlayer::SetDirtyInputs(), SetEffects(), SetEntityID(), SetEquipment(), Botcraft::LocalPlayer::SetFlyingSpeed(), Botcraft::LocalPlayer::SetFood(), Botcraft::LocalPlayer::SetFoodSaturation(), Botcraft::LocalPlayer::SetGameMode(), Botcraft::LocalPlayer::SetHealth(), Botcraft::LocalPlayer::SetInputs(), Botcraft::LocalPlayer::SetInputsForward(), Botcraft::LocalPlayer::SetInputsJump(), Botcraft::LocalPlayer::SetInputsLeft(), Botcraft::LocalPlayer::SetInputsSneak(), Botcraft::LocalPlayer::SetInputsSprint(), SetMetadata(), SetOnGround(), SetPitch(), Botcraft::LocalPlayer::SetPitch(), Botcraft::LocalPlayer::SetPosition(), SetPosition(), SetSpeed(), SetSpeedX(), SetSpeedY(), SetSpeedZ(), SetUUID(), Botcraft::LocalPlayer::SetWalkingSpeed(), Botcraft::LocalPlayer::SetX(), SetX(), Botcraft::LocalPlayer::SetY(), SetY(), SetYaw(), Botcraft::LocalPlayer::SetYaw(), Botcraft::LocalPlayer::SetZ(), and SetZ().

◆ equipments

std::map<EquipmentSlot, ProtocolCraft::Slot> Botcraft::Entity::equipments
protected

Items on this entity.

Note that for the local player this will NOT be populated. Check corresponding player inventory slots instead.

Definition at line 332 of file Entity.hpp.

Referenced by Entity(), GetEquipment(), GetEquipments(), Serialize(), and SetEquipment().

◆ face_descriptors

std::vector<FaceDescriptor> Botcraft::Entity::face_descriptors
protected

◆ faces

std::vector<Renderer::Face> Botcraft::Entity::faces
protected

◆ hierarchy_metadata_count

constexpr int Botcraft::Entity::hierarchy_metadata_count = 0
staticconstexprprotected

Definition at line 73 of file Entity.hpp.

Referenced by Entity().

◆ metadata

std::vector<std::any> Botcraft::Entity::metadata
protected

Definition at line 335 of file Entity.hpp.

Referenced by Botcraft::AbstractArrowEntity::AbstractArrowEntity(), Botcraft::AbstractBoatEntity::AbstractBoatEntity(), Botcraft::AbstractChestedHorseEntity::AbstractChestedHorseEntity(), Botcraft::AbstractCubeMobEntity::AbstractCubeMobEntity(), Botcraft::AbstractFishEntity::AbstractFishEntity(), Botcraft::AbstractHorseEntity::AbstractHorseEntity(), Botcraft::AbstractIllagerEntity::AbstractIllagerEntity(), Botcraft::AbstractMinecartEntity::AbstractMinecartEntity(), Botcraft::AbstractNautilusEntity::AbstractNautilusEntity(), Botcraft::AbstractPiglinEntity::AbstractPiglinEntity(), Botcraft::AbstractSkeletonEntity::AbstractSkeletonEntity(), Botcraft::AbstractVillagerEntity::AbstractVillagerEntity(), Botcraft::AgeableMobEntity::AgeableMobEntity(), Botcraft::AllayEntity::AllayEntity(), Botcraft::AreaEffectCloudEntity::AreaEffectCloudEntity(), Botcraft::ArmadilloEntity::ArmadilloEntity(), Botcraft::ArmorStandEntity::ArmorStandEntity(), Botcraft::ArrowEntity::ArrowEntity(), Botcraft::AvatarEntity::AvatarEntity(), Botcraft::AxolotlEntity::AxolotlEntity(), Botcraft::BatEntity::BatEntity(), Botcraft::BeeEntity::BeeEntity(), Botcraft::BlazeEntity::BlazeEntity(), Botcraft::BoatEntity::BoatEntity(), Botcraft::BoggedEntity::BoggedEntity(), Botcraft::CamelEntity::CamelEntity(), Botcraft::CatEntity::CatEntity(), Botcraft::ChickenEntity::ChickenEntity(), Botcraft::CopperGolemEntity::CopperGolemEntity(), Botcraft::CowEntity::CowEntity(), Botcraft::CreakingEntity::CreakingEntity(), Botcraft::CreeperEntity::CreeperEntity(), Botcraft::CushionEntity::CushionEntity(), Botcraft::DisplayBlockDisplayEntity::DisplayBlockDisplayEntity(), Botcraft::DisplayEntity::DisplayEntity(), Botcraft::DisplayItemDisplayEntity::DisplayItemDisplayEntity(), Botcraft::DisplayTextDisplayEntity::DisplayTextDisplayEntity(), Botcraft::DolphinEntity::DolphinEntity(), Botcraft::EndCrystalEntity::EndCrystalEntity(), Botcraft::EnderDragonEntity::EnderDragonEntity(), Botcraft::EnderManEntity::EnderManEntity(), Entity(), Botcraft::ExperienceOrbEntity::ExperienceOrbEntity(), Botcraft::EyeOfEnderEntity::EyeOfEnderEntity(), Botcraft::FallingBlockEntity::FallingBlockEntity(), Botcraft::FireballEntity::FireballEntity(), Botcraft::FireworkRocketEntity::FireworkRocketEntity(), Botcraft::FishingHookEntity::FishingHookEntity(), Botcraft::FoxEntity::FoxEntity(), Botcraft::FrogEntity::FrogEntity(), GetMetadataImpl(), Botcraft::GhastEntity::GhastEntity(), Botcraft::GlowSquidEntity::GlowSquidEntity(), Botcraft::GoatEntity::GoatEntity(), Botcraft::GuardianEntity::GuardianEntity(), Botcraft::HangingEntity::HangingEntity(), Botcraft::HappyGhastEntity::HappyGhastEntity(), Botcraft::HoglinEntity::HoglinEntity(), Botcraft::HorseEntity::HorseEntity(), Botcraft::InteractionEntity::InteractionEntity(), Botcraft::IronGolemEntity::IronGolemEntity(), Botcraft::ItemEntity::ItemEntity(), Botcraft::ItemFrameEntity::ItemFrameEntity(), Botcraft::LivingEntity::LivingEntity(), Botcraft::LlamaEntity::LlamaEntity(), Botcraft::MannequinEntity::MannequinEntity(), Botcraft::MinecartCommandBlockEntity::MinecartCommandBlockEntity(), Botcraft::MinecartFurnaceEntity::MinecartFurnaceEntity(), Botcraft::MobEntity::MobEntity(), Botcraft::MushroomCowEntity::MushroomCowEntity(), Botcraft::OcelotEntity::OcelotEntity(), Botcraft::OminousItemSpawnerEntity::OminousItemSpawnerEntity(), Botcraft::PaintingEntity::PaintingEntity(), Botcraft::PandaEntity::PandaEntity(), Botcraft::ParrotEntity::ParrotEntity(), Botcraft::PhantomEntity::PhantomEntity(), Botcraft::PigEntity::PigEntity(), Botcraft::PiglinEntity::PiglinEntity(), Botcraft::PillagerEntity::PillagerEntity(), Botcraft::PlayerEntity::PlayerEntity(), Botcraft::PolarBearEntity::PolarBearEntity(), Botcraft::PrimedTntEntity::PrimedTntEntity(), Botcraft::PufferfishEntity::PufferfishEntity(), Botcraft::RabbitEntity::RabbitEntity(), Botcraft::RaiderEntity::RaiderEntity(), Botcraft::SalmonEntity::SalmonEntity(), SetMetadataImpl(), Botcraft::SheepEntity::SheepEntity(), Botcraft::ShulkerEntity::ShulkerEntity(), Botcraft::SkeletonEntity::SkeletonEntity(), Botcraft::SlimeEntity::SlimeEntity(), Botcraft::SnifferEntity::SnifferEntity(), Botcraft::SnowGolemEntity::SnowGolemEntity(), Botcraft::SpellcasterIllagerEntity::SpellcasterIllagerEntity(), Botcraft::SpiderEntity::SpiderEntity(), Botcraft::StriderEntity::StriderEntity(), Botcraft::SulfurCubeEntity::SulfurCubeEntity(), Botcraft::TadpoleEntity::TadpoleEntity(), Botcraft::TamableAnimalEntity::TamableAnimalEntity(), Botcraft::ThrowableItemProjectileEntity::ThrowableItemProjectileEntity(), Botcraft::ThrownTridentEntity::ThrownTridentEntity(), Botcraft::TropicalFishEntity::TropicalFishEntity(), Botcraft::TurtleEntity::TurtleEntity(), Botcraft::VehicleEntity::VehicleEntity(), Botcraft::VexEntity::VexEntity(), Botcraft::VillagerEntity::VillagerEntity(), Botcraft::WardenEntity::WardenEntity(), Botcraft::WitchEntity::WitchEntity(), Botcraft::WitherBossEntity::WitherBossEntity(), Botcraft::WitherSkullEntity::WitherSkullEntity(), Botcraft::WolfEntity::WolfEntity(), Botcraft::ZoglinEntity::ZoglinEntity(), Botcraft::ZombieEntity::ZombieEntity(), Botcraft::ZombieNautilusEntity::ZombieNautilusEntity(), and Botcraft::ZombieVillagerEntity::ZombieVillagerEntity().

◆ metadata_count

constexpr int Botcraft::Entity::metadata_count = static_cast<int>(metadata_names.size())
staticconstexprprotected

Definition at line 72 of file Entity.hpp.

Referenced by Entity().

◆ metadata_names

constexpr std::array Botcraft::Entity::metadata_names
staticconstexprprivate
Initial value:
{
std::string_view("data_shared_flags_id"),
std::string_view("data_air_supply_id"),
std::string_view("data_custom_name"),
std::string_view("data_custom_name_visible"),
std::string_view("data_silent"),
std::string_view("data_no_gravity"),
std::string_view("data_pose"),
std::string_view("data_ticks_frozen"),
}

Definition at line 57 of file Entity.hpp.

◆ on_ground

bool Botcraft::Entity::on_ground
protected

Definition at line 328 of file Entity.hpp.

Referenced by Entity(), GetOnGround(), Serialize(), and SetOnGround().

◆ pitch

◆ position

◆ speed

Vector3<double> Botcraft::Entity::speed
protected

◆ uuid

ProtocolCraft::UUID Botcraft::Entity::uuid
protected

Definition at line 323 of file Entity.hpp.

Referenced by GetUUID(), and SetUUID().

◆ yaw


The documentation for this class was generated from the following files: