LeviLamina
Loading...
Searching...
No Matches
AttachableDecoration.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/util/ChanceInformation.h"
7
#include "mc/world/level/block/BlockDescriptor.h"
8
9
// auto generated forward declare list
10
// clang-format off
11
class
Block
;
12
class
BlockPos
;
13
class
IBlockWorldGenAPI
;
14
class
Random
;
15
// clang-format on
16
17
namespace
TreeHelper {
18
19
struct
AttachableDecoration
{
20
public
:
21
// AttachableDecoration inner types declare
22
// clang-format off
23
struct
DirectionMask
;
24
// clang-format on
25
26
// AttachableDecoration inner types define
27
enum class
GrowthDirection :
int
{
28
Down = 0,
29
Up = 1,
30
Out = 2,
31
};
32
33
struct
DirectionMask
{
34
public
:
35
// member variables
36
// NOLINTBEGIN
37
::ll::TypedStorage<1, 1, bool> mWest;
38
::ll::TypedStorage<1, 1, bool> mEast;
39
::ll::TypedStorage<1, 1, bool> mNorth;
40
::ll::TypedStorage<1, 1, bool> mSouth;
41
// NOLINTEND
42
};
43
44
public
:
45
// member variables
46
// NOLINTBEGIN
47
::ll::TypedStorage<4, 12, ::ChanceInformation> mDecorationChance;
48
::ll::TypedStorage<8, 184, ::BlockDescriptor> mDecorationBlock;
49
::ll::TypedStorage<4, 4, int> mNumSteps;
50
::ll::TypedStorage<4, 4, ::TreeHelper::AttachableDecoration::GrowthDirection> mDirection;
51
// NOLINTEND
52
53
public
:
54
// member functions
55
// NOLINTBEGIN
56
MCAPI
void
_placeMultiDecoration(
57
::IBlockWorldGenAPI
& target,
58
::BlockPos
const
& pos,
59
::Block
const
& block,
60
::BlockPos
const
& origin
61
)
const
;
62
63
MCAPI
void
placeDecoration(
64
::IBlockWorldGenAPI
& target,
65
::BlockPos
const
& pos,
66
::Random
& random,
67
::TreeHelper::AttachableDecoration::DirectionMask
const
& mask
68
)
const
;
69
70
MCAPI
~AttachableDecoration
();
71
// NOLINTEND
72
73
public
:
74
// destructor thunk
75
// NOLINTBEGIN
76
MCAPI
void
$dtor();
77
// NOLINTEND
78
};
79
80
}
// namespace TreeHelper
BlockPos
Definition
BlockPos.h:17
Block
Definition
Block.h:38
IBlockWorldGenAPI
Definition
IBlockWorldGenAPI.h:25
Random
Definition
Random.h:10
TreeHelper::AttachableDecoration::DirectionMask
Definition
AttachableDecoration.h:33
TreeHelper::AttachableDecoration
Definition
AttachableDecoration.h:19
src-server
mc
world
level
levelgen
feature
helpers
tree_helper
AttachableDecoration.h
Generated on Wed Nov 5 2025 13:13:32 for LeviLamina by
1.12.0