LeviLamina
Loading...
Searching...
No Matches
CoralFeature.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/levelgen/feature/Feature.h"
7
8// auto generated forward declare list
9// clang-format off
10class Block;
11class BlockPos;
12class BlockSource;
13class Random;
14// clang-format on
15
16class CoralFeature : public ::Feature {
17public:
18 // virtual functions
19 // NOLINTBEGIN
20 virtual bool place(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const /*override*/;
21
22 virtual ~CoralFeature() /*override*/ = default;
23 // NOLINTEND
24
25public:
26 // member functions
27 // NOLINTBEGIN
28 MCAPI void _buildHand(
29 ::BlockSource& region,
30 ::BlockPos const& pos,
31 ::Random& random,
32 ::std::vector<::BlockPos>& topDec,
33 ::std::vector<::std::pair<::BlockPos, uchar>>& sideDec,
34 ::gsl::not_null<::Block const*> block
35 ) const;
36
37 MCAPI void _buildPlantArm(
38 ::BlockSource& region,
39 ::Random& random,
40 ::BlockPos const& pos,
41 ::gsl::not_null<::Block const*> block,
42 ::std::vector<::BlockPos>& topDec,
43 ::std::vector<::std::pair<::BlockPos, uchar>>& sideDec,
44 uchar direction,
45 bool notTall
46 ) const;
47
48 MCAPI void _buildPlantLike(
49 ::BlockSource& region,
50 ::BlockPos const& pos,
51 ::Random& random,
52 ::std::vector<::BlockPos>& topDec,
53 ::std::vector<::std::pair<::BlockPos, uchar>>& sideDec,
54 ::gsl::not_null<::Block const*> block
55 ) const;
56
57 MCAPI void _buildSmallClump(
58 ::BlockSource& region,
59 ::BlockPos const& pos,
60 ::Random& random,
61 ::std::vector<::BlockPos>& topDec,
62 ::std::vector<::std::pair<::BlockPos, uchar>>&,
63 ::gsl::not_null<::Block const*> block
64 ) const;
65
66 MCAPI void _buildSpire(
67 ::BlockSource& region,
68 ::BlockPos const& pos,
69 ::Random& random,
70 ::std::vector<::BlockPos>& topDec,
71 ::std::vector<::std::pair<::BlockPos, uchar>>& sideDec,
72 ::gsl::not_null<::Block const*> block
73 ) const;
74
75 MCAPI int _getColor(::Block const& block) const;
76
77 MCFOLD void _placeSideDecorations(::BlockSource& region, ::BlockPos const& pos, ::Random& random, uchar dir) const;
78
79 MCAPI bool
80 _setBlock(::BlockSource& region, ::BlockPos const& pos, ::gsl::not_null<::Block const*> block, int color) const;
81
82 MCAPI bool _setBlockOnSolid(
83 ::BlockSource& region,
84 ::BlockPos const& pos,
85 ::gsl::not_null<::Block const*> block,
86 int color
87 ) const;
88
89 MCAPI void _starCorners(
90 ::BlockSource& region,
91 ::Random& random,
92 ::BlockPos const& pos,
93 ::gsl::not_null<::Block const*> block,
94 float chance,
95 int iteration,
96 bool negateChance
97 ) const;
98
99 MCAPI void _starFormation(
100 ::BlockSource& region,
101 ::Random& random,
102 ::BlockPos const& pos,
103 ::gsl::not_null<::Block const*> block,
104 float chance,
105 int iteration,
106 bool negateChance
107 ) const;
108 // NOLINTEND
109
110public:
111 // virtual function thunks
112 // NOLINTBEGIN
113 MCAPI bool $place(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const;
114
115
116 // NOLINTEND
117
118public:
119 // vftables
120 // NOLINTBEGIN
121 MCNAPI static void** $vftable();
122 // NOLINTEND
123};
Definition BlockPos.h:19
Definition BlockSource.h:71
Definition Block.h:43
Definition CoralFeature.h:16
static MCAPI void ** $vftable()
Definition Feature.h:18
Definition Random.h:10