LeviLamina
Loading...
Searching...
No Matches
FoliageBlock.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/BlockLegacy.h"
9
10// auto generated forward declare list
11// clang-format off
12class AABB;
13class Block;
14class BlockPos;
15class BlockSource;
16class Experiments;
19class Vec3;
20namespace BlockEvents { class BlockQueuedTickEvent; }
21// clang-format on
22
24public:
25 // virtual functions
26 // NOLINTBEGIN
27 // vIndex: 86
28 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
29 /*override*/;
30
31 // vIndex: 147
32 virtual void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
33
34 // vIndex: 138
35 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
36
37 // vIndex: 5
38 virtual ::AABB getCollisionShape(
39 ::Block const&,
41 ::BlockPos const&,
43 ) const /*override*/;
44
45 // vIndex: 130
46 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
47
48 // vIndex: 80
49 virtual bool mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
50
51 // vIndex: 148
52 virtual void checkAlive(::BlockSource& region, ::BlockPos const& pos) const;
53
54 // vIndex: 149
55 virtual ::Block const& setGrowth(
56 ::BlockSource& region,
57 ::BlockPos const& pos,
58 ::Block const& baseBlock,
59 ushort newGrowth,
60 int updateFlags
61 ) const;
62
63 // vIndex: 0
64 virtual ~FoliageBlock() /*override*/;
65 // NOLINTEND
66
67public:
68 // member functions
69 // NOLINTBEGIN
70 MCAPI bool growCrops(::BlockSource& region, ::BlockPos const& pos, ::FertilizerType fType) const;
71 // NOLINTEND
72
73public:
74 // static variables
75 // NOLINTBEGIN
76 MCAPI static ::Vec3 const& BUSH_VISUAL_SHAPE_MAX();
77
78 MCAPI static ::Vec3 const& BUSH_VISUAL_SHAPE_MIN();
79 // NOLINTEND
80
81public:
82 // destructor thunk
83 // NOLINTBEGIN
84 MCFOLD void $dtor();
85 // NOLINTEND
86
87public:
88 // virtual function thunks
89 // NOLINTBEGIN
90 MCFOLD void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
91
92 MCFOLD void $tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
93
94 MCFOLD bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
95
96 MCFOLD ::AABB $getCollisionShape(
97 ::Block const&,
99 ::BlockPos const&,
101 ) const;
102
103 MCFOLD void $_addHardCodedBlockComponents(::Experiments const&);
104
105 MCAPI bool $mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const;
106
107 MCFOLD void $checkAlive(::BlockSource& region, ::BlockPos const& pos) const;
108
109 MCAPI ::Block const& $setGrowth(
110 ::BlockSource& region,
111 ::BlockPos const& pos,
112 ::Block const& baseBlock,
113 ushort newGrowth,
114 int updateFlags
115 ) const;
116 // NOLINTEND
117
118public:
119 // vftables
120 // NOLINTBEGIN
121 MCNAPI static void** $vftable();
122 // NOLINTEND
123};
Definition AABB.h:18
Definition BlockQueuedTickEvent.h:16
Definition BlockLegacy.h:88
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:38
Definition Experiments.h:14
Definition FoliageBlock.h:23
static MCAPI void ** $vftable()
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:24
Definition Vec3.h:10
Definition optional_ref.h:10