LeviLamina
Loading...
Searching...
No Matches
TreeHelper.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class Block;
9class BlockPos;
11class Random;
12namespace TreeHelper { struct TreeParams; }
13// clang-format on
14
15namespace TreeHelper {
16// functions
17// NOLINTBEGIN
18MCAPI bool isValidTreePosition(
19 ::IBlockWorldGenAPI const& target,
20 ::BlockPos const& pos,
21 ::TreeHelper::TreeParams const& treeParams
22);
23
24MCAPI ::std::optional<::BlockPos> placeBaseBlock(
25 ::IBlockWorldGenAPI& target,
26 ::BlockPos const& pos,
27 ::std::vector<::BlockDescriptor> const& validBaseBlocks
28);
29
30MCAPI ::std::optional<::BlockPos> placeRadialBlockGroup(
31 ::IBlockWorldGenAPI& target,
32 ::BlockPos const& pos,
33 ::Random&,
34 ::Block const& block,
35 int radius,
36 int coreWidth,
37 bool simplify,
38 ::std::vector<::BlockDescriptor> const& mayGrowThrough
39);
40
41MCAPI bool prepareSpawn(
42 ::IBlockWorldGenAPI const& target,
43 ::BlockPos const& pos,
44 int treeHeight,
45 ::std::vector<::BlockDescriptor> const& mayGrowOn,
46 ::std::vector<::BlockDescriptor> const& mayGrowThrough
47);
48// NOLINTEND
49
50} // namespace TreeHelper
Definition BlockDescriptor.h:20
Definition BlockPos.h:17
Definition Block.h:37
Definition IBlockWorldGenAPI.h:25
Definition Random.h:10
Definition TreeParams.h:14