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