Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
SaplingUtils.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class Block;
8class BlockPos;
9class BlockSource;
10class Random;
11// clang-format on
12
13namespace SaplingUtils {
14// functions
15// NOLINTBEGIN
16MCNAPI void setBlockNoUpdate(
17 ::BlockSource& region,
18 ::BlockPos const& pos,
19 ::std::optional<::BlockPos> const& quadrupleSaplingOffset,
20 ::Block const& block
21);
22
23MCNAPI bool tryAgeSapling(::BlockSource& region, ::BlockPos const& pos);
24
25MCAPI bool tryPlaceFeature(
26 ::BlockSource& region,
27 ::BlockPos const& pos,
28 ::std::optional<::BlockPos> const& quadrupleSaplingOffset,
29 ::std::string const& featureName,
30 ::Random& random
31);
32
33MCAPI bool tryPlaceTree(
34 ::BlockSource& region,
35 ::BlockPos const& pos,
36 ::Random& random,
37 ::std::optional<::std::string> const& singleSaplingTree,
38 ::std::optional<::std::string> const& singleSaplingTreeWithBeehive,
39 ::std::optional<::std::string> const& quadrupleSaplingTree,
40 ::std::optional<::BlockPos> const& quadrupleSaplingOffset
41);
42// NOLINTEND
43
44} // namespace SaplingUtils
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition Block.h:42
Definition Random.h:10