Skip to content
LeviMC
English
AutoLightDark
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 MCNAPI 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 MCNAPI 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 MCNAPI 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 MCNAPI static bool _canOverwrite(::BlockSource const& region, ::BlockPos const& pos, int color);
61
62 MCNAPI static int _getColor(::Block const& block);
63 // NOLINTEND
64
65public:
66 // virtual function thunks
67 // NOLINTBEGIN
68 MCNAPI bool $place(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const;
69
70
71 // NOLINTEND
72};
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition Block.h:42
Definition CoralFeature.h:16
MCAPI void _buildPlantArm(::BlockSource &region, ::Random &random, ::BlockPos const &pos, ::gsl::not_null<::Block const * > block, ::std::vector<::BlockPos > &topDec, ::std::vector<::std::pair<::BlockPos, uchar > > &sideDec, uchar direction, bool notTall) const
MCAPI void _placeCoral(::BlockSource &region, ::BlockPos const &pos, ::Random &random, ::std::vector<::BlockPos > &topDec, ::std::vector<::std::pair<::BlockPos, uchar > > &sideDec, int color) const
static MCAPI bool _canOverwrite(::BlockSource const &region, ::BlockPos const &pos, int color)
static MCAPI int _getColor(::Block const &block)
MCAPI bool $place(::BlockSource &region, ::BlockPos const &pos, ::Random &random) const
MCAPI void _starFormation(::BlockSource &region, ::Random &random, ::BlockPos const &pos, ::gsl::not_null<::Block const * > block, float chance, int iteration, bool negateChance) const
Definition Feature.h:18
Definition Random.h:10