1#if PROTOCOL_VERSION < 770
4#if PROTOCOL_VERSION > 578
13#if PROTOCOL_VERSION > 578
14 class ThrownPotionEntity :
public ThrowableItemProjectileEntity
16 class ThrownPotionEntity :
public ThrowableProjectileEntity
19#if PROTOCOL_VERSION < 579
21 static constexpr std::array metadata_names{
22 std::string_view(
"data_item_stack"),
26#if PROTOCOL_VERSION > 578
27 static constexpr int metadata_count = 0;
28 static constexpr int hierarchy_metadata_count = ThrowableItemProjectileEntity::metadata_count + ThrowableItemProjectileEntity::hierarchy_metadata_count;
30 static constexpr int metadata_count =
static_cast<int>(metadata_names.size());
31 static constexpr int hierarchy_metadata_count = ThrowableProjectileEntity::metadata_count + ThrowableProjectileEntity::hierarchy_metadata_count;
35 virtual ~ThrownPotionEntity();
38 virtual std::string GetName()
const override;
42 static std::string GetClassName();
46#if PROTOCOL_VERSION < 579
56 virtual double GetWidthImpl()
const override;
57 virtual double GetHeightImpl()
const override;
Main class, basically a JsonVariant with extra utility functions it doesn't inherit JsonVariant direc...