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 BlockType;
17class Random;
18namespace BlockEvents { class BlockRandomTickEvent; }
19// clang-format on
20
21class MangrovePropaguleBlock : public ::FoliageBlock {
22public:
23 // prevent constructor by default
24 MangrovePropaguleBlock();
25
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 virtual ::BlockType& init() /*override*/;
30
31 virtual bool mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
32
33 virtual bool canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const&) const /*override*/;
34
35 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
36
37 virtual bool
38 onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fertilizerType) const
39 /*override*/;
40
41 virtual ::AABB const& getVisualShape(::Block const& block, ::AABB& bufferAABB) const /*override*/;
42
43 virtual int getVariant(::Block const& block) const /*override*/;
44 // NOLINTEND
45
46public:
47 // member functions
48 // NOLINTBEGIN
49 MCAPI MangrovePropaguleBlock(::std::string const& nameId, int id);
50
51 MCAPI bool _growTree(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const;
52
53 MCAPI bool _isHanging(::Block const& block) const;
54
55 MCAPI void randomTick(::BlockEvents::BlockRandomTickEvent& eventData) const;
56 // NOLINTEND
57
58public:
59 // constructor thunks
60 // NOLINTBEGIN
61 MCAPI void* $ctor(::std::string const& nameId, int id);
62 // NOLINTEND
63
64public:
65 // virtual function thunks
66 // NOLINTBEGIN
67 MCAPI ::BlockType& $init();
68
69 MCAPI bool $mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const;
70
71 MCAPI bool $canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const&) const;
72
73 MCAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
74
75 MCAPI bool
76 $onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fertilizerType) const;
77
78 MCAPI ::AABB const& $getVisualShape(::Block const& block, ::AABB& bufferAABB) const;
79
80 MCAPI int $getVariant(::Block const& block) const;
81
82
83 // NOLINTEND
84
85public:
86 // vftables
87 // NOLINTBEGIN
88 MCAPI static void** $vftable();
89 // NOLINTEND
90};
Definition AABB.h:18
Definition Actor.h:125
Definition BlockRandomTickEvent.h:17
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition BlockType.h:84
Definition Block.h:69
Definition Random.h:10