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