Botcraft 26.3
Loading...
Searching...
No Matches
AnimalEntity.cpp
Go to the documentation of this file.
2
3namespace Botcraft
4{
6 {
7 // Initialize all attributes with default values
8#if PROTOCOL_VERSION > 767 /* > 1.21.1 */
10#endif
11
12 }
13
18
20 {
21 return true;
22 }
23
24#if PROTOCOL_VERSION > 767 /* > 1.21.1 */
26 {
28
29 output["attributes"]["tempt_range"] = GetAttributeTemptRangeValue();
30
31 return output;
32 }
33#endif
34
35
36#if PROTOCOL_VERSION > 767 /* > 1.21.1 */
38 {
39 std::shared_lock<std::shared_mutex> lock(entity_mutex);
41 }
42#endif
43
44}
virtual ProtocolCraft::Json::Value Serialize() const override
double GetAttributeTemptRangeValue() const
virtual bool IsAnimal() const override
virtual ProtocolCraft::Json::Value Serialize() const override
std::shared_mutex entity_mutex
Definition Entity.hpp:320
std::map< EntityAttribute::Type, EntityAttribute > attributes
Main class, basically a JsonVariant with extra utility functions it doesn't inherit JsonVariant direc...
Definition Json.hpp:45