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
26class PitcherCropBlock : public ::FoliageBlock {
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 // prevent constructor by default
36 PitcherCropBlock();
37
38public:
39 // virtual functions
40 // NOLINTBEGIN
41 virtual ::ItemInstance asItemInstance(::Block const&, ::BlockActor const*) const /*override*/;
42
43 virtual bool canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const
44 /*override*/;
45
46 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
47
48 virtual bool checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const
49 /*override*/;
50
51 virtual ::AABB getCollisionShape(
52 ::Block const& block,
54 ::BlockPos const& pos,
56 ) const /*override*/;
57
58 virtual ::AABB const& getVisualShape(::Block const& block, ::AABB& bufferAABB) const /*override*/;
59
60 virtual bool getSecondPart(::IConstBlockSource const& region, ::BlockPos const& pos, ::BlockPos& out) const
61 /*override*/;
62
63 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
64
65 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar face) const /*override*/;
66
67 virtual bool mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
68
69 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
70 /*override*/;
71
72 virtual bool
73 onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const
74 /*override*/;
75
76 virtual void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const /*override*/;
77
78 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
79
80 virtual ~PitcherCropBlock() /*override*/ = default;
81 // NOLINTEND
82
83public:
84 // member functions
85 // NOLINTBEGIN
86 MCAPI PitcherCropBlock(::std::string const& nameId, int id);
87
88 MCAPI bool _grow(::BlockSource& region, ::BlockPos const& pos, bool instantGrowth) const;
89
90 MCAPI void randomTick(::BlockEvents::BlockRandomTickEvent& eventData) const;
91 // NOLINTEND
92
93public:
94 // constructor thunks
95 // NOLINTBEGIN
96 MCAPI void* $ctor(::std::string const& nameId, int id);
97 // NOLINTEND
98
99public:
100 // virtual function thunks
101 // NOLINTBEGIN
102 MCAPI ::ItemInstance $asItemInstance(::Block const&, ::BlockActor const*) const;
103
104 MCAPI bool $canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const;
105
106 MCAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
107
108 MCAPI bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
109
110 MCAPI ::AABB $getCollisionShape(
111 ::Block const& block,
112 ::IConstBlockSource const&,
113 ::BlockPos const& pos,
115 ) const;
116
117 MCAPI ::AABB const& $getVisualShape(::Block const& block, ::AABB& bufferAABB) const;
118
119 MCAPI bool $getSecondPart(::IConstBlockSource const& region, ::BlockPos const& pos, ::BlockPos& out) const;
120
121 MCFOLD bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
122
123 MCFOLD bool $mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar face) const;
124
125 MCFOLD bool $mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const;
126
127 MCFOLD void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
128
129 MCAPI bool
130 $onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const;
131
132 MCFOLD void $tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
133
134 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
135
136
137 // NOLINTEND
138
139public:
140 // vftables
141 // NOLINTBEGIN
142 MCAPI static void** $vftable();
143 // NOLINTEND
144};
Definition AABB.h:18
Definition Actor.h:105
Definition BlockActor.h:32
Definition BlockQueuedTickEvent.h:16
Definition BlockRandomTickEvent.h:16
Definition BlockPos.h:19
Definition BlockSource.h:68
Definition Block.h:43
Definition Experiments.h:14
Definition FoliageBlock.h:23
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:25
Definition ItemInstance.h:15
Definition optional_ref.h:10