Skip to content
LeviMC
English
AutoLightDark
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
8// auto generated forward declare list
9// clang-format off
10class Block;
11class BlockDescriptor;
12class BlockPos;
14class Random;
15namespace TreeHelper { struct TreeParams; }
16// clang-format on
17
18namespace TreeHelper {
19// functions
20// NOLINTBEGIN
21MCNAPI bool isValidTreePosition(::IBlockWorldGenAPI const& target, ::BlockPos const& pos);
22
23MCAPI bool isValidTreePosition(
24 ::IBlockWorldGenAPI const& target,
25 ::BlockPos const& pos,
26 ::TreeHelper::TreeParams const& treeParams
27);
28
29MCAPI ::std::optional<::BlockPos> placeBaseBlock(
30 ::IBlockWorldGenAPI& target,
31 ::BlockPos const& pos,
32 ::std::vector<::BlockDescriptor> const& validBaseBlocks
33);
34
35#ifdef LL_PLAT_S
36MCNAPI ::std::optional<::BlockPos> placeRadialBlockGroup(
37 ::IBlockWorldGenAPI& target,
38 ::BlockPos const& pos,
39 ::Random&,
40 ::Block const& block,
41 int radius,
42 ::ITreeCanopy::BranchSize& branchSize,
43 bool simplify,
44 ::std::vector<::BlockDescriptor> const& mayGrowThrough
45);
46#endif
47
48MCAPI bool prepareSpawn(
49 ::IBlockWorldGenAPI const& target,
50 ::BlockPos const& pos,
51 int treeHeight,
52 ::std::vector<::BlockDescriptor> const& mayGrowOn,
53 ::std::vector<::BlockDescriptor> const& mayGrowThrough
54);
55// NOLINTEND
56
57} // namespace TreeHelper
Definition BlockDescriptor.h:21
Definition BlockPos.h:14
Definition Block.h:42
Definition IBlockWorldGenAPI.h:25
Definition Random.h:10
Definition TreeParams.h:17