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
41
onFertilized(
::BlockSource
& region,
::BlockPos
const
& pos,
::Actor
* actor, ::FertilizerType fType)
const
42
/*override*/
;
43
44
virtual
bool
mayConsumeFertilizer(
::BlockSource
& region)
const
/*override*/
;
45
46
virtual
bool
canBeFertilized(
::BlockSource
& region,
::BlockPos
const
& pos,
::Block
const
& aboveBlock)
const
47
/*override*/
;
48
49
virtual
bool
isValidAuxValue(
int
auxValue)
const
/*override*/
;
50
51
virtual ::AABB
const
& getVisualShape(
::Block
const
& block,
::AABB
&)
const
/*override*/
;
52
53
virtual
bool
isLavaBlocking()
const
/*override*/
;
54
55
virtual
bool
mayPlace(
::BlockSource
& region,
::BlockPos
const
& pos)
const
/*override*/
;
56
57
virtual
void
onGraphicsModeChanged(
::BlockGraphicsModeChangeContext
const
&
context
)
/*override*/
;
58
// NOLINTEND
59
60
public
:
61
// member functions
62
// NOLINTBEGIN
63
MCAPI BambooStalkBlock(::std::string
const
& nameId,
int
id
);
64
65
MCAPI ::Block
const
& _determineNewBlockState(
::BlockSource
& region,
::BlockPos
const
& pos)
const
;
66
67
MCAPI
void
_placeBamboo(
::BlockSource
& region,
::BlockPos
const
& pos)
const
;
68
69
MCAPI
void
onPlace(
::BlockEvents::BlockPlaceEvent
& eventData)
const
;
70
71
MCAPI
void
randomTick(
::BlockEvents::BlockRandomTickEvent
& eventData)
const
;
72
73
MCFOLD
void
tick(
::BlockEvents::BlockQueuedTickEvent
& eventData)
const
;
74
// NOLINTEND
75
76
public
:
77
// constructor thunks
78
// NOLINTBEGIN
79
MCAPI
void
* $ctor(::std::string
const
& nameId,
int
id
);
80
// NOLINTEND
81
82
public
:
83
// virtual function thunks
84
// NOLINTBEGIN
85
MCAPI ::Block
const
& $getPlacementBlock(
86
::Actor
const
& by,
87
::BlockPos
const
& pos,
88
uchar face,
89
::Vec3
const
& clickPos,
90
int
itemValue
91
)
const
;
92
93
MCFOLD
bool
$canSurvive(
::BlockSource
& region,
::BlockPos
const
& pos)
const
;
94
95
MCFOLD
void
$neighborChanged(
::BlockSource
& region,
::BlockPos
const
& pos,
::BlockPos
const
& neighborPos)
const
;
96
97
MCAPI
bool
98
$onFertilized(
::BlockSource
& region,
::BlockPos
const
& pos,
::Actor
* actor, ::FertilizerType fType)
const
;
99
100
MCFOLD
bool
$mayConsumeFertilizer(
::BlockSource
& region)
const
;
101
102
MCFOLD
bool
$canBeFertilized(
::BlockSource
& region,
::BlockPos
const
& pos,
::Block
const
& aboveBlock)
const
;
103
104
MCAPI
bool
$isValidAuxValue(
int
auxValue)
const
;
105
106
MCAPI ::AABB
const
& $getVisualShape(
::Block
const
& block,
::AABB
&)
const
;
107
108
MCFOLD
bool
$isLavaBlocking()
const
;
109
110
MCAPI
bool
$mayPlace(
::BlockSource
& region,
::BlockPos
const
& pos)
const
;
111
112
MCAPI
void
$onGraphicsModeChanged(
::BlockGraphicsModeChangeContext
const
&
context
);
113
114
115
// NOLINTEND
116
117
public
:
118
// vftables
119
// NOLINTBEGIN
120
MCAPI
static
void
** $vftable();
121
// NOLINTEND
122
};
AABB
Definition
AABB.h:18
Actor
Definition
Actor.h:113
BlockEvents::BlockPlaceEvent
Definition
BlockPlaceEvent.h:16
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
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