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