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/BlockType.h"
9
10// auto generated forward declare list
11// clang-format off
12class AABB;
13class Actor;
14class Block;
15class BlockPos;
16class BlockSource;
19class Vec3;
20namespace BlockEvents { class BlockPlayerInteractEvent; }
21namespace BlockEvents { class BlockQueuedTickEvent; }
22// clang-format on
23
24class FlowerBedBlock : public ::BlockType {
25public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<1, 1, bool const> mHasStems;
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
33 FlowerBedBlock();
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 virtual int getVariant(::Block const& block) const /*override*/;
39
40 virtual bool mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
41
42 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar) const /*override*/;
43
44 virtual bool canBeBuiltOver(
45 ::Block const& block,
46 ::BlockSource& region,
47 ::BlockPos const& pos,
48 ::BlockType const& newBlock
49 ) const /*override*/;
50
51 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
52
53 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
54 /*override*/;
55
56 virtual ::Block const& getPlacementBlock(
57 ::Actor const& by,
58 ::BlockPos const& pos,
59 uchar facing,
60 ::Vec3 const& clickPos,
61 int itemValue
62 ) const /*override*/;
63
64 virtual ::AABB getCollisionShape(
65 ::Block const&,
67 ::BlockPos const&,
69 ) const /*override*/;
70
71 virtual bool onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor*, ::FertilizerType) const
72 /*override*/;
73
74 virtual bool canBeFertilized(::BlockSource&, ::BlockPos const&, ::Block const&) const /*override*/;
75 // NOLINTEND
76
77public:
78 // member functions
79 // NOLINTBEGIN
80 MCAPI FlowerBedBlock(::std::string const& nameId, int id, bool hasStems, ::std::optional<int> visualHeightTx);
81
82#ifdef LL_PLAT_C
83 MCFOLD bool hasStems() const;
84#endif
85
86 MCFOLD void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
87
88 MCAPI void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
89 // NOLINTEND
90
91public:
92 // static functions
93 // NOLINTBEGIN
94 MCAPI static bool tryGrow(::BlockSource& region, ::BlockPos pos);
95 // NOLINTEND
96
97public:
98 // constructor thunks
99 // NOLINTBEGIN
100 MCAPI void* $ctor(::std::string const& nameId, int id, bool hasStems, ::std::optional<int> visualHeightTx);
101 // NOLINTEND
102
103public:
104 // virtual function thunks
105 // NOLINTBEGIN
106 MCFOLD int $getVariant(::Block const& block) const;
107
108 MCFOLD bool $mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const;
109
110 MCAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar) const;
111
112 MCAPI bool $canBeBuiltOver(
113 ::Block const& block,
114 ::BlockSource& region,
115 ::BlockPos const& pos,
116 ::BlockType const& newBlock
117 ) const;
118
119 MCAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
120
121 MCAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
122
123 MCAPI ::Block const& $getPlacementBlock(
124 ::Actor const& by,
125 ::BlockPos const& pos,
126 uchar facing,
127 ::Vec3 const& clickPos,
128 int itemValue
129 ) const;
130
131 MCFOLD ::AABB $getCollisionShape(
132 ::Block const&,
133 ::IConstBlockSource const&,
134 ::BlockPos const&,
136 ) const;
137
138 MCAPI bool $onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor*, ::FertilizerType) const;
139
140 MCFOLD bool $canBeFertilized(::BlockSource&, ::BlockPos const&, ::Block const&) const;
141
142
143 // NOLINTEND
144
145public:
146 // vftables
147 // NOLINTBEGIN
148 MCAPI static void** $vftable();
149 // NOLINTEND
150};
Definition AABB.h:18
Definition Actor.h:125
Definition BlockPlayerInteractEvent.h:20
Definition BlockQueuedTickEvent.h:18
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Block.h:69
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:24
Definition Vec3.h:10
Definition optional_ref.h:10