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/FoliageBlock.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class Block;
13class BlockPos;
14class BlockSource;
15namespace BlockEvents { class BlockRandomTickEvent; }
16// clang-format on
17
18class MushroomBlock : public ::FoliageBlock {
19public:
20 // prevent constructor by default
21 MushroomBlock();
22
23public:
24 // virtual functions
25 // NOLINTBEGIN
26 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar face) const /*override*/;
27
28 virtual bool mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
29
30 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
31
32 virtual bool
33 onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const
34 /*override*/;
35
36 virtual bool canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const
37 /*override*/;
38 // NOLINTEND
39
40public:
41 // member functions
42 // NOLINTBEGIN
43 MCAPI MushroomBlock(::std::string const& nameId, int id);
44
45 MCAPI void randomTick(::BlockEvents::BlockRandomTickEvent& eventData) const;
46 // NOLINTEND
47
48public:
49 // constructor thunks
50 // NOLINTBEGIN
51 MCAPI void* $ctor(::std::string const& nameId, int id);
52 // NOLINTEND
53
54public:
55 // virtual function thunks
56 // NOLINTBEGIN
57 MCFOLD bool $mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar face) const;
58
59 MCAPI bool $mayPlaceOn(::BlockSource& region, ::BlockPos const& pos) const;
60
61 MCAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
62
63 MCAPI bool
64 $onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const;
65
66 MCFOLD bool $canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const;
67
68
69 // NOLINTEND
70
71public:
72 // vftables
73 // NOLINTBEGIN
74 MCAPI static void** $vftable();
75 // NOLINTEND
76};
Definition Actor.h:114
Definition BlockRandomTickEvent.h:16
Definition BlockPos.h:17
Definition BlockSource.h:71
Definition Block.h:42
Definition FoliageBlock.h:21