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