LeviLamina
Loading...
Searching...
No Matches
BambooStalkBlock.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#include "mc/world/level/block/LeafSize.h"
10#include "mc/world/level/block/StalkThickness.h"
11
12// auto generated forward declare list
13// clang-format off
14class AABB;
15class Actor;
16class Block;
17class BlockPos;
18class BlockSource;
19class Experiments;
22class Random;
23class Vec3;
24namespace BlockEvents { class BlockPlaceEvent; }
25namespace BlockEvents { class BlockQueuedTickEvent; }
26// clang-format on
27
29public:
30 // virtual functions
31 // NOLINTBEGIN
32 // vIndex: 15
33 virtual ::Vec3 randomlyModifyPosition(::BlockPos const& pos) const /*override*/;
34
35 // vIndex: 5
36 virtual ::AABB
37 getCollisionShape(::Block const& block, ::IConstBlockSource const&, ::BlockPos const& pos, ::optional_ref<::GetCollisionShapeInterface const>)
38 const /*override*/;
39
40 // vIndex: 9
41 virtual ::AABB const&
42 getOutline(::Block const& block, ::IConstBlockSource const&, ::BlockPos const& pos, ::AABB& bufferValue) const
43 /*override*/;
44
45 // vIndex: 137
46 virtual void randomTick(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const /*override*/;
47
48 // vIndex: 92
49 virtual ::Block const&
50 getPlacementBlock(::Actor const& by, ::BlockPos const& pos, uchar face, ::Vec3 const& clickPos, int itemValue) const
51 /*override*/;
52
53 // vIndex: 142
54 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
55
56 // vIndex: 87
57 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
58 /*override*/;
59
60 // vIndex: 74
61 virtual bool
62 onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const
63 /*override*/;
64
65 // vIndex: 75
66 virtual bool mayConsumeFertilizer(::BlockSource& region) const /*override*/;
67
68 // vIndex: 76
69 virtual bool canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const
70 /*override*/;
71
72 // vIndex: 48
73 virtual bool isValidAuxValue(int auxValue) const /*override*/;
74
75 // vIndex: 11
76 virtual ::AABB const& getVisualShape(::Block const& block, ::AABB&) const /*override*/;
77
78 // vIndex: 31
79 virtual bool isLavaBlocking() const /*override*/;
80
81 // vIndex: 79
82 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
83
84 // vIndex: 131
85 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
86
87 // vIndex: 0
88 virtual ~BambooStalkBlock() /*override*/ = default;
89 // NOLINTEND
90
91public:
92 // member functions
93 // NOLINTBEGIN
94 MCAPI ::Block const& _determineNewBlockState(::BlockSource& region, ::BlockPos const& pos) const;
95
96 MCAPI ::LeafSize _getLeafSize(::Block const& block) const;
97
98 MCAPI ::AABB const& _getShape(::BlockPos const& pos, ::Block const& block, ::AABB& bufferValue) const;
99
100 MCAPI ::StalkThickness _getStalkThickness(::Block const& block) const;
101
102 MCAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
103
104 MCFOLD void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
105 // NOLINTEND
106
107public:
108 // destructor thunk
109 // NOLINTBEGIN
110
111 // NOLINTEND
112
113public:
114 // virtual function thunks
115 // NOLINTBEGIN
116 MCAPI ::Vec3 $randomlyModifyPosition(::BlockPos const& pos) const;
117
118 MCAPI ::AABB
119 $getCollisionShape(::Block const& block, ::IConstBlockSource const&, ::BlockPos const& pos, ::optional_ref<::GetCollisionShapeInterface const>)
120 const;
121
122 MCAPI ::AABB const&
123 $getOutline(::Block const& block, ::IConstBlockSource const&, ::BlockPos const& pos, ::AABB& bufferValue) const;
124
125 MCAPI void $randomTick(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const;
126
127 MCAPI ::Block const&
128 $getPlacementBlock(::Actor const& by, ::BlockPos const& pos, uchar face, ::Vec3 const& clickPos, int itemValue)
129 const;
130
131 MCFOLD bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
132
133 MCFOLD void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
134
135 MCAPI bool
136 $onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const;
137
138 MCFOLD bool $mayConsumeFertilizer(::BlockSource& region) const;
139
140 MCFOLD bool $canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const;
141
142 MCAPI bool $isValidAuxValue(int auxValue) const;
143
144 MCAPI ::AABB const& $getVisualShape(::Block const& block, ::AABB&) const;
145
146 MCFOLD bool $isLavaBlocking() const;
147
148 MCAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
149
150 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
151 // NOLINTEND
152
153public:
154 // vftables
155 // NOLINTBEGIN
156 MCAPI static void** $vftable();
157 // NOLINTEND
158};
Definition AABB.h:16
Definition Actor.h:104
Definition BambooStalkBlock.h:28
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 Random.h:16
Definition Vec3.h:10
Definition optional_ref.h:10