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 MCFOLD void _placeTopDecorations(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const;
80
81 MCAPI bool
82 _setBlock(::BlockSource& region, ::BlockPos const& pos, ::gsl::not_null<::Block const*> block, int color) const;
83
84 MCAPI bool _setBlockOnSolid(
85 ::BlockSource& region,
86 ::BlockPos const& pos,
87 ::gsl::not_null<::Block const*> block,
88 int color
89 ) const;
90
91 MCAPI void _starCorners(
92 ::BlockSource& region,
93 ::Random& random,
94 ::BlockPos const& pos,
95 ::gsl::not_null<::Block const*> block,
96 float chance,
97 int iteration,
98 bool negateChance
99 ) const;
100
101 MCAPI void _starFormation(
102 ::BlockSource& region,
103 ::Random& random,
104 ::BlockPos const& pos,
105 ::gsl::not_null<::Block const*> block,
106 float chance,
107 int iteration,
108 bool negateChance
109 ) const;
110 // NOLINTEND
111
112public:
113 // virtual function thunks
114 // NOLINTBEGIN
115 MCAPI bool $place(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const;
116
117
118 // NOLINTEND
119
120public:
121 // vftables
122 // NOLINTBEGIN
123 MCNAPI static void** $vftable();
124 // NOLINTEND
125};
Definition BlockPos.h:19
Definition BlockSource.h:68
Definition Block.h:43
Definition CoralFeature.h:16
static MCAPI void ** $vftable()
Definition Feature.h:18
Definition Random.h:10