LeviLamina
Loading...
Searching...
No Matches
Direction.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/util/Mirror.h"
7#include "mc/util/Rotation.h"
8
9class Direction {
10public:
11 // Direction inner types define
12 enum class Type : uchar {
13 South = 0,
14 West = 1,
15 North = 2,
16 East = 3,
17 Undefined = 255,
18 };
19
20public:
21 // static functions
22 // NOLINTBEGIN
23 MCAPI static ::Direction::Type convertFacingDirectionToDirection(uchar facingDirection);
24
25 MCAPI static ::Direction::Type getDirection(float xd, float zd);
26
27 MCAPI static ::Direction::Type mirrorDirection(::Mirror mirror, ::Direction::Type direction);
28
29 MCAPI static ::Direction::Type rotateDirection(::Direction::Type direction, ::Rotation rotation);
30 // NOLINTEND
31
32public:
33 // static variables
34 // NOLINTBEGIN
35 MCAPI static ::std::add_lvalue_reference_t<::Direction::Type const[]> DIRECTION_COUNTER_CLOCKWISE();
36
37 MCAPI static ::std::array<uchar, 4> const& DIRECTION_FACING();
38
39 MCAPI static ::std::add_lvalue_reference_t<::Direction::Type const[]> DIRECTION_OPPOSITE();
40
41 MCAPI static ::std::add_lvalue_reference_t<::Direction::Type const[]> FACING_DIRECTION();
42
43 MCAPI static ::std::unordered_map<::std::string, ::Direction::Type> const& FROM_STRING_MAP();
44
45 MCAPI static ::std::add_lvalue_reference_t<uchar[][6]> RELATIVE_DIRECTION_FACING();
46
47 MCAPI static ::std::add_lvalue_reference_t<int const[]> STEP_X();
48
49 MCAPI static ::std::add_lvalue_reference_t<int const[]> STEP_Z();
50
51 MCAPI static ::std::unordered_map<uint, ::std::string> const& TO_STRING_MAP();
52 // NOLINTEND
53};
Definition Direction.h:9