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