Botcraft 26.2
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#if PROTOCOL_VERSION < 776 /* < 26.2 */
34 Color,
35#else
37#endif
38#if PROTOCOL_VERSION > 770 /* > 1.21.5 */
40#endif
42#if PROTOCOL_VERSION > 764 /* > 1.20.2 */
43 Style,
44#endif
45 Message,
47 NbtTag,
48 NbtPath,
53 Angle,
57 Swizzle,
58 Team,
60#if PROTOCOL_VERSION > 765 /* > 1.20.4 */
62#endif
64#if PROTOCOL_VERSION < 761 /* < 1.19.3 */
65 MobEffect,
66#endif
71#if PROTOCOL_VERSION < 761 /* < 1.19.3 */
72 ItemEnchantment,
73 EntitySummon,
74#endif
76#if PROTOCOL_VERSION > 760 /* > 1.19.2 */
78#endif
79 Time,
81#if PROTOCOL_VERSION > 760 /* > 1.19.2 */
83#endif
85#if PROTOCOL_VERSION > 760 /* > 1.19.2 */
87#endif
88#if PROTOCOL_VERSION > 769 /* > 1.21.4 */
90#endif
93#if PROTOCOL_VERSION > 761 /* > 1.19.3 */
95#endif
96#if PROTOCOL_VERSION > 765 /* > 1.20.4 */
100#endif
101#if PROTOCOL_VERSION > 770 /* > 1.21.5 */
102 Dialog,
103#endif
104 Uuid,
106 };
107#endif
108
110 {
111 public:
112 virtual ~BrigadierProperty() override;
113
114#if PROTOCOL_VERSION < 759 /* < 1.19 */
115 static std::shared_ptr<BrigadierProperty> CreateProperties(const Identifier& parser_identifier);
116#else
117 static std::shared_ptr<BrigadierProperty> CreateProperties(const BrigadierPropertyType parser_id);
118#endif
119 };
120}
121#endif
static std::shared_ptr< BrigadierProperty > CreateProperties(const BrigadierPropertyType parser_id)