Botcraft 1.21.4
Loading...
Searching...
No Matches
PositionSource.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 754 /* > 1.16.5 */
2#pragma once
3
4#include <memory>
5
7#if PROTOCOL_VERSION < 765 /* < 1.20.3 */
9#endif
10
11namespace ProtocolCraft
12{
13#if PROTOCOL_VERSION > 764 /* > 1.20.2 */
15 {
16 None = -1,
17 Block = 0,
18 Entity = 1,
19 };
20#endif
21
23 {
24 public:
25 virtual ~PositionSource() override {}
26
27#if PROTOCOL_VERSION > 764 /* > 1.20.2 */
28 static std::shared_ptr<PositionSource> CreatePositionSource(const PositionSourceType position_source_type);
29#else
30 static std::shared_ptr<PositionSource> CreatePositionSource(const Identifier& position_source_type);
31#endif
32 };
33}
34#endif
static std::shared_ptr< PositionSource > CreatePositionSource(const PositionSourceType position_source_type)
virtual ~PositionSource() override