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 BlockLegacy;
15class BlockPos;
16class BlockSource;
17class Experiments;
18class Random;
19namespace BlockEvents { class BlockRandomTickEvent; }
20// clang-format on
21
23public:
24 // virtual functions
25 // NOLINTBEGIN
26 // vIndex: 124
27 virtual ::BlockLegacy& init() /*override*/;
28
29 // vIndex: 80
30 virtual bool mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
31
32 // vIndex: 75
33 virtual bool canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const
34 /*override*/;
35
36 // vIndex: 138
37 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
38
39 // vIndex: 73
40 virtual bool
41 onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const
42 /*override*/;
43
44 // vIndex: 11
45 virtual ::AABB const& getVisualShape(::Block const& block, ::AABB& bufferAABB) const /*override*/;
46
47 // vIndex: 117
48 virtual int getVariant(::Block const& block) const /*override*/;
49
50 // vIndex: 130
51 virtual void _addHardCodedBlockComponents(::Experiments const& experiments) /*override*/;
52
53 // vIndex: 0
54 virtual ~MangrovePropaguleBlock() /*override*/ = default;
55 // NOLINTEND
56
57public:
58 // member functions
59 // NOLINTBEGIN
60 MCAPI bool _growTree(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const;
61
62 MCAPI bool _isFullyGrown(::Block const& block) const;
63
64 MCAPI bool _isHanging(::Block const& block) const;
65
66 MCAPI void randomTick(::BlockEvents::BlockRandomTickEvent& eventData) const;
67 // NOLINTEND
68
69public:
70 // virtual function thunks
71 // NOLINTBEGIN
72 MCAPI ::BlockLegacy& $init();
73
74 MCAPI bool $mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const;
75
76 MCAPI bool $canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const;
77
78 MCAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
79
80 MCAPI bool
81 $onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const;
82
83 MCAPI ::AABB const& $getVisualShape(::Block const& block, ::AABB& bufferAABB) const;
84
85 MCAPI int $getVariant(::Block const& block) const;
86
87 MCAPI void $_addHardCodedBlockComponents(::Experiments const& experiments);
88 // NOLINTEND
89
90public:
91 // vftables
92 // NOLINTBEGIN
93 MCNAPI static void** $vftable();
94 // NOLINTEND
95};
Definition AABB.h:18
Definition Actor.h:103
Definition BlockRandomTickEvent.h:16
Definition BlockLegacy.h:88
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:38
Definition Experiments.h:14
Definition FoliageBlock.h:23
Definition MangrovePropaguleBlock.h:22
static MCAPI void ** $vftable()
Definition Random.h:11
Definition BlockRandomTickEvent.h:13