Botcraft 1.21.4
Loading...
Searching...
No Matches
PigZombieEntity.cpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION < 579 /* < 1.16 */
3
4namespace Botcraft
5{
6 PigZombieEntity::PigZombieEntity()
7 {
8 // Initialize all attributes with default values
10 attributes.insert({ EntityAttribute::Type::MovementSpeed, EntityAttribute(EntityAttribute::Type::MovementSpeed, 0.23) });
11 attributes.insert({ EntityAttribute::Type::AttackDamage, EntityAttribute(EntityAttribute::Type::AttackDamage, 5.0) });
12 }
13
14 PigZombieEntity::~PigZombieEntity()
15 {
16
17 }
18
19
20 std::string PigZombieEntity::GetName() const
21 {
22 return "zombie_pigman";
23 }
24
25 EntityType PigZombieEntity::GetType() const
26 {
27 return EntityType::PigZombie;
28 }
29
30
31 std::string PigZombieEntity::GetClassName()
32 {
33 return "zombie_pigman";
34 }
35
36 EntityType PigZombieEntity::GetClassType()
37 {
38 return EntityType::PigZombie;
39 }
40
41
42 double PigZombieEntity::GetWidthImpl() const
43 {
44 return 0.6;
45 }
46
47 double PigZombieEntity::GetHeightImpl() const
48 {
49 return 1.95;
50 }
51
52}
53#endif