LeviLamina
Loading...
Searching...
No Matches
SingleBlockFeature.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/levelgen/feature/IFeature.h"
7
8// auto generated forward declare list
9// clang-format off
10class Block;
11class BlockDescriptor;
12class BlockPos;
14// clang-format on
15
17public:
18 // SingleBlockFeature inner types declare
19 // clang-format off
21 // clang-format on
22
23 // SingleBlockFeature inner types define
24 enum class CheckDirection : uchar {
25 Top = 0,
26 Bottom = 1,
27 North = 2,
28 East = 3,
29 South = 4,
30 West = 5,
31 All = 6,
32 Sides = 7,
33 Diagonal = 8,
34 Count = 9,
35 };
36
37 enum class AttachCondition : uchar {
38 MayAttachTo = 0,
39 MayNotAttachTo = 1,
40 };
41
43 public:
44 // member variables
45 // NOLINTBEGIN
48 // NOLINTEND
49
50 public:
51 // prevent constructor by default
55
56 public:
57 // member functions
58 // NOLINTBEGIN
60 // NOLINTEND
61
62 public:
63 // destructor thunk
64 // NOLINTBEGIN
65 MCFOLD void $dtor();
66 // NOLINTEND
67 };
68
69public:
70 // member variables
71 // NOLINTBEGIN
82 // NOLINTEND
83
84public:
85 // prevent constructor by default
86 SingleBlockFeature& operator=(SingleBlockFeature const&);
89
90public:
91 // virtual functions
92 // NOLINTBEGIN
93 // vIndex: 0
94 virtual ~SingleBlockFeature() /*override*/;
95
96 // vIndex: 1
97 virtual ::std::optional<::BlockPos> place(::IFeature::PlacementContext const& context) const /*override*/;
98 // NOLINTEND
99
100public:
101 // member functions
102 // NOLINTBEGIN
103 MCAPI ::Block const*
104 _mayAttach(::BlockDescriptor const& blockDescriptor, ::IBlockWorldGenAPI& target, ::BlockPos const& pos) const;
105
106 MCAPI bool _mayNotAttach(::IBlockWorldGenAPI& target, ::BlockPos const& pos) const;
107 // NOLINTEND
108
109public:
110 // destructor thunk
111 // NOLINTBEGIN
112 MCAPI void $dtor();
113 // NOLINTEND
114
115public:
116 // virtual function thunks
117 // NOLINTBEGIN
118 MCAPI ::std::optional<::BlockPos> $place(::IFeature::PlacementContext const& context) const;
119 // NOLINTEND
120
121public:
122 // vftables
123 // NOLINTBEGIN
124 MCAPI static void** $vftable();
125 // NOLINTEND
126};
Definition BlockDescriptor.h:19
Definition BlockPos.h:18
Definition Block.h:36
Definition IBlockWorldGenAPI.h:25
Definition IFeature.h:13
Definition SingleBlockFeature.h:16
Definition IFeature.h:21
Definition SingleBlockFeature.h:42
Definition context.h:5
Definition Alias.h:14