LeviLamina
Loading...
Searching...
No Matches
PitcherCropBlock.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/FoliageBlock.h"
9#include "mc/world/phys/AABB.h"
10
11// auto generated forward declare list
12// clang-format off
13class Actor;
14class Block;
15class BlockActor;
16class BlockPos;
17class BlockSource;
18class Experiments;
21class ItemInstance;
22namespace BlockEvents { class BlockQueuedTickEvent; }
23namespace BlockEvents { class BlockRandomTickEvent; }
24// clang-format on
25
27public:
28 // member variables
29 // NOLINTBEGIN
30 ::ll::TypedStorage<4, 24, ::AABB> mBottomCollisionShapeSmall;
31 ::ll::TypedStorage<4, 24, ::AABB> mBottomCollisionShape;
32 // NOLINTEND
33
34public:
35 // virtual functions
36 // NOLINTBEGIN
37 // vIndex: 90
38 virtual ::ItemInstance asItemInstance(::Block const&, ::BlockActor const*) const /*override*/;
39
40 // vIndex: 76
41 virtual bool canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const
42 /*override*/;
43
44 // vIndex: 138
45 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
46
47 // vIndex: 57
48 virtual bool checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const
49 /*override*/;
50
51 // vIndex: 5
52 virtual ::AABB getCollisionShape(
53 ::Block const& block,
55 ::BlockPos const& pos,
57 ) const /*override*/;
58
59 // vIndex: 11
60 virtual ::AABB const& getVisualShape(::Block const& block, ::AABB& bufferAABB) const /*override*/;
61
62 // vIndex: 88
63 virtual bool getSecondPart(::IConstBlockSource const& region, ::BlockPos const& pos, ::BlockPos& out) const
64 /*override*/;
65
66 // vIndex: 79
67 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
68
69 // vIndex: 80
70 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar face) const /*override*/;
71
72 // vIndex: 81
73 virtual bool mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
74
75 // vIndex: 87
76 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
77 /*override*/;
78
79 // vIndex: 74
80 virtual bool
81 onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const
82 /*override*/;
83
84 // vIndex: 147
85 virtual void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const /*override*/;
86
87 // vIndex: 131
88 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
89
90 // vIndex: 0
91 virtual ~PitcherCropBlock() /*override*/ = default;
92 // NOLINTEND
93
94public:
95 // member functions
96 // NOLINTBEGIN
97 MCAPI bool _grow(::BlockSource& region, ::BlockPos const& pos, bool instantGrowth) const;
98
99 MCAPI void randomTick(::BlockEvents::BlockRandomTickEvent& eventData) const;
100 // NOLINTEND
101
102public:
103 // virtual function thunks
104 // NOLINTBEGIN
105 MCAPI ::ItemInstance $asItemInstance(::Block const&, ::BlockActor const*) const;
106
107 MCAPI bool $canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const;
108
109 MCAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
110
111 MCAPI bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
112
113 MCAPI ::AABB $getCollisionShape(
114 ::Block const& block,
115 ::IConstBlockSource const&,
116 ::BlockPos const& pos,
118 ) const;
119
120 MCAPI ::AABB const& $getVisualShape(::Block const& block, ::AABB& bufferAABB) const;
121
122 MCAPI bool $getSecondPart(::IConstBlockSource const& region, ::BlockPos const& pos, ::BlockPos& out) const;
123
124 MCFOLD bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
125
126 MCFOLD bool $mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar face) const;
127
128 MCFOLD bool $mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const;
129
130 MCFOLD void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
131
132 MCAPI bool
133 $onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const;
134
135 MCFOLD void $tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
136
137 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
138 // NOLINTEND
139
140public:
141 // vftables
142 // NOLINTBEGIN
143 MCNAPI static void** $vftable();
144 // NOLINTEND
145};
Definition AABB.h:18
Definition Actor.h:102
Definition BlockActor.h:32
Definition BlockQueuedTickEvent.h:16
Definition BlockRandomTickEvent.h:16
Definition BlockPos.h:17
Definition BlockSource.h:66
Definition Block.h:37
Definition Experiments.h:14
Definition FoliageBlock.h:23
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:24
Definition ItemInstance.h:15
Definition PitcherCropBlock.h:26
static MCAPI void ** $vftable()
Definition optional_ref.h:10
Definition BlockRandomTickEvent.h:13