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/world/item/FertilizerType.h"
7#include "mc/world/level/block/BlockLegacy.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class Block;
13class BlockPos;
14class BlockSource;
15class ItemStack;
17class Player;
18class Random;
19class Randomize;
20struct Brightness;
21namespace mce { class Color; }
22// clang-format on
23
24class GrassBlock : public ::BlockLegacy {
25public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<8, 24, ::std::vector<::mce::Color>> mSideColors;
29 ::ll::TypedStorage<8, 40, ::PerlinSimplexNoise const> mBiomeInfoNoise;
30 // NOLINTEND
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 // vIndex: 137
36 virtual void randomTick(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const /*override*/;
37
38 // vIndex: 74
39 virtual bool
40 onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const
41 /*override*/;
42
43 // vIndex: 76
44 virtual bool canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const
45 /*override*/;
46
47 // vIndex: 93
48 virtual int calcVariant(::BlockSource& region, ::BlockPos const& pos, ::mce::Color const& baseColor) const
49 /*override*/;
50
51 // vIndex: 46
52 virtual bool canBeOriginalSurface() const /*override*/;
53
54 // vIndex: 139
55 virtual bool use(::Player& player, ::BlockPos const& pos, uchar face) const /*override*/;
56
57 // vIndex: 83
58 virtual bool tryToTill(::BlockSource& region, ::BlockPos const& pos, ::Actor& entity, ::ItemStack& item) const
59 /*override*/;
60
61 // vIndex: 0
62 virtual ~GrassBlock() /*override*/ = default;
63 // NOLINTEND
64
65public:
66 // member functions
67 // NOLINTBEGIN
68 MCAPI GrassBlock(::std::string const& nameId, int id);
69
70 MCAPI bool _canBeGrass(::BlockSource const& region, ::BlockPos const& pos) const;
71
72 MCAPI bool _plantGrass(::BlockSource& region, ::BlockPos const& abovePos, ::Randomize& randomize) const;
73 // NOLINTEND
74
75public:
76 // static variables
77 // NOLINTBEGIN
78 MCAPI static ::Brightness const& MIN_BRIGHTNESS();
79 // NOLINTEND
80
81public:
82 // constructor thunks
83 // NOLINTBEGIN
84 MCAPI void* $ctor(::std::string const& nameId, int id);
85 // NOLINTEND
86
87public:
88 // destructor thunk
89 // NOLINTBEGIN
90
91 // NOLINTEND
92
93public:
94 // virtual function thunks
95 // NOLINTBEGIN
96 MCAPI void $randomTick(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const;
97
98 MCAPI bool
99 $onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const;
100
101 MCFOLD bool $canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const;
102
103 MCAPI int $calcVariant(::BlockSource& region, ::BlockPos const& pos, ::mce::Color const& baseColor) const;
104
105 MCFOLD bool $canBeOriginalSurface() const;
106
107 MCFOLD bool $use(::Player& player, ::BlockPos const& pos, uchar face) const;
108
109 MCAPI bool $tryToTill(::BlockSource& region, ::BlockPos const& pos, ::Actor& entity, ::ItemStack& item) const;
110 // NOLINTEND
111
112public:
113 // vftables
114 // NOLINTBEGIN
115 MCAPI static void** $vftable();
116 // NOLINTEND
117};
Definition Actor.h:104
Definition BlockLegacy.h:88
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:36
Definition GrassBlock.h:24
Definition ItemStack.h:25
Definition PerlinSimplexNoise.h:13
Definition Player.h:119
Definition Random.h:16
Definition Randomize.h:13
Definition Color.h:13
Definition Brightness.h:8