LeviLamina
Loading...
Searching...
No Matches
SmallDripleafBlock.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/BushBlock.h"
9
10// auto generated forward declare list
11// clang-format off
12class AABB;
13class Actor;
14class Block;
15class BlockLegacy;
16class BlockPos;
17class BlockSource;
18class Experiments;
21class Vec3;
22namespace BlockEvents { class BlockPlaceEvent; }
23namespace BlockEvents { class BlockQueuedTickEvent; }
24// clang-format on
25
27public:
28 // virtual functions
29 // NOLINTBEGIN
30 // vIndex: 125
31 virtual ::BlockLegacy& init() /*override*/;
32
33 // vIndex: 79
34 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
35
36 // vIndex: 81
37 virtual bool mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
38
39 // vIndex: 142
40 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
41
42 // vIndex: 5
43 virtual ::AABB
45 const /*override*/;
46
47 // vIndex: 9
48 virtual ::AABB const&
49 getOutline(::Block const&, ::IConstBlockSource const&, ::BlockPos const& pos, ::AABB& bufferValue) const
50 /*override*/;
51
52 // vIndex: 74
53 virtual bool
54 onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const
55 /*override*/;
56
57 // vIndex: 76
58 virtual bool canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const
59 /*override*/;
60
61 // vIndex: 87
62 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
63 /*override*/;
64
65 // vIndex: 92
66 virtual ::Block const&
67 getPlacementBlock(::Actor const& by, ::BlockPos const& pos, uchar face, ::Vec3 const& clickPos, int itemValue) const
68 /*override*/;
69
70 // vIndex: 150
71 virtual void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const /*override*/;
72
73 // vIndex: 31
74 virtual bool isLavaBlocking() const /*override*/;
75
76 // vIndex: 131
77 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
78
79 // vIndex: 0
80 virtual ~SmallDripleafBlock() /*override*/ = default;
81 // NOLINTEND
82
83public:
84 // member functions
85 // NOLINTBEGIN
86 MCAPI bool _isViablePlacePos(::BlockSource& region, ::BlockPos const& pos) const;
87
88 MCAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
89 // NOLINTEND
90
91public:
92 // static functions
93 // NOLINTBEGIN
94 MCAPI static void placeUpperBlock(::BlockSource& region, ::BlockPos const& pos, int updateFlags);
95
96 MCAPI static bool
97 tryPlaceSmallDripleaf(::BlockSource& region, ::BlockPos const& pos, int directionState, int updateFlags);
98 // NOLINTEND
99
100public:
101 // destructor thunk
102 // NOLINTBEGIN
103
104 // NOLINTEND
105
106public:
107 // virtual function thunks
108 // NOLINTBEGIN
109 MCAPI ::BlockLegacy& $init();
110
111 MCAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
112
113 MCAPI bool $mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const;
114
115 MCAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
116
117 MCFOLD ::AABB
119 const;
120
121 MCFOLD ::AABB const&
122 $getOutline(::Block const&, ::IConstBlockSource const&, ::BlockPos const& pos, ::AABB& bufferValue) const;
123
124 MCAPI bool
125 $onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const;
126
127 MCFOLD bool $canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const;
128
129 MCFOLD void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
130
131 MCAPI ::Block const&
132 $getPlacementBlock(::Actor const& by, ::BlockPos const& pos, uchar face, ::Vec3 const& clickPos, int itemValue)
133 const;
134
135 MCFOLD void $tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
136
137 MCFOLD bool $isLavaBlocking() const;
138
139 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
140 // NOLINTEND
141
142public:
143 // vftables
144 // NOLINTBEGIN
145 MCAPI static void** $vftable();
146 // NOLINTEND
147};
Definition AABB.h:16
Definition Actor.h:104
Definition BlockPlaceEvent.h:15
Definition BlockQueuedTickEvent.h:15
Definition BlockLegacy.h:88
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:36
Definition BushBlock.h:23
Definition Experiments.h:14
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:24
Definition SmallDripleafBlock.h:26
Definition Vec3.h:10
Definition optional_ref.h:10