|
Botcraft 1.21.10
|
#include <HappyGhastEntity.hpp>
Public Member Functions | |
| HappyGhastEntity () | |
| virtual | ~HappyGhastEntity () |
| virtual std::string | GetName () const override |
| virtual EntityType | GetType () const override |
| virtual ProtocolCraft::Json::Value | Serialize () const override |
| virtual void | SetMetadataValue (const int index, const std::any &value) override |
| bool | GetIsLeashHolder () const |
| bool | GetStaysStill () const |
| void | SetIsLeashHolder (const int is_leahs_holder) |
| void | SetStaysStill (const int stays_still) |
| double | GetAttributeFlyingSpeedValue () const |
Public Member Functions inherited from Botcraft::AnimalEntity | |
| AnimalEntity () | |
| virtual | ~AnimalEntity () |
| virtual bool | IsAnimal () const override |
| double | GetAttributeTemptRangeValue () const |
Public Member Functions inherited from Botcraft::AgeableMobEntity | |
| AgeableMobEntity () | |
| virtual | ~AgeableMobEntity () |
| virtual bool | IsAgeableMob () const override |
| bool | GetDataBabyId () const |
| void | SetDataBabyId (const bool data_baby_id) |
Public Member Functions inherited from Botcraft::PathfinderMobEntity | |
| PathfinderMobEntity () | |
| virtual | ~PathfinderMobEntity () |
| virtual bool | IsPathfinderMob () const override |
Public Member Functions inherited from Botcraft::MobEntity | |
| MobEntity () | |
| virtual | ~MobEntity () |
| virtual bool | IsMob () const override |
| char | GetDataMobFlagsId () const |
| void | SetDataMobFlagsId (const char data_mob_flags_id) |
| double | GetAttributeFollowRangeValue () const |
Public Member Functions inherited from Botcraft::LivingEntity | |
| LivingEntity () | |
| virtual | ~LivingEntity () |
| virtual bool | IsLivingEntity () const override |
| char | GetDataLivingEntityFlags () const |
| float | GetDataHealthId () const |
| std::vector< ProtocolCraft::Particle > | GetDataEffectParticles () const |
| bool | GetDataEffectAmbienceId () const |
| int | GetDataArrowCountId () const |
| int | GetDataStingerCountId () const |
| std::optional< Position > | GetSleepingPosId () const |
| void | SetDataLivingEntityFlags (const char data_living_entity_flags) |
| void | SetDataHealthId (const float data_health_id) |
| void | SetDataEffectParticles (const std::vector< ProtocolCraft::Particle > &data_effect_particles) |
| void | SetDataEffectAmbienceId (const bool data_effect_ambience_id) |
| void | SetDataArrowCountId (const int data_arrow_count_id) |
| void | SetDataStingerCountId (const int data_stinger_count_id) |
| void | SetSleepingPosId (const std::optional< Position > &sleeping_pos_id) |
| std::optional< EntityAttribute > | GetAttribute (const EntityAttribute::Type type) const |
| void | SetAttributeBaseValue (const EntityAttribute::Type type, const double value) |
| void | RemoveAttributeModifier (const EntityAttribute::Type type, const EntityAttribute::ModifierKey &key) |
| void | SetAttributeModifier (const EntityAttribute::Type type, const EntityAttribute::ModifierKey &key, const EntityAttribute::Modifier &modifier) |
| void | ClearModifiers (const EntityAttribute::Type type) |
| void | AddAttribute (const EntityAttribute &attribute) |
| double | GetAttributeMaxHealthValue () const |
| double | GetAttributeKnockbackResistanceValue () const |
| double | GetAttributeMovementSpeedValue () const |
| double | GetAttributeArmorValue () const |
| double | GetAttributeArmorToughnessValue () const |
| double | GetAttributeMaxAbsorptionValue () const |
| double | GetAttributeStepHeightValue () const |
| double | GetAttributeScaleValue () const |
| double | GetAttributeGravityValue () const |
| double | GetAttributeSafeFallDistanceValue () const |
| double | GetAttributeFallDamageMultiplierValue () const |
| double | GetAttributeJumpStrengthValue () const |
| double | GetAttributeOxygenBonusValue () const |
| double | GetAttributeBurningTimeValue () const |
| double | GetAttributeExplosionKnockbackResistanceValue () const |
| double | GetAttributeWaterMovementEfficiencyValue () const |
| double | GetAttributeMovementEfficiencyValue () const |
| double | GetAttributeAttackKnockbackValue () const |
| double | GetAttributeCameraDistanceValue () const |
| double | GetAttributeWaypointTransmitRangeValue () const |
Public Member Functions inherited from Botcraft::Entity | |
| Entity () | |
| virtual | ~Entity () |
| 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 | 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 bool | IsLocalPlayer () const |
| virtual bool | IsRemotePlayer () const |
| virtual bool | IsAbstractArrow () 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 | 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 | 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 |
Static Public Member Functions | |
| static std::string | GetClassName () |
| static EntityType | GetClassType () |
Static Public Member Functions inherited from Botcraft::Entity | |
| static std::shared_ptr< Entity > | CreateEntity (const EntityType type) |
Static Protected Attributes | |
| static constexpr int | metadata_count = 2 |
| static const std::array< std::string, metadata_count > | metadata_names |
| static constexpr int | hierarchy_metadata_count = AnimalEntity::metadata_count + AnimalEntity::hierarchy_metadata_count |
Static Protected Attributes inherited from Botcraft::AnimalEntity | |
| static constexpr int | metadata_count = 0 |
| static constexpr int | hierarchy_metadata_count = AgeableMobEntity::metadata_count + AgeableMobEntity::hierarchy_metadata_count |
Static Protected Attributes inherited from Botcraft::AgeableMobEntity | |
| static constexpr int | metadata_count = 1 |
| static const std::array< std::string, metadata_count > | metadata_names |
| static constexpr int | hierarchy_metadata_count = PathfinderMobEntity::metadata_count + PathfinderMobEntity::hierarchy_metadata_count |
Static Protected Attributes inherited from Botcraft::PathfinderMobEntity | |
| static constexpr int | metadata_count = 0 |
| static constexpr int | hierarchy_metadata_count = MobEntity::metadata_count + MobEntity::hierarchy_metadata_count |
Static Protected Attributes inherited from Botcraft::MobEntity | |
| static constexpr int | metadata_count = 1 |
| static const std::array< std::string, metadata_count > | metadata_names |
| static constexpr int | hierarchy_metadata_count = LivingEntity::metadata_count + LivingEntity::hierarchy_metadata_count |
Static Protected Attributes inherited from Botcraft::LivingEntity | |
| static constexpr int | metadata_count = 7 |
| static const std::array< std::string, metadata_count > | metadata_names |
| static constexpr int | hierarchy_metadata_count = Entity::metadata_count + Entity::hierarchy_metadata_count |
Static Protected Attributes inherited from Botcraft::Entity | |
| static constexpr int | metadata_count = 8 |
| static const std::array< std::string, metadata_count > | metadata_names |
| static constexpr int | hierarchy_metadata_count = 0 |
Additional Inherited Members | |
Static Public Attributes inherited from Botcraft::LivingEntity | |
| static const std::string | speed_modifier_powder_snow_key = "minecraft:powder_snow" |
| static const std::string | speed_modifier_sprinting_key = "minecraft:sprinting" |
Protected Attributes inherited from Botcraft::LivingEntity | |
| std::map< EntityAttribute::Type, EntityAttribute > | attributes |
Protected Attributes inherited from Botcraft::Entity | |
| 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::map< std::string, std::any > | metadata |
| std::vector< FaceDescriptor > | face_descriptors |
| std::vector< Renderer::Face > | faces |
| bool | are_rendered_faces_up_to_date |
Definition at line 8 of file HappyGhastEntity.hpp.
| Botcraft::HappyGhastEntity::HappyGhastEntity | ( | ) |
Definition at line 13 of file HappyGhastEntity.cpp.
References Botcraft::LivingEntity::attributes, Botcraft::EntityAttribute::CameraDistance, Botcraft::EntityAttribute::FlyingSpeed, Botcraft::EntityAttribute::FollowRange, Botcraft::EntityAttribute::MaxHealth, Botcraft::EntityAttribute::MovementSpeed, SetIsLeashHolder(), SetStaysStill(), and Botcraft::EntityAttribute::TemptRange.
|
virtual |
Definition at line 28 of file HappyGhastEntity.cpp.
| double Botcraft::HappyGhastEntity::GetAttributeFlyingSpeedValue | ( | ) | const |
Definition at line 108 of file HappyGhastEntity.cpp.
References Botcraft::LivingEntity::attributes, Botcraft::Entity::entity_mutex, and Botcraft::EntityAttribute::FlyingSpeed.
Referenced by Serialize().
|
static |
Definition at line 45 of file HappyGhastEntity.cpp.
|
static |
Definition at line 50 of file HappyGhastEntity.cpp.
References Botcraft::HappyGhast.
|
overrideprotectedvirtual |
Reimplemented from Botcraft::Entity.
Definition at line 120 of file HappyGhastEntity.cpp.
| bool Botcraft::HappyGhastEntity::GetIsLeashHolder | ( | ) | const |
Definition at line 82 of file HappyGhastEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by Serialize().
|
overridevirtual |
Implements Botcraft::Entity.
Definition at line 34 of file HappyGhastEntity.cpp.
| bool Botcraft::HappyGhastEntity::GetStaysStill | ( | ) | const |
Definition at line 88 of file HappyGhastEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by Serialize().
|
overridevirtual |
Implements Botcraft::Entity.
Definition at line 39 of file HappyGhastEntity.cpp.
References Botcraft::HappyGhast.
|
overrideprotectedvirtual |
Reimplemented from Botcraft::Entity.
Definition at line 115 of file HappyGhastEntity.cpp.
|
overridevirtual |
Reimplemented from Botcraft::AnimalEntity.
Definition at line 56 of file HappyGhastEntity.cpp.
References GetAttributeFlyingSpeedValue(), GetIsLeashHolder(), GetStaysStill(), and Botcraft::AnimalEntity::Serialize().
| void Botcraft::HappyGhastEntity::SetIsLeashHolder | ( | const int | is_leahs_holder | ) |
Definition at line 95 of file HappyGhastEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by HappyGhastEntity().
|
overridevirtual |
Reimplemented from Botcraft::AgeableMobEntity.
Definition at line 69 of file HappyGhastEntity.cpp.
References Botcraft::Entity::entity_mutex, hierarchy_metadata_count, Botcraft::Entity::metadata, metadata_count, metadata_names, and Botcraft::AgeableMobEntity::SetMetadataValue().
| void Botcraft::HappyGhastEntity::SetStaysStill | ( | const int | stays_still | ) |
Definition at line 101 of file HappyGhastEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by HappyGhastEntity().
|
staticconstexprprotected |
Definition at line 13 of file HappyGhastEntity.hpp.
Referenced by SetMetadataValue().
|
staticconstexprprotected |
Definition at line 11 of file HappyGhastEntity.hpp.
Referenced by SetMetadataValue().
|
staticprotected |
Definition at line 12 of file HappyGhastEntity.hpp.
Referenced by SetMetadataValue().