LeviLamina
Loading...
Searching...
No Matches
MushroomBlock.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/BushBlock.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class Block;
13class BlockPos;
14class BlockSource;
15class Random;
16// clang-format on
17
18class MushroomBlock : public ::BushBlock {
19public:
20 // virtual functions
21 // NOLINTBEGIN
22 // vIndex: 137
23 virtual void randomTick(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const /*override*/;
24
25 // vIndex: 80
26 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar face) const /*override*/;
27
28 // vIndex: 81
29 virtual bool mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
30
31 // vIndex: 142
32 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
33
34 // vIndex: 74
35 virtual bool
36 onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const
37 /*override*/;
38
39 // vIndex: 76
40 virtual bool canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const
41 /*override*/;
42
43 // vIndex: 0
44 virtual ~MushroomBlock() /*override*/ = default;
45 // NOLINTEND
46
47public:
48 // destructor thunk
49 // NOLINTBEGIN
50
51 // NOLINTEND
52
53public:
54 // virtual function thunks
55 // NOLINTBEGIN
56 MCAPI void $randomTick(::BlockSource& region, ::BlockPos const& pos, ::Random& random) const;
57
58 MCAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar face) const;
59
60 MCAPI bool $mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const;
61
62 MCAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
63
64 MCAPI bool
65 $onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const;
66
67 MCFOLD bool $canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const;
68 // NOLINTEND
69
70public:
71 // vftables
72 // NOLINTBEGIN
73 MCAPI static void** $vftable();
74 // NOLINTEND
75};
Definition Actor.h:104
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:36
Definition BushBlock.h:23
Definition MushroomBlock.h:18
Definition Random.h:16