1#if PROTOCOL_VERSION > 772
31 return "copper_golem";
42 return "copper_golem";
77 return std::any_cast<int>(
metadata.at(
"copper_golem_state"));
84 metadata[
"copper_golem_state"] = copper_golem_state;
static constexpr int metadata_count
virtual void SetMetadataValue(const int index, const std::any &value) override
virtual ProtocolCraft::Json::Value Serialize() const override
static EntityType GetClassType()
static const std::array< std::string, metadata_count > metadata_names
virtual std::string GetName() const override
virtual ~CopperGolemEntity()
static std::string GetClassName()
virtual EntityType GetType() const override
void SetCopperGolemState(const int copper_golem_state)
virtual double GetWidthImpl() const override
static constexpr int hierarchy_metadata_count
virtual double GetHeightImpl() const override
int GetCopperGolemState() const
virtual ProtocolCraft::Json::Value Serialize() const
virtual void SetMetadataValue(const int index, const std::any &value)
std::shared_mutex entity_mutex
std::map< std::string, std::any > metadata
std::map< EntityAttribute::Type, EntityAttribute > attributes
Main class, basically a JsonVariant with extra utility functions it doesn't inherit JsonVariant direc...