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 _buildPlantArm(
27 ::BlockSource& region,
28 ::Random& random,
29 ::BlockPos const& pos,
30 ::gsl::not_null<::Block const*> block,
31 ::std::vector<::BlockPos>& topDec,
32 ::std::vector<::std::pair<::BlockPos, uchar>>& sideDec,
33 uchar direction,
34 bool notTall
35 ) const;
36
37 MCAPI void _placeCoral(
38 ::BlockSource& region,
39 ::BlockPos const& pos,
40 ::Random& random,
41 ::std::vector<::BlockPos>& topDec,
42 ::std::vector<::std::pair<::BlockPos, uchar>>& sideDec,
43 int color
44 ) const;
45
46 MCAPI void _starFormation(
47 ::BlockSource& region,
48 ::Random& random,
49 ::BlockPos const& pos,
50 ::gsl::not_null<::Block const*> block,
51 float chance,
52 int iteration,
53 bool negateChance
54 ) const;
55 // NOLINTEND
56
57public:
58 // static functions
59 // NOLINTBEGIN
60 MCAPI static bool _canOverwrite(::BlockSource const& region, ::BlockPos const& pos, int color);
61
62 MCAPI static int _getColor(::Block const& block);
63 // NOLINTEND
64
65public:
66 // virtual function thunks
67 // NOLINTBEGIN
68 MCAPI bool $place(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const;
69
70
71 // NOLINTEND
72};
Definition BlockPos.h:17
Definition BlockSource.h:71
Definition Block.h:42
Definition CoralFeature.h:16
Definition Feature.h:18
Definition Random.h:10