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/BlockType.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
23class FoliageBlock : public ::BlockType {
24public:
25 // virtual functions
26 // NOLINTBEGIN
27 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
28 /*override*/;
29
30 virtual void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
31
32 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
33
34 virtual ::AABB getCollisionShape(
35 ::Block const&,
37 ::BlockPos const&,
39 ) const /*override*/;
40
41 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
42
43 virtual bool mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
44
45 virtual void checkAlive(::BlockSource& region, ::BlockPos const& pos) const;
46
47 virtual ::Block const& setGrowth(
48 ::BlockSource& region,
49 ::BlockPos const& pos,
50 ::Block const& baseBlock,
51 ushort newGrowth,
52 int updateFlags
53 ) const;
54
55 virtual ~FoliageBlock() /*override*/;
56 // NOLINTEND
57
58public:
59 // member functions
60 // NOLINTBEGIN
61 MCAPI bool growCrops(::BlockSource& region, ::BlockPos const& pos, ::FertilizerType fType) const;
62 // NOLINTEND
63
64public:
65 // static variables
66 // NOLINTBEGIN
67 MCAPI static ::Vec3 const& BUSH_VISUAL_SHAPE_MAX();
68
69 MCAPI static ::Vec3 const& BUSH_VISUAL_SHAPE_MIN();
70 // NOLINTEND
71
72public:
73 // destructor thunk
74 // NOLINTBEGIN
75 MCFOLD void $dtor();
76 // NOLINTEND
77
78public:
79 // virtual function thunks
80 // NOLINTBEGIN
81 MCFOLD void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
82
83 MCFOLD void $tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
84
85 MCFOLD bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
86
87 MCFOLD ::AABB $getCollisionShape(
88 ::Block const&,
90 ::BlockPos const&,
92 ) const;
93
94 MCFOLD void $_addHardCodedBlockComponents(::Experiments const&);
95
96 MCAPI bool $mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const;
97
98 MCFOLD void $checkAlive(::BlockSource& region, ::BlockPos const& pos) const;
99
100 MCAPI ::Block const& $setGrowth(
101 ::BlockSource& region,
102 ::BlockPos const& pos,
103 ::Block const& baseBlock,
104 ushort newGrowth,
105 int updateFlags
106 ) const;
107
108
109 // NOLINTEND
110
111public:
112 // vftables
113 // NOLINTBEGIN
114 MCAPI static void** $vftable();
115 // NOLINTEND
116};
Definition AABB.h:18
Definition BlockQueuedTickEvent.h:16
Definition BlockPos.h:19
Definition BlockSource.h:68
Definition Block.h:43
Definition Experiments.h:14
Definition FoliageBlock.h:23
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:25
Definition Vec3.h:10
Definition optional_ref.h:10