LeviLamina
Loading...
Searching...
No Matches
VanillaBlockStateTransformUtils.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/legacy/facing/Name.h"
7#include "mc/util/Mirror.h"
8#include "mc/util/Rotation.h"
9#include "mc/world/Direction.h"
10#include "mc/world/level/block/CoralDirection.h"
11#include "mc/world/level/block/FrontAndTop.h"
12#include "mc/world/level/block/LeverDirection.h"
13#include "mc/world/level/block/PillarAxis.h"
14#include "mc/world/level/block/PortalAxis.h"
15#include "mc/world/level/block/RailDirection.h"
16#include "mc/world/level/block/TorchFacing.h"
17#include "mc/world/level/block/WeirdoDirection.h"
18#include "mc/world/level/block/states/CommonDirection.h"
19
20// auto generated forward declare list
21// clang-format off
22class Block;
23// clang-format on
24
26public:
27 // VanillaBlockStateTransformUtils inner types declare
28 // clang-format off
29 template<typename T0> class CommonDirectionMapping;
30 // clang-format on
31
32 // VanillaBlockStateTransformUtils inner types define
33 template <typename T0>
35
36public:
37 // static functions
38 // NOLINTBEGIN
39 MCAPI static ::CommonDirection _mirror(::CommonDirection direction, ::Mirror mirror);
40
41 MCAPI static ::CommonDirection _rotate(::CommonDirection direction, ::Rotation rotation);
42
43 MCAPI static bool hasTransformableConnectionStates(::Block const& block);
44
45 MCAPI static bool hasTransformableWallStates(::Block const& block);
46
47 MCAPI static ::Block const* transformBlock(::Block const& block, ::CommonDirection targetDirection);
48
49 MCAPI static ::Block const* transformBlock(::Block const& block, ::Facing::Name targetDirection);
50
51 MCAPI static ::Block const* transformBlock(::Block const& block, ::Rotation rotation, ::Mirror mirror);
52
53 MCAPI static ::Block const* transformConnectionStates(::Block const& block, ::Rotation rotation, ::Mirror mirror);
54
55 MCAPI static ::Block const*
56 transformWallConnectionTypes(::Block const& block, ::Rotation rotation, ::Mirror mirror);
57 // NOLINTEND
58};
Definition Block.h:41
Definition VanillaBlockStateTransformUtils.h:34
Definition VanillaBlockStateTransformUtils.h:25