LeviLamina
Loading...
Searching...
No Matches
TreeHelper.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/levelgen/feature/helpers/ITreeCanopy.h"
7#include "mc/world/level/levelgen/feature/helpers/tree_helper/AttachableDecoration.h"
8
9// auto generated forward declare list
10// clang-format off
11class Block;
12class BlockDescriptor;
13class BlockPos;
15class Random;
16namespace TreeHelper { struct AttachableDecoration; }
17namespace TreeHelper { struct TreeParams; }
18// clang-format on
19
20namespace TreeHelper {
21// functions
22// NOLINTBEGIN
23MCAPI bool isValidTreePosition(::IBlockWorldGenAPI const& target, ::BlockPos const& pos);
24
25MCAPI bool isValidTreePosition(
26 ::IBlockWorldGenAPI const& target,
27 ::BlockPos const& pos,
28 ::TreeHelper::TreeParams const& treeParams
29);
30
31MCAPI ::std::optional<::BlockPos> placeBaseBlock(
32 ::IBlockWorldGenAPI& target,
33 ::BlockPos const& pos,
34 ::std::vector<::BlockDescriptor> const& validBaseBlocks
35);
36
37MCAPI ::std::optional<::BlockPos> placeDecoratedBlock(
38 ::IBlockWorldGenAPI& target,
39 ::BlockPos const& pos,
40 ::Random& random,
41 ::Block const& block,
42 ::TreeHelper::AttachableDecoration const& decoration,
43 ::TreeHelper::AttachableDecoration::DirectionMask const& mask
44);
45
46MCAPI ::std::optional<::BlockPos> placeRadialBlockGroup(
47 ::IBlockWorldGenAPI& target,
48 ::BlockPos const& pos,
49 ::Random&,
50 ::Block const& block,
51 int radius,
52 ::ITreeCanopy::BranchSize& branchSize,
53 bool simplify,
54 ::std::vector<::BlockDescriptor> const& mayGrowThrough
55);
56
57MCAPI bool prepareSpawn(
58 ::IBlockWorldGenAPI const& target,
59 ::BlockPos const& pos,
60 int treeHeight,
61 ::std::vector<::BlockDescriptor> const& mayGrowOn,
62 ::std::vector<::BlockDescriptor> const& mayGrowThrough
63);
64// NOLINTEND
65
66} // namespace TreeHelper
Definition BlockDescriptor.h:21
Definition BlockPos.h:21
Definition Block.h:69
Definition IBlockWorldGenAPI.h:25
Definition Random.h:10
Definition AttachableDecoration.h:20
Definition TreeParams.h:17