|
Botcraft 1.21.10
|
#include <AbstractBoatEntity.hpp>
Public Member Functions | |
| AbstractBoatEntity () | |
| virtual | ~AbstractBoatEntity () |
| virtual bool | IsAbstractBoat () const override |
| virtual ProtocolCraft::Json::Value | Serialize () const override |
| virtual void | SetMetadataValue (const int index, const std::any &value) override |
| bool | GetDataIdPaddleLeft () const |
| bool | GetDataIdPaddleRight () const |
| int | GetDataIdBubbleTime () const |
| void | SetDataIdPaddleLeft (const bool data_id_paddle_left) |
| void | SetDataIdPaddleRight (const bool data_id_paddle_right) |
| void | SetDataIdBubbleTime (const int data_id_bubble_time) |
Public Member Functions inherited from Botcraft::VehicleEntity | |
| VehicleEntity () | |
| virtual | ~VehicleEntity () |
| virtual bool | IsVehicle () const override |
| int | GetDataIdHurt () const |
| int | GetDataIdHurtdir () const |
| float | GetDataIdDamage () const |
| void | SetDataIdHurt (const int data_id_hurt) |
| void | SetDataIdHurtdir (const int data_id_hurtdir) |
| void | SetDataIdDamage (const float data_id_damage) |
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 | IsDisplay () 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 | 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 = 3 |
| static const std::array< std::string, metadata_count > | metadata_names |
| static constexpr int | hierarchy_metadata_count = VehicleEntity::metadata_count + VehicleEntity::hierarchy_metadata_count |
Static Protected Attributes inherited from Botcraft::VehicleEntity | |
| static constexpr int | metadata_count = 3 |
| 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 7 of file AbstractBoatEntity.hpp.
| Botcraft::AbstractBoatEntity::AbstractBoatEntity | ( | ) |
Definition at line 14 of file AbstractBoatEntity.cpp.
References SetDataIdBubbleTime(), SetDataIdPaddleLeft(), and SetDataIdPaddleRight().
|
virtual |
Definition at line 22 of file AbstractBoatEntity.cpp.
| int Botcraft::AbstractBoatEntity::GetDataIdBubbleTime | ( | ) | const |
Definition at line 72 of file AbstractBoatEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by Serialize(), and Botcraft::BoatEntity::Serialize().
| bool Botcraft::AbstractBoatEntity::GetDataIdPaddleLeft | ( | ) | const |
Definition at line 60 of file AbstractBoatEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by Serialize(), and Botcraft::BoatEntity::Serialize().
| bool Botcraft::AbstractBoatEntity::GetDataIdPaddleRight | ( | ) | const |
Definition at line 66 of file AbstractBoatEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by Serialize(), and Botcraft::BoatEntity::Serialize().
|
overridevirtual |
Reimplemented from Botcraft::Entity.
Definition at line 28 of file AbstractBoatEntity.cpp.
|
overridevirtual |
Reimplemented from Botcraft::VehicleEntity.
Reimplemented in Botcraft::BoatEntity, Botcraft::ChestBoatEntity, Botcraft::ChestRaftEntity, and Botcraft::RaftEntity.
Definition at line 34 of file AbstractBoatEntity.cpp.
References GetDataIdBubbleTime(), GetDataIdPaddleLeft(), GetDataIdPaddleRight(), and Botcraft::VehicleEntity::Serialize().
Referenced by Botcraft::BoatEntity::Serialize(), and Botcraft::RaftEntity::Serialize().
| void Botcraft::AbstractBoatEntity::SetDataIdBubbleTime | ( | const int | data_id_bubble_time | ) |
Definition at line 91 of file AbstractBoatEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by AbstractBoatEntity(), and Botcraft::BoatEntity::BoatEntity().
| void Botcraft::AbstractBoatEntity::SetDataIdPaddleLeft | ( | const bool | data_id_paddle_left | ) |
Definition at line 79 of file AbstractBoatEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by AbstractBoatEntity(), and Botcraft::BoatEntity::BoatEntity().
| void Botcraft::AbstractBoatEntity::SetDataIdPaddleRight | ( | const bool | data_id_paddle_right | ) |
Definition at line 85 of file AbstractBoatEntity.cpp.
References Botcraft::Entity::entity_mutex, and Botcraft::Entity::metadata.
Referenced by AbstractBoatEntity(), and Botcraft::BoatEntity::BoatEntity().
|
overridevirtual |
Reimplemented from Botcraft::VehicleEntity.
Definition at line 47 of file AbstractBoatEntity.cpp.
References Botcraft::Entity::entity_mutex, hierarchy_metadata_count, Botcraft::Entity::metadata, metadata_count, metadata_names, and Botcraft::VehicleEntity::SetMetadataValue().
|
staticconstexprprotected |
Definition at line 12 of file AbstractBoatEntity.hpp.
Referenced by SetMetadataValue().
|
staticconstexprprotected |
Definition at line 10 of file AbstractBoatEntity.hpp.
Referenced by SetMetadataValue().
|
staticprotected |
Definition at line 11 of file AbstractBoatEntity.hpp.
Referenced by SetMetadataValue().