LeviLamina
Loading...
Searching...
No Matches
MangrovePropaguleBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/item/FertilizerType.h"
7#include "mc/world/level/block/FoliageBlock.h"
8
9// auto generated forward declare list
10// clang-format off
11class AABB;
12class Actor;
13class Block;
14class BlockPos;
15class BlockSource;
16class Random;
17namespace BlockEvents { class BlockRandomTickEvent; }
18// clang-format on
19
20class MangrovePropaguleBlock : public ::FoliageBlock {
21public:
22 // prevent constructor by default
23 MangrovePropaguleBlock();
24
25public:
26 // virtual functions
27 // NOLINTBEGIN
28 virtual bool mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
29
30 virtual bool canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const
31 /*override*/;
32
33 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
34
35 virtual bool
36 onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fertilizerType) const
37 /*override*/;
38
39 virtual ::AABB const& getVisualShape(::Block const& block, ::AABB& bufferAABB) const /*override*/;
40
41 virtual int getVariant(::Block const& block) const /*override*/;
42
43 virtual ::Block const& getInitialDefaultState() /*override*/;
44 // NOLINTEND
45
46public:
47 // member functions
48 // NOLINTBEGIN
49 MCAPI MangrovePropaguleBlock(::std::string const& nameId, int id);
50
51 MCAPI void randomTick(::BlockEvents::BlockRandomTickEvent& eventData) const;
52 // NOLINTEND
53
54public:
55 // static functions
56 // NOLINTBEGIN
57 MCAPI static bool _growTree(::BlockSource& region, ::BlockPos const& pos, ::Random& random);
58
59 MCAPI static bool _isHanging(::Block const& block);
60 // NOLINTEND
61
62public:
63 // constructor thunks
64 // NOLINTBEGIN
65 MCAPI void* $ctor(::std::string const& nameId, int id);
66 // NOLINTEND
67
68public:
69 // virtual function thunks
70 // NOLINTBEGIN
71 MCAPI bool $mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const;
72
73 MCAPI bool $canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const;
74
75 MCAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
76
77 MCAPI bool
78 $onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fertilizerType) const;
79
80 MCAPI ::AABB const& $getVisualShape(::Block const& block, ::AABB& bufferAABB) const;
81
82 MCAPI int $getVariant(::Block const& block) const;
83
84 MCAPI ::Block const& $getInitialDefaultState();
85
86
87 // NOLINTEND
88
89public:
90 // vftables
91 // NOLINTBEGIN
92 MCAPI static void** $vftable();
93 // NOLINTEND
94};
Definition AABB.h:18
Definition Actor.h:113
Definition BlockRandomTickEvent.h:16
Definition BlockPos.h:17
Definition BlockSource.h:71
Definition Block.h:41
Definition FoliageBlock.h:21
Definition Random.h:10