LeviLamina
Loading...
Searching...
No Matches
StemBlock.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/BushBlock.h"
8
9// auto generated forward declare list
10// clang-format off
11class AABB;
12class Actor;
13class Block;
14class BlockActor;
15class BlockLegacy;
16class BlockPos;
17class BlockSource;
18class ItemInstance;
19class Random;
20// clang-format on
21
22class StemBlock : public ::BushBlock {
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<8, 8, ::BlockLegacy const&> mFruit;
27 // NOLINTEND
28
29public:
30 // virtual functions
31 // NOLINTBEGIN
32 // vIndex: 81
33 virtual bool mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
34
35 // vIndex: 87
36 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
37 /*override*/;
38
39 // vIndex: 137
40 virtual void randomTick(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const /*override*/;
41
42 // vIndex: 11
43 virtual ::AABB const& getVisualShape(::Block const& block, ::AABB& bufferAABB) const /*override*/;
44
45 // vIndex: 90
46 virtual ::ItemInstance asItemInstance(::Block const&, ::BlockActor const*) const /*override*/;
47
48 // vIndex: 74
49 virtual bool
50 onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const
51 /*override*/;
52
53 // vIndex: 76
54 virtual bool canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const
55 /*override*/;
56
57 // vIndex: 28
58 virtual bool isStemBlock() const /*override*/;
59
60 // vIndex: 0
61 virtual ~StemBlock() /*override*/ = default;
62 // NOLINTEND
63
64public:
65 // member functions
66 // NOLINTBEGIN
67 MCAPI float getGrowthSpeed(::BlockSource& region, ::BlockPos const& pos) const;
68 // NOLINTEND
69
70public:
71 // destructor thunk
72 // NOLINTBEGIN
73
74 // NOLINTEND
75
76public:
77 // virtual function thunks
78 // NOLINTBEGIN
79 MCFOLD bool $mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const;
80
81 MCAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
82
83 MCAPI void $randomTick(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const;
84
85 MCAPI ::AABB const& $getVisualShape(::Block const& block, ::AABB& bufferAABB) const;
86
87 MCAPI ::ItemInstance $asItemInstance(::Block const&, ::BlockActor const*) const;
88
89 MCAPI bool
90 $onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const;
91
92 MCFOLD bool $canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const;
93
94 MCFOLD bool $isStemBlock() const;
95 // NOLINTEND
96
97public:
98 // vftables
99 // NOLINTBEGIN
100 MCAPI static void** $vftable();
101 // NOLINTEND
102};
Definition AABB.h:16
Definition Actor.h:104
Definition BlockActor.h:32
Definition BlockLegacy.h:88
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:36
Definition BushBlock.h:23
Definition ItemInstance.h:16
Definition Random.h:16
Definition StemBlock.h:22