LeviLamina
Loading...
Searching...
No Matches
BambooStalkBlock.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/BlockType.h"
8
9
// auto generated forward declare list
10
// clang-format off
11
class
AABB
;
12
class
Actor
;
13
class
Block
;
14
class
BlockPos
;
15
class
BlockSource
;
16
class
Vec3
;
17
namespace
BlockEvents {
class
BlockPlaceEvent
; }
18
namespace
BlockEvents {
class
BlockQueuedTickEvent
; }
19
namespace
BlockEvents {
class
BlockRandomTickEvent
; }
20
struct
BlockGraphicsModeChangeContext
;
21
// clang-format on
22
23
class
BambooStalkBlock :
public
::BlockType {
24
public
:
25
// prevent constructor by default
26
BambooStalkBlock();
27
28
public
:
29
// virtual functions
30
// NOLINTBEGIN
31
virtual ::Block
const
&
32
getPlacementBlock(
::Actor
const
& by,
::BlockPos
const
& pos, uchar face,
::Vec3
const
& clickPos,
int
itemValue)
const
33
/*override*/
;
34
35
virtual
bool
canSurvive(
::BlockSource
& region,
::BlockPos
const
& pos)
const
/*override*/
;
36
37
virtual
void
neighborChanged(
::BlockSource
& region,
::BlockPos
const
& pos,
::BlockPos
const
& neighborPos)
const
38
/*override*/
;
39
40
virtual
bool
onFertilized(
::BlockSource
& region,
::BlockPos
const
& pos,
::Actor
*, ::FertilizerType)
const
41
/*override*/
;
42
43
virtual
bool
mayConsumeFertilizer(
::BlockSource
&)
const
/*override*/
;
44
45
virtual
bool
canBeFertilized(
::BlockSource
&,
::BlockPos
const
&,
::Block
const
&)
const
/*override*/
;
46
47
virtual
bool
isValidAuxValue(
int
auxValue)
const
/*override*/
;
48
49
virtual ::AABB
const
& getVisualShape(
::Block
const
& block,
::AABB
&)
const
/*override*/
;
50
51
virtual
bool
isLavaBlocking()
const
/*override*/
;
52
53
virtual
bool
mayPlace(
::BlockSource
& region,
::BlockPos
const
& pos)
const
/*override*/
;
54
55
virtual
void
onGraphicsModeChanged(
::BlockGraphicsModeChangeContext
const
&
context
)
/*override*/
;
56
// NOLINTEND
57
58
public
:
59
// member functions
60
// NOLINTBEGIN
61
MCAPI BambooStalkBlock(::std::string
const
& nameId,
int
id
);
62
63
MCAPI ::Block
const
& _determineNewBlockState(
::BlockSource
& region,
::BlockPos
const
& pos)
const
;
64
65
MCAPI
void
_placeBamboo(
::BlockSource
& region,
::BlockPos
const
& pos)
const
;
66
67
MCAPI
void
onPlace(
::BlockEvents::BlockPlaceEvent
& eventData)
const
;
68
69
MCAPI
void
randomTick(
::BlockEvents::BlockRandomTickEvent
& eventData)
const
;
70
71
MCFOLD
void
tick(
::BlockEvents::BlockQueuedTickEvent
& eventData)
const
;
72
// NOLINTEND
73
74
public
:
75
// static functions
76
// NOLINTBEGIN
77
MCAPI
static
int
getMaxHeight(
::BlockPos
const
& pos);
78
// NOLINTEND
79
80
public
:
81
// constructor thunks
82
// NOLINTBEGIN
83
MCAPI
void
* $ctor(::std::string
const
& nameId,
int
id
);
84
// NOLINTEND
85
86
public
:
87
// virtual function thunks
88
// NOLINTBEGIN
89
MCAPI ::Block
const
& $getPlacementBlock(
90
::Actor
const
& by,
91
::BlockPos
const
& pos,
92
uchar face,
93
::Vec3
const
& clickPos,
94
int
itemValue
95
)
const
;
96
97
MCFOLD
bool
$canSurvive(
::BlockSource
& region,
::BlockPos
const
& pos)
const
;
98
99
MCFOLD
void
$neighborChanged(
::BlockSource
& region,
::BlockPos
const
& pos,
::BlockPos
const
& neighborPos)
const
;
100
101
MCAPI
bool
$onFertilized(
::BlockSource
& region,
::BlockPos
const
& pos,
::Actor
*, ::FertilizerType)
const
;
102
103
MCFOLD
bool
$mayConsumeFertilizer(
::BlockSource
&)
const
;
104
105
MCFOLD
bool
$canBeFertilized(
::BlockSource
&,
::BlockPos
const
&,
::Block
const
&)
const
;
106
107
MCAPI
bool
$isValidAuxValue(
int
auxValue)
const
;
108
109
MCAPI ::AABB
const
& $getVisualShape(
::Block
const
& block,
::AABB
&)
const
;
110
111
MCFOLD
bool
$isLavaBlocking()
const
;
112
113
MCAPI
bool
$mayPlace(
::BlockSource
& region,
::BlockPos
const
& pos)
const
;
114
115
MCAPI
void
$onGraphicsModeChanged(
::BlockGraphicsModeChangeContext
const
&
context
);
116
117
118
// NOLINTEND
119
120
public
:
121
// vftables
122
// NOLINTBEGIN
123
MCAPI
static
void
** $vftable();
124
// NOLINTEND
125
};
AABB
Definition
AABB.h:18
Actor
Definition
Actor.h:125
BlockEvents::BlockPlaceEvent
Definition
BlockPlaceEvent.h:18
BlockEvents::BlockQueuedTickEvent
Definition
BlockQueuedTickEvent.h:18
BlockEvents::BlockRandomTickEvent
Definition
BlockRandomTickEvent.h:17
BlockPos
Definition
BlockPos.h:21
BlockSource
Definition
BlockSource.h:73
Block
Definition
Block.h:69
Vec3
Definition
Vec3.h:10
BlockGraphicsModeChangeContext
Definition
BlockGraphicsModeChangeContext.h:5
context
Definition
context.h:5
src
mc
world
level
block
BambooStalkBlock.h
Generated on
for LeviLamina by
1.16.1