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
11
class
Actor
;
12
class
Block
;
13
class
BlockPos
;
14
class
BlockSource
;
15
namespace
BlockEvents {
class
BlockRandomTickEvent
; }
16
// clang-format on
17
18
class
MushroomBlock :
public
::FoliageBlock
{
19
public
:
20
// prevent constructor by default
21
MushroomBlock();
22
23
public
:
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
40
public
:
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
48
public
:
49
// constructor thunks
50
// NOLINTBEGIN
51
MCAPI
void
* $ctor(::std::string
const
& nameId,
int
id
);
52
// NOLINTEND
53
54
public
:
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
71
public
:
72
// vftables
73
// NOLINTBEGIN
74
MCAPI
static
void
** $vftable();
75
// NOLINTEND
76
};
Actor
Definition
Actor.h:114
BlockEvents::BlockRandomTickEvent
Definition
BlockRandomTickEvent.h:16
BlockPos
Definition
BlockPos.h:17
BlockSource
Definition
BlockSource.h:71
Block
Definition
Block.h:42
FoliageBlock
Definition
FoliageBlock.h:21
src
mc
world
level
block
MushroomBlock.h
Generated on
for LeviLamina by
1.16.1