LeviLamina
Loading...
Searching...
No Matches
BigDripleafBlock.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/BigDripleafTilt.h"
9#include "mc/world/level/block/BlockLegacy.h"
10
11// auto generated forward declare list
12// clang-format off
13class AABB;
14class Actor;
15class Block;
16class BlockPos;
17class BlockSource;
18class Experiments;
21class Random;
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: 11
34 virtual ::AABB const& getVisualShape(::Block const& block, ::AABB& bufferAABB) const /*override*/;
35
36 // vIndex: 5
37 virtual ::AABB getCollisionShape(
38 ::Block const& block,
40 ::BlockPos const& pos,
42 ) const /*override*/;
43
44 // vIndex: 81
45 virtual bool mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
46
47 // vIndex: 142
48 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
49
50 // vIndex: 74
51 virtual bool
52 onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const
53 /*override*/;
54
55 // vIndex: 76
56 virtual bool canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const
57 /*override*/;
58
59 // vIndex: 57
60 virtual bool checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const
61 /*override*/;
62
63 // vIndex: 87
64 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
65 /*override*/;
66
67 // vIndex: 67
68 virtual void setupRedstoneComponent(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
69
70 // vIndex: 61
71 virtual void onRedstoneUpdate(::BlockSource& region, ::BlockPos const& pos, int strength, bool isFirstTime) const
72 /*override*/;
73
74 // vIndex: 149
75 virtual void entityInside(::BlockSource& region, ::BlockPos const& pos, ::Actor& entity) const /*override*/;
76
77 // vIndex: 17
78 virtual void onProjectileHit(::BlockSource& region, ::BlockPos const& pos, ::Actor const&) const /*override*/;
79
80 // vIndex: 31
81 virtual bool isLavaBlocking() const /*override*/;
82
83 // vIndex: 131
84 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
85
86 // vIndex: 0
87 virtual ~BigDripleafBlock() /*override*/ = default;
88 // NOLINTEND
89
90public:
91 // member functions
92 // NOLINTBEGIN
93 MCAPI void _resetTilt(::BlockSource& region, ::BlockPos const& pos) const;
94
95 MCAPI void
96 _setTiltAndScheduleTick(::BigDripleafTilt bigDripleafTilt, ::BlockSource& region, ::BlockPos const& pos) const;
97
98 MCAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
99
100 MCAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
101 // NOLINTEND
102
103public:
104 // static functions
105 // NOLINTBEGIN
106 MCAPI static void placeWithRandomHeight(::BlockSource& region, ::Random& random, ::BlockPos stemPos, int facing);
107 // NOLINTEND
108
109public:
110 // destructor thunk
111 // NOLINTBEGIN
112
113 // NOLINTEND
114
115public:
116 // virtual function thunks
117 // NOLINTBEGIN
118 MCAPI ::BlockLegacy& $init();
119
120 MCAPI ::AABB const& $getVisualShape(::Block const& block, ::AABB& bufferAABB) const;
121
122 MCAPI ::AABB $getCollisionShape(
123 ::Block const& block,
124 ::IConstBlockSource const&,
125 ::BlockPos const& pos,
127 ) const;
128
129 MCAPI bool $mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const;
130
131 MCAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
132
133 MCAPI bool
134 $onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const;
135
136 MCAPI bool $canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const;
137
138 MCAPI bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
139
140 MCAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
141
142 MCFOLD void $setupRedstoneComponent(::BlockSource& region, ::BlockPos const& pos) const;
143
144 MCAPI void $onRedstoneUpdate(::BlockSource& region, ::BlockPos const& pos, int strength, bool isFirstTime) const;
145
146 MCAPI void $entityInside(::BlockSource& region, ::BlockPos const& pos, ::Actor& entity) const;
147
148 MCAPI void $onProjectileHit(::BlockSource& region, ::BlockPos const& pos, ::Actor const&) const;
149
150 MCFOLD bool $isLavaBlocking() const;
151
152 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
153 // NOLINTEND
154
155public:
156 // vftables
157 // NOLINTBEGIN
158 MCAPI static void** $vftable();
159 // NOLINTEND
160};
Definition AABB.h:16
Definition Actor.h:104
Definition BigDripleafBlock.h:26
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 Experiments.h:14
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:24
Definition Random.h:16
Definition optional_ref.h:10