LeviLamina
Loading...
Searching...
No Matches
GrassBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/math/Color.h"
7#include "mc/world/level/block/GrassBlockBase.h"
8#include "mc/world/level/levelgen/synth/PerlinSimplexNoise.h"
9
10// auto generated forward declare list
11// clang-format off
12class BlockPos;
13class BlockSource;
14class IRandom;
15// clang-format on
16
17class GrassBlock : public ::GrassBlockBase {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 40, ::PerlinSimplexNoise const> mBiomeInfoNoise;
22 ::ll::TypedStorage<8, 24, ::std::vector<::mce::Color>> mSideColors;
23 // NOLINTEND
24
25public:
26 // prevent constructor by default
27 GrassBlock();
28
29public:
30 // virtual functions
31 // NOLINTBEGIN
32 virtual bool _plantGrass(::BlockSource& region, ::BlockPos const& abovePos, ::IRandom& random) const /*override*/;
33
34 virtual bool _shouldStopRandomWalk(::BlockSource& region, ::BlockPos& pos) const /*override*/;
35 // NOLINTEND
36
37public:
38 // member functions
39 // NOLINTBEGIN
40 MCAPI GrassBlock(::std::string const& nameId, int id);
41
42#ifdef LL_PLAT_C
43 MCAPI int calcVariant(::BlockSource& region, ::BlockPos const& pos, ::mce::Color const& baseColor) const;
44
45 MCAPI void initSideColorsFromAtlas(::std::vector<::mce::Color> colors) const;
46#endif
47 // NOLINTEND
48
49public:
50 // constructor thunks
51 // NOLINTBEGIN
52 MCAPI void* $ctor(::std::string const& nameId, int id);
53 // NOLINTEND
54
55public:
56 // virtual function thunks
57 // NOLINTBEGIN
58 MCAPI bool $_plantGrass(::BlockSource& region, ::BlockPos const& abovePos, ::IRandom& random) const;
59
60 MCAPI bool $_shouldStopRandomWalk(::BlockSource& region, ::BlockPos& pos) const;
61
62
63 // NOLINTEND
64
65public:
66 // vftables
67 // NOLINTBEGIN
68 MCAPI static void** $vftable();
69 // NOLINTEND
70};
Definition BlockPos.h:17
Definition BlockSource.h:71
static MCAPI void ** $vftable()
Definition IRandom.h:10
Definition Color.h:13