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/BushBlock.h"
9
10// auto generated forward declare list
11// clang-format off
12class AABB;
13class Actor;
14class Block;
15class BlockActor;
16class BlockPos;
17class BlockSource;
18class Experiments;
21class ItemInstance;
22class Random;
23namespace BlockEvents { class BlockQueuedTickEvent; }
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: 142
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
53 getCollisionShape(::Block const& block, ::IConstBlockSource const&, ::BlockPos const& pos, ::optional_ref<::GetCollisionShapeInterface const>)
54 const /*override*/;
55
56 // vIndex: 11
57 virtual ::AABB const& getVisualShape(::Block const& block, ::AABB& bufferAABB) const /*override*/;
58
59 // vIndex: 88
60 virtual bool getSecondPart(::IConstBlockSource const& region, ::BlockPos const& pos, ::BlockPos& out) const
61 /*override*/;
62
63 // vIndex: 79
64 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
65
66 // vIndex: 80
67 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar face) const /*override*/;
68
69 // vIndex: 81
70 virtual bool mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
71
72 // vIndex: 87
73 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
74 /*override*/;
75
76 // vIndex: 74
77 virtual bool
78 onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const
79 /*override*/;
80
81 // vIndex: 137
82 virtual void randomTick(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const /*override*/;
83
84 // vIndex: 150
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 PitcherCropBlock(::std::string const& nameId, int id);
98
99 MCAPI bool _grow(::BlockSource& region, ::BlockPos const& pos, bool instantGrowth) const;
100 // NOLINTEND
101
102public:
103 // constructor thunks
104 // NOLINTBEGIN
105 MCAPI void* $ctor(::std::string const& nameId, int id);
106 // NOLINTEND
107
108public:
109 // destructor thunk
110 // NOLINTBEGIN
111
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
126 $getCollisionShape(::Block const& block, ::IConstBlockSource const&, ::BlockPos const& pos, ::optional_ref<::GetCollisionShapeInterface const>)
127 const;
128
129 MCAPI ::AABB const& $getVisualShape(::Block const& block, ::AABB& bufferAABB) const;
130
131 MCAPI bool $getSecondPart(::IConstBlockSource const& region, ::BlockPos const& pos, ::BlockPos& out) const;
132
133 MCFOLD bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
134
135 MCFOLD bool $mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar face) const;
136
137 MCFOLD bool $mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const;
138
139 MCFOLD void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
140
141 MCAPI bool
142 $onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const;
143
144 MCAPI void $randomTick(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const;
145
146 MCFOLD void $tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
147
148 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
149 // NOLINTEND
150
151public:
152 // vftables
153 // NOLINTBEGIN
154 MCAPI static void** $vftable();
155 // NOLINTEND
156};
Definition AABB.h:16
Definition Actor.h:104
Definition BlockActor.h:32
Definition BlockQueuedTickEvent.h:15
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 ItemInstance.h:16
Definition PitcherCropBlock.h:26
Definition Random.h:16
Definition optional_ref.h:10