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;
12// clang-format on
13
14namespace TreeHelper {
15// functions
16// NOLINTBEGIN
17MCNAPI bool isValidTreePosition(::IBlockWorldGenAPI const& target, ::BlockPos const& pos);
18
19MCNAPI ::std::optional<::BlockPos> placeBaseBlock(
20 ::IBlockWorldGenAPI& target,
21 ::BlockPos const& pos,
22 ::std::vector<::BlockDescriptor> const& validBaseBlocks
23);
24
25MCNAPI ::std::optional<::BlockPos> placeRadialBlockGroup(
26 ::IBlockWorldGenAPI& target,
27 ::BlockPos const& pos,
28 ::Random&,
29 ::Block const& block,
30 int radius,
31 int coreWidth,
32 bool simplify,
33 ::std::vector<::BlockDescriptor> const& mayGrowThrough
34);
35
36MCNAPI bool prepareSpawn(
37 ::IBlockWorldGenAPI const& target,
38 ::BlockPos const& pos,
39 int treeHeight,
40 ::std::vector<::BlockDescriptor> const& mayGrowOn,
41 ::std::vector<::BlockDescriptor> const& mayGrowThrough
42);
43// NOLINTEND
44
45} // namespace TreeHelper
Definition BlockDescriptor.h:20
Definition BlockPos.h:18
Definition Block.h:38
Definition IBlockWorldGenAPI.h:25
Definition Random.h:11