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
60 _buildSmallClump(::BlockSource& region, ::BlockPos const& pos, ::Random& random, ::std::vector<::BlockPos>& topDec, ::std::vector<::std::pair<::BlockPos, uchar>>& block, ::gsl::not_null<::Block const*>)
61 const;
62
63 MCAPI void _buildSpire(
64 ::BlockSource& region,
65 ::BlockPos const& pos,
66 ::Random& random,
67 ::std::vector<::BlockPos>& topDec,
68 ::std::vector<::std::pair<::BlockPos, uchar>>& sideDec,
69 ::gsl::not_null<::Block const*> block
70 ) const;
71
72 MCAPI bool _canOverwrite(::BlockSource const& region, ::BlockPos const& pos, int color) const;
73
74 MCAPI int _getColor(::Block const& block) const;
75
76 MCFOLD void _placeSideDecorations(::BlockSource& region, ::BlockPos const& pos, ::Random& random, uchar dir) const;
77
78 MCFOLD void _placeTopDecorations(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const;
79
80 MCAPI bool
81 _setBlock(::BlockSource& region, ::BlockPos const& pos, ::gsl::not_null<::Block const*> block, int color) const;
82
83 MCAPI bool
84 _setBlockOnSolid(::BlockSource& region, ::BlockPos const& pos, ::gsl::not_null<::Block const*> block, int color)
85 const;
86
87 MCAPI void _starCorners(
88 ::BlockSource& region,
89 ::Random& random,
90 ::BlockPos const& pos,
91 ::gsl::not_null<::Block const*> block,
92 float iteration,
93 int chance,
94 bool negateChance
95 ) const;
96
97 MCAPI void _starFormation(
98 ::BlockSource& region,
99 ::Random& random,
100 ::BlockPos const& pos,
101 ::gsl::not_null<::Block const*> block,
102 float chance,
103 int iteration,
104 bool negateChance
105 ) const;
106 // NOLINTEND
107
108public:
109 // destructor thunk
110 // NOLINTBEGIN
111
112 // NOLINTEND
113
114public:
115 // virtual function thunks
116 // NOLINTBEGIN
117 MCAPI bool $place(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const;
118 // NOLINTEND
119
120public:
121 // vftables
122 // NOLINTBEGIN
123 MCAPI static void** $vftable();
124 // NOLINTEND
125};
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:36
Definition CoralFeature.h:16
Definition Feature.h:18
Definition Random.h:16