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 // NOLINTEND
22
23public:
24 // member functions
25 // NOLINTBEGIN
26 MCAPI void _buildHand(
27 ::BlockSource& region,
28 ::BlockPos const& pos,
29 ::Random& random,
30 ::std::vector<::BlockPos>& topDec,
31 ::std::vector<::std::pair<::BlockPos, uchar>>& sideDec,
32 ::gsl::not_null<::Block const*> block
33 ) const;
34
35 MCAPI void _buildPlantArm(
36 ::BlockSource& region,
37 ::Random& random,
38 ::BlockPos const& pos,
39 ::gsl::not_null<::Block const*> block,
40 ::std::vector<::BlockPos>& topDec,
41 ::std::vector<::std::pair<::BlockPos, uchar>>& sideDec,
42 uchar direction,
43 bool notTall
44 ) const;
45
46 MCAPI void _buildPlantLike(
47 ::BlockSource& region,
48 ::BlockPos const& pos,
49 ::Random& random,
50 ::std::vector<::BlockPos>& topDec,
51 ::std::vector<::std::pair<::BlockPos, uchar>>& sideDec,
52 ::gsl::not_null<::Block const*> block
53 ) const;
54
55 MCAPI void _buildSmallClump(
56 ::BlockSource& region,
57 ::BlockPos const& pos,
58 ::Random& random,
59 ::std::vector<::BlockPos>& topDec,
60 ::std::vector<::std::pair<::BlockPos, uchar>>& block,
61 ::gsl::not_null<::Block const*>
62 ) const;
63
64 MCAPI void _buildSpire(
65 ::BlockSource& region,
66 ::BlockPos const& pos,
67 ::Random& random,
68 ::std::vector<::BlockPos>& topDec,
69 ::std::vector<::std::pair<::BlockPos, uchar>>& sideDec,
70 ::gsl::not_null<::Block const*> block
71 ) const;
72
73 MCAPI bool _canOverwrite(::BlockSource const& region, ::BlockPos const& pos, int color) const;
74
75 MCAPI int _getColor(::Block const& block) const;
76
77 MCAPI void _placeCoral(
78 ::BlockSource& region,
79 ::BlockPos const& pos,
80 ::Random& random,
81 ::std::vector<::BlockPos>& topDec,
82 ::std::vector<::std::pair<::BlockPos, uchar>>& sideDec,
83 int color
84 ) const;
85
86 MCFOLD void _placeSideDecorations(::BlockSource& region, ::BlockPos const& pos, ::Random& random, uchar dir) const;
87
88 MCFOLD void _placeTopDecorations(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const;
89
90 MCAPI void _starCorners(
91 ::BlockSource& region,
92 ::Random& random,
93 ::BlockPos const& pos,
94 ::gsl::not_null<::Block const*> block,
95 float chance,
96 int iteration,
97 bool negateChance
98 ) const;
99
100 MCAPI void _starFormation(
101 ::BlockSource& region,
102 ::Random& random,
103 ::BlockPos const& pos,
104 ::gsl::not_null<::Block const*> block,
105 float chance,
106 int iteration,
107 bool negateChance
108 ) const;
109 // NOLINTEND
110
111public:
112 // virtual function thunks
113 // NOLINTBEGIN
114 MCAPI bool $place(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const;
115
116
117 // NOLINTEND
118
119public:
120 // vftables
121 // NOLINTBEGIN
122 MCNAPI static void** $vftable();
123 // NOLINTEND
124};
Definition BlockPos.h:21
Definition BlockSource.h:72
Definition Block.h:69
Definition CoralFeature.h:16
static MCAPI void ** $vftable()
Definition Random.h:10