Botcraft 1.21.5
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
81#if PROTOCOL_VERSION > 769 /* > 1.21.4 */
83#endif
86#if PROTOCOL_VERSION > 761 /* > 1.19.3 */
88#endif
89#if PROTOCOL_VERSION > 765 /* > 1.20.4 */
93#endif
94 Uuid,
96 };
97#endif
98
100 {
101 public:
102 virtual ~BrigadierProperty() override;
103
104#if PROTOCOL_VERSION < 759 /* < 1.19 */
105 static std::shared_ptr<BrigadierProperty> CreateProperties(const Identifier& parser_identifier);
106#else
107 static std::shared_ptr<BrigadierProperty> CreateProperties(const BrigadierPropertyType parser_id);
108#endif
109 };
110}
111#endif
static std::shared_ptr< BrigadierProperty > CreateProperties(const BrigadierPropertyType parser_id)