LeviLamina
Loading...
Searching...
No Matches
BrushableBlock.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/FallingBlock.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class Block;
13class BlockActor;
14class BlockLegacy;
15class BlockPos;
16class BlockSource;
17class Experiments;
18class HashedString;
19class ItemInstance;
20namespace BlockEvents { class BlockQueuedTickEvent; }
21namespace mce { class Color; }
22// clang-format on
23
25public:
26 // BrushableBlock inner types define
27 enum class Type : int {
28 Sand = 0,
29 Gravel = 1,
30 };
31
32public:
33 // member variables
34 // NOLINTBEGIN
35 ::ll::TypedStorage<4, 4, ::BrushableBlock::Type> mType;
36 // NOLINTEND
37
38public:
39 // virtual functions
40 // NOLINTBEGIN
41 // vIndex: 125
42 virtual ::BlockLegacy& init() /*override*/;
43
44 // vIndex: 153
45 virtual void onLand(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
46
47 // vIndex: 90
48 virtual ::ItemInstance asItemInstance(::Block const& block, ::BlockActor const* blockActor) const /*override*/;
49
50 // vIndex: 150
51 virtual ::mce::Color getDustColor(::Block const&) const /*override*/;
52
53 // vIndex: 151
54 virtual ::std::string getDustParticleName(::Block const&) const /*override*/;
55
56 // vIndex: 118
57 virtual int getVariant(::Block const& block) const /*override*/;
58
59 // vIndex: 74
60 virtual bool
61 onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const
62 /*override*/;
63
64 // vIndex: 75
65 virtual bool mayConsumeFertilizer(::BlockSource& region) const /*override*/;
66
67 // vIndex: 76
68 virtual bool canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const
69 /*override*/;
70
71 // vIndex: 131
72 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
73
74 // vIndex: 0
75 virtual ~BrushableBlock() /*override*/ = default;
76 // NOLINTEND
77
78public:
79 // member functions
80 // NOLINTBEGIN
81 MCAPI BrushableBlock(::std::string const& nameID, int id);
82
83 MCAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
84 // NOLINTEND
85
86public:
87 // static variables
88 // NOLINTBEGIN
89 MCAPI static ::HashedString const& EmptyBrushedBlock();
90 // NOLINTEND
91
92public:
93 // constructor thunks
94 // NOLINTBEGIN
95 MCAPI void* $ctor(::std::string const& nameID, int id);
96 // NOLINTEND
97
98public:
99 // destructor thunk
100 // NOLINTBEGIN
101
102 // NOLINTEND
103
104public:
105 // virtual function thunks
106 // NOLINTBEGIN
107 MCFOLD ::BlockLegacy& $init();
108
109 MCAPI void $onLand(::BlockSource& region, ::BlockPos const& pos) const;
110
111 MCAPI ::ItemInstance $asItemInstance(::Block const& block, ::BlockActor const* blockActor) const;
112
113 MCAPI ::mce::Color $getDustColor(::Block const&) const;
114
115 MCAPI ::std::string $getDustParticleName(::Block const&) const;
116
117 MCAPI int $getVariant(::Block const& block) const;
118
119 MCFOLD bool
120 $onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const;
121
122 MCFOLD bool $mayConsumeFertilizer(::BlockSource& region) const;
123
124 MCFOLD bool $canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const;
125
126 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
127 // NOLINTEND
128
129public:
130 // vftables
131 // NOLINTBEGIN
132 MCAPI static void** $vftable();
133 // NOLINTEND
134};
Definition Actor.h:104
Definition BlockActor.h:32
Definition BlockQueuedTickEvent.h:15
Definition BlockLegacy.h:88
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:36
Definition BrushableBlock.h:24
Definition Experiments.h:14
Definition FallingBlock.h:20
Definition HashedString.h:5
Definition ItemInstance.h:16