Botcraft 1.21.4
Loading...
Searching...
No Matches
BrigadierProperty.hpp
Go to the documentation of this file.
1#pragma once
2
3#if PROTOCOL_VERSION > 344 /* > 1.12.2 */
4#include <memory>
5
7#if PROTOCOL_VERSION < 759 /* < 1.19 */
9#endif
10
11namespace ProtocolCraft
12{
13#if PROTOCOL_VERSION > 758 /* > 1.18.2 */
15 {
16 None = -1,
17 Bool,
18 Float,
19 Double,
20 Integer,
21 Long,
22 String,
23 Entity,
27 Vec3,
28 Vec2,
33 Color,
35#if PROTOCOL_VERSION > 764 /* > 1.20.2 */
36 Style,
37#endif
38 Message,
40 NbtTag,
41 NbtPath,
46 Angle,
50 Swizzle,
51 Team,
53#if PROTOCOL_VERSION > 765 /* > 1.20.4 */
55#endif
57#if PROTOCOL_VERSION < 761 /* < 1.19.3 */
58 MobEffect,
59#endif
64#if PROTOCOL_VERSION < 761 /* < 1.19.3 */
65 ItemEnchantment,
66 EntitySummon,
67#endif
69#if PROTOCOL_VERSION > 760 /* > 1.19.2 */
71#endif
72 Time,
74#if PROTOCOL_VERSION > 760 /* > 1.19.2 */
76#endif
78#if PROTOCOL_VERSION > 760 /* > 1.19.2 */
80#endif
83#if PROTOCOL_VERSION > 761 /* > 1.19.3 */
85#endif
86#if PROTOCOL_VERSION > 765 /* > 1.20.4 */
90#endif
91 Uuid,
93 };
94#endif
95
97 {
98 public:
99 virtual ~BrigadierProperty() override;
100
101#if PROTOCOL_VERSION < 759 /* < 1.19 */
102 static std::shared_ptr<BrigadierProperty> CreateProperties(const Identifier& parser_identifier);
103#else
104 static std::shared_ptr<BrigadierProperty> CreateProperties(const BrigadierPropertyType parser_id);
105#endif
106 };
107}
108#endif
static std::shared_ptr< BrigadierProperty > CreateProperties(const BrigadierPropertyType parser_id)