LeviLamina
Loading...
Searching...
No Matches
ChorusFlowerBlock.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/world/level/block/BlockSupportType.h"
7
#include "mc/world/level/block/BlockType.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
class
Random
;
16
namespace
BlockEvents {
class
BlockQueuedTickEvent
; }
17
namespace
BlockEvents {
class
BlockRandomTickEvent
; }
18
// clang-format on
19
20
class
ChorusFlowerBlock
:
public
::BlockType {
21
public
:
22
// virtual functions
23
// NOLINTBEGIN
24
virtual
int
getVariant(
::Block
const
& block)
const
/*override*/
;
25
26
virtual
bool
mayPlace(
::BlockSource
& region,
::BlockPos
const
& pos)
const
/*override*/
;
27
28
virtual
void
neighborChanged(
::BlockSource
& region,
::BlockPos
const
& pos,
::BlockPos
const
& neighborPos)
const
29
/*override*/
;
30
31
virtual
bool
canSurvive(
::BlockSource
& region,
::BlockPos
const
& pos)
const
/*override*/
;
32
33
virtual
bool
canProvideSupport(
::Block
const
&, uchar face, ::BlockSupportType type)
const
/*override*/
;
34
35
virtual
void
onProjectileHit(
::BlockSource
& region,
::BlockPos
const
& pos,
::Actor
const
&)
const
/*override*/
;
36
37
virtual
bool
isLavaBlocking()
const
/*override*/
;
38
// NOLINTEND
39
40
public
:
41
// member functions
42
// NOLINTBEGIN
43
MCAPI
void
_placeGrownFlower(
::BlockSource
& region,
::BlockPos
const
& pos,
int
newAge)
const
;
44
45
MCAPI
void
randomTick(
::BlockEvents::BlockRandomTickEvent
& eventData)
const
;
46
47
MCFOLD
void
tick(
::BlockEvents::BlockQueuedTickEvent
& eventData)
const
;
48
// NOLINTEND
49
50
public
:
51
// static functions
52
// NOLINTBEGIN
53
MCAPI
static
bool
_allNeighborsEmpty(
::BlockSource
& region,
::BlockPos
const
& pos, uchar ignore);
54
55
MCAPI
static
void
_growTreeRecursive(
56
::BlockSource
& region,
57
::BlockPos
const
& current,
58
::BlockPos
const
& startPos,
59
::Random
& random,
60
int
maxHorizontalSpread,
61
int
depth
62
);
63
// NOLINTEND
64
65
public
:
66
// virtual function thunks
67
// NOLINTBEGIN
68
MCAPI
int
$getVariant(
::Block
const
& block)
const
;
69
70
MCFOLD
bool
$mayPlace(
::BlockSource
& region,
::BlockPos
const
& pos)
const
;
71
72
MCFOLD
void
$neighborChanged(
::BlockSource
& region,
::BlockPos
const
& pos,
::BlockPos
const
& neighborPos)
const
;
73
74
MCAPI
bool
$canSurvive(
::BlockSource
& region,
::BlockPos
const
& pos)
const
;
75
76
MCFOLD
bool
$canProvideSupport(
::Block
const
&, uchar face, ::BlockSupportType type)
const
;
77
78
MCAPI
void
$onProjectileHit(
::BlockSource
& region,
::BlockPos
const
& pos,
::Actor
const
&)
const
;
79
80
MCFOLD
bool
$isLavaBlocking()
const
;
81
82
83
// NOLINTEND
84
85
public
:
86
// vftables
87
// NOLINTBEGIN
88
MCAPI
static
void
** $vftable();
89
// NOLINTEND
90
};
Actor
Definition
Actor.h:113
BlockEvents::BlockQueuedTickEvent
Definition
BlockQueuedTickEvent.h:16
BlockEvents::BlockRandomTickEvent
Definition
BlockRandomTickEvent.h:16
BlockPos
Definition
BlockPos.h:17
BlockSource
Definition
BlockSource.h:71
Block
Definition
Block.h:41
ChorusFlowerBlock
Definition
ChorusFlowerBlock.h:20
Random
Definition
Random.h:10
src
mc
world
level
block
ChorusFlowerBlock.h
Generated on
for LeviLamina by
1.16.1