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 int calcVariant(::BlockSource& region, ::BlockPos const& pos, ::mce::Color const& baseColor) const
33 /*override*/;
34
35 virtual bool _plantGrass(::BlockSource& region, ::BlockPos const& abovePos, ::IRandom& random) const /*override*/;
36
37 virtual bool _shouldStopRandomWalk(::BlockSource& region, ::BlockPos& pos) const /*override*/;
38 // NOLINTEND
39
40public:
41 // member functions
42 // NOLINTBEGIN
43 MCAPI GrassBlock(::std::string const& nameId, int id);
44
45#ifdef LL_PLAT_C
46 MCAPI void initSideColorsFromAtlas(::std::vector<::mce::Color> colors) const;
47#endif
48 // NOLINTEND
49
50public:
51 // constructor thunks
52 // NOLINTBEGIN
53 MCAPI void* $ctor(::std::string const& nameId, int id);
54 // NOLINTEND
55
56public:
57 // virtual function thunks
58 // NOLINTBEGIN
59 MCAPI int $calcVariant(::BlockSource& region, ::BlockPos const& pos, ::mce::Color const& baseColor) const;
60
61 MCAPI bool $_plantGrass(::BlockSource& region, ::BlockPos const& abovePos, ::IRandom& random) const;
62
63 MCAPI bool $_shouldStopRandomWalk(::BlockSource& region, ::BlockPos& pos) const;
64
65
66 // NOLINTEND
67
68public:
69 // vftables
70 // NOLINTBEGIN
71 MCAPI static void** $vftable();
72 // NOLINTEND
73};
Definition BlockPos.h:21
Definition BlockSource.h:73
static MCAPI void ** $vftable()
Definition IRandom.h:10
Definition Color.h:13