Botcraft 26.3
Loading...
Searching...
No Matches
AbstractFishEntity.hpp
Go to the documentation of this file.
1#pragma once
2
4
5namespace Botcraft
6{
8 {
9 private:
10 static constexpr std::array metadata_names{
11 std::string_view("from_bucket"),
12 };
13 protected:
14 static constexpr int metadata_count = static_cast<int>(metadata_names.size());
16
17 public:
19 virtual ~AbstractFishEntity();
20
21 virtual bool IsAbstractFish() const override;
22
23 virtual ProtocolCraft::Json::Value Serialize() const override;
24
25 // Metadata stuff
26 bool GetFromBucket() const;
27
28 void SetFromBucket(const bool from_bucket);
29
30 };
31}
virtual bool IsAbstractFish() const override
static constexpr int metadata_count
static constexpr int hierarchy_metadata_count
virtual ProtocolCraft::Json::Value Serialize() const override
static constexpr std::array metadata_names
void SetFromBucket(const bool from_bucket)
static constexpr int metadata_count
static constexpr int hierarchy_metadata_count
Main class, basically a JsonVariant with extra utility functions it doesn't inherit JsonVariant direc...
Definition Json.hpp:45