LeviLamina
Loading...
Searching...
No Matches
FlowerBedBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/optional_ref.h"
7#include "mc/world/item/FertilizerType.h"
8#include "mc/world/level/block/BlockLegacy.h"
9
10// auto generated forward declare list
11// clang-format off
12class AABB;
13class Actor;
14class Block;
15class BlockPos;
16class BlockSource;
17class Experiments;
20namespace BlockEvents { class BlockPlayerInteractEvent; }
21namespace BlockEvents { class BlockQueuedTickEvent; }
22// clang-format on
23
25public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<1, 1, bool const> mHasStems;
29 // NOLINTEND
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34 // vIndex: 117
35 virtual int getVariant(::Block const& block) const /*override*/;
36
37 // vIndex: 80
38 virtual bool mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
39
40 // vIndex: 138
41 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
42
43 // vIndex: 86
44 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
45 /*override*/;
46
47 // vIndex: 5
48 virtual ::AABB getCollisionShape(
49 ::Block const&,
51 ::BlockPos const&,
53 ) const /*override*/;
54
55 // vIndex: 73
56 virtual bool
57 onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const
58 /*override*/;
59
60 // vIndex: 75
61 virtual bool canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const
62 /*override*/;
63
64 // vIndex: 130
65 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
66
67 // vIndex: 0
68 virtual ~FlowerBedBlock() /*override*/ = default;
69 // NOLINTEND
70
71public:
72 // member functions
73 // NOLINTBEGIN
74 MCFOLD void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
75
76 MCAPI void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
77 // NOLINTEND
78
79public:
80 // static functions
81 // NOLINTBEGIN
82 MCAPI static bool tryGrow(::BlockSource& region, ::BlockPos pos);
83 // NOLINTEND
84
85public:
86 // virtual function thunks
87 // NOLINTBEGIN
88 MCFOLD int $getVariant(::Block const& block) const;
89
90 MCAPI bool $mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const;
91
92 MCAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
93
94 MCFOLD void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
95
96 MCFOLD ::AABB $getCollisionShape(
97 ::Block const&,
99 ::BlockPos const&,
101 ) const;
102
103 MCAPI bool
104 $onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const;
105
106 MCFOLD bool $canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const;
107
108 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
109 // NOLINTEND
110
111public:
112 // vftables
113 // NOLINTBEGIN
114 MCNAPI static void** $vftable();
115 // NOLINTEND
116};
Definition AABB.h:18
Definition Actor.h:103
Definition BlockPlayerInteractEvent.h:17
Definition BlockQueuedTickEvent.h:16
Definition BlockLegacy.h:88
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:38
Definition Experiments.h:14
Definition FlowerBedBlock.h:24
static MCAPI void ** $vftable()
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:24
Definition optional_ref.h:10