LeviLamina
Loading...
Searching...
No Matches
SeagrassBlock.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 Actor;
14class Block;
15class BlockPos;
16class BlockSource;
17class Experiments;
20namespace BlockEvents { class BlockPlaceEvent; }
21namespace BlockEvents { class BlockQueuedTickEvent; }
22// clang-format on
23
25public:
26 // virtual functions
27 // NOLINTBEGIN
28 // vIndex: 79
29 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
30
31 // vIndex: 87
32 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
33 /*override*/;
34
35 // vIndex: 74
36 virtual bool
37 onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const
38 /*override*/;
39
40 // vIndex: 75
41 virtual bool mayConsumeFertilizer(::BlockSource& region) const /*override*/;
42
43 // vIndex: 76
44 virtual bool canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const
45 /*override*/;
46
47 // vIndex: 142
48 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
49
50 // vIndex: 112
51 virtual ::std::string buildDescriptionId(::Block const&) const /*override*/;
52
53 // vIndex: 5
54 virtual ::AABB
56 const /*override*/;
57
58 // vIndex: 48
59 virtual bool isValidAuxValue(int value) const /*override*/;
60
61 // vIndex: 131
62 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
63
64 // vIndex: 0
65 virtual ~SeagrassBlock() /*override*/ = default;
66 // NOLINTEND
67
68public:
69 // member functions
70 // NOLINTBEGIN
71 MCAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
72
73 MCAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
74 // NOLINTEND
75
76public:
77 // static functions
78 // NOLINTBEGIN
79 MCAPI static bool trySpawnSeaGrass(::BlockSource& region, ::BlockPos const& pos);
80 // NOLINTEND
81
82public:
83 // destructor thunk
84 // NOLINTBEGIN
85
86 // NOLINTEND
87
88public:
89 // virtual function thunks
90 // NOLINTBEGIN
91 MCAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
92
93 MCAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
94
95 MCAPI bool
96 $onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const;
97
98 MCFOLD bool $mayConsumeFertilizer(::BlockSource& region) const;
99
100 MCFOLD bool $canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const;
101
102 MCAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
103
104 MCAPI ::std::string $buildDescriptionId(::Block const&) const;
105
106 MCFOLD ::AABB
108 const;
109
110 MCFOLD bool $isValidAuxValue(int value) const;
111
112 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
113 // NOLINTEND
114
115public:
116 // vftables
117 // NOLINTBEGIN
118 MCAPI static void** $vftable();
119 // NOLINTEND
120};
Definition AABB.h:16
Definition Actor.h:104
Definition BlockPlaceEvent.h:15
Definition BlockQueuedTickEvent.h:15
Definition BlockLegacy.h:88
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:36
Definition Experiments.h:14
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:24
Definition SeagrassBlock.h:24
Definition optional_ref.h:10