Botcraft 1.21.4
Loading...
Searching...
No Matches
MonsterEntity.cpp
Go to the documentation of this file.
2
3namespace Botcraft
4{
6 {
7 // Initialize all attributes with default values
9 }
10
15
17 {
19
20 output["attributes"]["attack_damage"] = GetAttributeAttackDamageValue();
21
22 return output;
23 }
24
26 {
27 return true;
28 }
29
30
32 {
33 std::shared_lock<std::shared_mutex> lock(entity_mutex);
35 }
36
37}
virtual ProtocolCraft::Json::Value Serialize() const
Definition Entity.cpp:1095
std::shared_mutex entity_mutex
Definition Entity.hpp:253
std::map< EntityAttribute::Type, EntityAttribute > attributes
virtual bool IsMonster() const override
virtual ProtocolCraft::Json::Value Serialize() const override
double GetAttributeAttackDamageValue() const
Main class, basically a JsonVariant with extra utility functions it doesn't inherit JsonVariant direc...
Definition Json.hpp:45