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