Skip to content
LeviMC
English
AutoLightDark
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 MCNAPI PitcherCropBlock(::std::string const& nameId, int id);
79
80 MCAPI bool _grow(::BlockSource& region, ::BlockPos const& pos, bool instantGrowth) const;
81
82 MCNAPI void randomTick(::BlockEvents::BlockRandomTickEvent& eventData) const;
83 // NOLINTEND
84
85public:
86 // constructor thunks
87 // NOLINTBEGIN
88 MCNAPI void* $ctor(::std::string const& nameId, int id);
89 // NOLINTEND
90
91public:
92 // virtual function thunks
93 // NOLINTBEGIN
94 MCNAPI ::ItemInstance $asItemInstance(::Block const&, ::BlockActor const*) const;
95
96 MCNAPI bool $canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const;
97
98 MCNAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
99
100 MCNAPI bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
101
102 MCNAPI ::AABB $getCollisionShape(
103 ::Block const& block,
104 ::IConstBlockSource const&,
105 ::BlockPos const& pos,
107 ) const;
108
109 MCNAPI ::AABB const& $getVisualShape(::Block const& block, ::AABB& bufferAABB) const;
110
111 MCNAPI bool $getSecondPart(::IConstBlockSource const& region, ::BlockPos const& pos, ::BlockPos& out) const;
112
113 MCNAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
114
115 MCNAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar face) const;
116
117 MCFOLD bool $mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const;
118
119 MCNAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
120
121 MCNAPI bool
122 $onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const;
123
124
125 // NOLINTEND
126
127public:
128 // vftables
129 // NOLINTBEGIN
130 MCNAPI static void** $vftable();
131 // NOLINTEND
132};
Definition AABB.h:18
Definition Actor.h:116
Definition BlockActor.h:30
Definition BlockRandomTickEvent.h:16
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition Block.h:42
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:25
Definition ItemInstance.h:15
MCAPI bool $mayPlace(::BlockSource &region, ::BlockPos const &pos) const
MCAPI bool $onFertilized(::BlockSource &region, ::BlockPos const &pos, ::Actor *actor, ::FertilizerType fType) const
MCAPI bool $mayPlace(::BlockSource &region, ::BlockPos const &pos, uchar face) const
MCAPI void * $ctor(::std::string const &nameId, int id)
MCAPI bool $getSecondPart(::IConstBlockSource const &region, ::BlockPos const &pos, ::BlockPos &out) const
MCAPI::ItemInstance $asItemInstance(::Block const &, ::BlockActor const *) const
MCAPI::AABB $getCollisionShape(::Block const &block, ::IConstBlockSource const &, ::BlockPos const &pos, ::optional_ref<::GetCollisionShapeInterface const >) const
MCAPI PitcherCropBlock(::std::string const &nameId, int id)
MCAPI bool $canBeFertilized(::BlockSource &region, ::BlockPos const &pos, ::Block const &aboveBlock) const
MCAPI::AABB const & $getVisualShape(::Block const &block, ::AABB &bufferAABB) const
MCAPI void randomTick(::BlockEvents::BlockRandomTickEvent &eventData) const
MCAPI bool $canSurvive(::BlockSource &region, ::BlockPos const &pos) const
MCAPI bool $checkIsPathable(::Actor &entity, ::BlockPos const &lastPathPos, ::BlockPos const &pathPos) const
MCAPI void $neighborChanged(::BlockSource &region, ::BlockPos const &pos, ::BlockPos const &neighborPos) const
static MCAPI void ** $vftable()
Definition optional_ref.h:10