LeviLamina
Loading...
Searching...
No Matches
AzaleaBlock.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;
19class Random;
20// clang-format on
21
22class AzaleaBlock : public ::FoliageBlock {
23public:
24 // prevent constructor by default
25 AzaleaBlock();
26
27public:
28 // virtual functions
29 // NOLINTBEGIN
30 virtual ::AABB getCollisionShape(
31 ::Block const& block,
32 ::IConstBlockSource const& region,
33 ::BlockPos const& pos,
35 ) const /*override*/;
36
37 virtual bool
38 onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const
39 /*override*/;
40
41 virtual bool canBeFertilized(::BlockSource&, ::BlockPos const&, ::Block const&) const /*override*/;
42
43 virtual bool canProvideMultifaceSupport(::Block const& block, uchar face) const /*override*/;
44
45 virtual bool isLavaBlocking() const /*override*/;
46
47 virtual bool mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
48 // NOLINTEND
49
50public:
51 // member functions
52 // NOLINTBEGIN
53 MCAPI AzaleaBlock(::std::string const& nameId, int id);
54
55 MCAPI bool _growTree(::BlockSource& region, ::BlockPos const& pos, ::Random& random) 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 MCFOLD ::AABB $getCollisionShape(
68 ::Block const& block,
69 ::IConstBlockSource const& region,
70 ::BlockPos const& pos,
72 ) const;
73
74 MCAPI bool
75 $onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const;
76
77 MCFOLD bool $canBeFertilized(::BlockSource&, ::BlockPos const&, ::Block const&) const;
78
79 MCFOLD bool $canProvideMultifaceSupport(::Block const& block, uchar face) const;
80
81 MCFOLD bool $isLavaBlocking() const;
82
83 MCAPI bool $mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const;
84
85
86 // NOLINTEND
87
88public:
89 // vftables
90 // NOLINTBEGIN
91 MCAPI static void** $vftable();
92 // NOLINTEND
93};
Definition AABB.h:18
Definition Actor.h:125
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Block.h:69
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:24
Definition Random.h:10
Definition optional_ref.h:10