|
Botcraft 1.21.10
|
#include <DisplayEntity.hpp>
Public Member Functions | |
| DisplayEntity () | |
| virtual | ~DisplayEntity () |
| virtual bool | IsDisplay () const override |
| virtual ProtocolCraft::Json::Value | Serialize () const override |
| virtual void | SetMetadataValue (const int index, const std::any &value) override |
| int | GetDataTransformationInterpolationStartDeltaTicksId () const |
| int | GetDataTransformationInterpolationDurationId () const |
| int | GetDataPosRotInterpolationDurationId () const |
| Vector3< float > | GetDataTranslationId () const |
| Vector3< float > | GetDataScaleId () const |
| std::array< float, 4 > | GetDataLeftRotationId () const |
| std::array< float, 4 > | GetDataRightRotationId () const |
| char | GetDataBillboardRenderConstraintsId () const |
| int | GetDataBrightnessOverrideId () const |
| float | GetDataViewRangeId () const |
| float | GetDataShadowRadiusId () const |
| float | GetDataShadowStrengthId () const |
| float | GetDataWidthId () const |
| float | GetDataHeightId () const |
| int | GetDataGlowColorOverrideId () const |
| void | SetDataTransformationInterpolationStartDeltaTicksId (const int data_transformation_interpolation_start_delta_ticks_id) |
| void | SetDataTransformationInterpolationDurationId (const int data_transformation_interpolation_duration_id) |
| void | SetDataPosRotInterpolationDurationId (const int data_pos_rot_interpolation_duration_id) |
| void | SetDataTranslationId (const Vector3< float > data_translation_id) |
| void | SetDataScaleId (const Vector3< float > data_scale_id) |
| void | SetDataLeftRotationId (const std::array< float, 4 > data_left_rotation_id) |
| void | SetDataRightRotationId (const std::array< float, 4 > data_right_rotation_id) |
| void | SetDataBillboardRenderConstraintsId (const char data_billboard_render_constraints_id) |
| void | SetDataBrightnessOverrideId (const int data_brightness_override_id) |
| void | SetDataViewRangeId (const float data_view_range_id) |
| void | SetDataShadowRadiusId (const float data_shadow_radius_id) |
| void | SetDataShadowStrengthId (const float data_shadow_strength_id) |
| void | SetDataWidthId (const float data_width_id) |
| void | SetDataHeightId (const float data_height_id) |
| void | SetDataGlowColorOverrideId (const int data_glow_color_override_id) |
Public Member Functions inherited from Botcraft::Entity | |
| 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 | 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 | IsLivingEntity () const |
| virtual bool | IsAbstractArrow () const |
| virtual bool | IsAnimal () const |
| virtual bool | IsAmbientCreature () const |
| virtual bool | IsMonster () 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 |
Static Protected Attributes | |
| static constexpr int | metadata_count = 15 |
| 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 Member Functions inherited from Botcraft::Entity | |
| static std::shared_ptr< Entity > | CreateEntity (const EntityType type) |
Protected Member Functions inherited from Botcraft::Entity | |
| 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 |
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 DisplayEntity.hpp.
| Botcraft::DisplayEntity::DisplayEntity | ( | ) |
Definition at line 31 of file DisplayEntity.cpp.
References SetDataBillboardRenderConstraintsId(), SetDataBrightnessOverrideId(), SetDataGlowColorOverrideId(), SetDataHeightId(), SetDataLeftRotationId(), SetDataPosRotInterpolationDurationId(), SetDataRightRotationId(), SetDataScaleId(), SetDataShadowRadiusId(), SetDataShadowStrengthId(), SetDataTransformationInterpolationDurationId(), SetDataTransformationInterpolationStartDeltaTicksId(), SetDataTranslationId(), SetDataViewRangeId(), and SetDataWidthId().
|
virtual |
Definition at line 56 of file DisplayEntity.cpp.
| char Botcraft::DisplayEntity::GetDataBillboardRenderConstraintsId | ( | ) | const |
Definition at line 167 of file DisplayEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by Serialize().
| int Botcraft::DisplayEntity::GetDataBrightnessOverrideId | ( | ) | const |
Definition at line 173 of file DisplayEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by Serialize().
| int Botcraft::DisplayEntity::GetDataGlowColorOverrideId | ( | ) | const |
Definition at line 209 of file DisplayEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by Serialize().
| float Botcraft::DisplayEntity::GetDataHeightId | ( | ) | const |
Definition at line 203 of file DisplayEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by Serialize().
| std::array< float, 4 > Botcraft::DisplayEntity::GetDataLeftRotationId | ( | ) | const |
Definition at line 155 of file DisplayEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by Serialize().
| int Botcraft::DisplayEntity::GetDataPosRotInterpolationDurationId | ( | ) | const |
Definition at line 136 of file DisplayEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by Serialize().
| std::array< float, 4 > Botcraft::DisplayEntity::GetDataRightRotationId | ( | ) | const |
Definition at line 161 of file DisplayEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by Serialize().
| Vector3< float > Botcraft::DisplayEntity::GetDataScaleId | ( | ) | const |
Definition at line 149 of file DisplayEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by Serialize().
| float Botcraft::DisplayEntity::GetDataShadowRadiusId | ( | ) | const |
Definition at line 185 of file DisplayEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by Serialize().
| float Botcraft::DisplayEntity::GetDataShadowStrengthId | ( | ) | const |
Definition at line 191 of file DisplayEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by Serialize().
| int Botcraft::DisplayEntity::GetDataTransformationInterpolationDurationId | ( | ) | const |
Definition at line 130 of file DisplayEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by Serialize().
| int Botcraft::DisplayEntity::GetDataTransformationInterpolationStartDeltaTicksId | ( | ) | const |
Definition at line 124 of file DisplayEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by Serialize().
| Vector3< float > Botcraft::DisplayEntity::GetDataTranslationId | ( | ) | const |
Definition at line 143 of file DisplayEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by Serialize().
| float Botcraft::DisplayEntity::GetDataViewRangeId | ( | ) | const |
Definition at line 179 of file DisplayEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by Serialize().
| float Botcraft::DisplayEntity::GetDataWidthId | ( | ) | const |
Definition at line 197 of file DisplayEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by Serialize().
|
overridevirtual |
Reimplemented from Botcraft::Entity.
Definition at line 62 of file DisplayEntity.cpp.
|
overridevirtual |
Reimplemented from Botcraft::Entity.
Reimplemented in Botcraft::DisplayBlockDisplayEntity, Botcraft::DisplayItemDisplayEntity, and Botcraft::DisplayTextDisplayEntity.
Definition at line 68 of file DisplayEntity.cpp.
References GetDataBillboardRenderConstraintsId(), GetDataBrightnessOverrideId(), GetDataGlowColorOverrideId(), GetDataHeightId(), GetDataLeftRotationId(), GetDataPosRotInterpolationDurationId(), GetDataRightRotationId(), GetDataScaleId(), GetDataShadowRadiusId(), GetDataShadowStrengthId(), GetDataTransformationInterpolationDurationId(), GetDataTransformationInterpolationStartDeltaTicksId(), GetDataTranslationId(), GetDataViewRangeId(), GetDataWidthId(), and Botcraft::Entity::Serialize().
Referenced by Botcraft::DisplayBlockDisplayEntity::Serialize(), Botcraft::DisplayItemDisplayEntity::Serialize(), and Botcraft::DisplayTextDisplayEntity::Serialize().
| void Botcraft::DisplayEntity::SetDataBillboardRenderConstraintsId | ( | const char | data_billboard_render_constraints_id | ) |
Definition at line 272 of file DisplayEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by DisplayEntity().
| void Botcraft::DisplayEntity::SetDataBrightnessOverrideId | ( | const int | data_brightness_override_id | ) |
Definition at line 278 of file DisplayEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by DisplayEntity().
| void Botcraft::DisplayEntity::SetDataGlowColorOverrideId | ( | const int | data_glow_color_override_id | ) |
Definition at line 314 of file DisplayEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by DisplayEntity().
| void Botcraft::DisplayEntity::SetDataHeightId | ( | const float | data_height_id | ) |
Definition at line 308 of file DisplayEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by DisplayEntity().
| void Botcraft::DisplayEntity::SetDataLeftRotationId | ( | const std::array< float, 4 > | data_left_rotation_id | ) |
Definition at line 260 of file DisplayEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by DisplayEntity().
| void Botcraft::DisplayEntity::SetDataPosRotInterpolationDurationId | ( | const int | data_pos_rot_interpolation_duration_id | ) |
Definition at line 241 of file DisplayEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by DisplayEntity().
| void Botcraft::DisplayEntity::SetDataRightRotationId | ( | const std::array< float, 4 > | data_right_rotation_id | ) |
Definition at line 266 of file DisplayEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by DisplayEntity().
| void Botcraft::DisplayEntity::SetDataScaleId | ( | const Vector3< float > | data_scale_id | ) |
Definition at line 254 of file DisplayEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by DisplayEntity().
| void Botcraft::DisplayEntity::SetDataShadowRadiusId | ( | const float | data_shadow_radius_id | ) |
Definition at line 290 of file DisplayEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by DisplayEntity().
| void Botcraft::DisplayEntity::SetDataShadowStrengthId | ( | const float | data_shadow_strength_id | ) |
Definition at line 296 of file DisplayEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by DisplayEntity().
| void Botcraft::DisplayEntity::SetDataTransformationInterpolationDurationId | ( | const int | data_transformation_interpolation_duration_id | ) |
Definition at line 235 of file DisplayEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by DisplayEntity().
| void Botcraft::DisplayEntity::SetDataTransformationInterpolationStartDeltaTicksId | ( | const int | data_transformation_interpolation_start_delta_ticks_id | ) |
Definition at line 229 of file DisplayEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by DisplayEntity().
| void Botcraft::DisplayEntity::SetDataTranslationId | ( | const Vector3< float > | data_translation_id | ) |
Definition at line 248 of file DisplayEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by DisplayEntity().
| void Botcraft::DisplayEntity::SetDataViewRangeId | ( | const float | data_view_range_id | ) |
Definition at line 284 of file DisplayEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by DisplayEntity().
| void Botcraft::DisplayEntity::SetDataWidthId | ( | const float | data_width_id | ) |
Definition at line 302 of file DisplayEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by DisplayEntity().
|
overridevirtual |
Reimplemented from Botcraft::Entity.
Reimplemented in Botcraft::DisplayBlockDisplayEntity, Botcraft::DisplayItemDisplayEntity, and Botcraft::DisplayTextDisplayEntity.
Definition at line 97 of file DisplayEntity.cpp.
References Botcraft::Entity::entity_mutex, hierarchy_metadata_count, Botcraft::Entity::metadata, metadata_count, metadata_names, and Botcraft::Entity::SetMetadataValue().
Referenced by Botcraft::DisplayBlockDisplayEntity::SetMetadataValue(), Botcraft::DisplayItemDisplayEntity::SetMetadataValue(), and Botcraft::DisplayTextDisplayEntity::SetMetadataValue().
|
staticconstexprprotected |
Definition at line 17 of file DisplayEntity.hpp.
Referenced by SetMetadataValue().
|
staticconstexprprotected |
Definition at line 14 of file DisplayEntity.hpp.
Referenced by SetMetadataValue().
|
staticprotected |
Definition at line 16 of file DisplayEntity.hpp.
Referenced by SetMetadataValue().