LeviLamina
Loading...
Searching...
No Matches
KelpBlock.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/deps/core/utility/optional_ref.h"
7
#include "mc/world/item/FertilizerType.h"
8
#include "mc/world/level/block/BlockLegacy.h"
9
10
// auto generated forward declare list
11
// clang-format off
12
class
AABB
;
13
class
Actor
;
14
class
Block
;
15
class
BlockActor
;
16
class
BlockPos
;
17
class
BlockSource
;
18
class
Experiments
;
19
class
GetCollisionShapeInterface
;
20
class
IConstBlockSource
;
21
class
ItemInstance
;
22
class
Player
;
23
class
Random
;
24
struct
BlockGraphicsModeChangeContext
;
25
namespace
BlockEvents {
class
BlockPlaceEvent; }
26
// clang-format on
27
28
class
KelpBlock
:
public
::BlockLegacy
{
29
public
:
30
// virtual functions
31
// NOLINTBEGIN
32
// vIndex: 136
33
virtual
void
tick(
::BlockSource
& region,
::BlockPos
const
& pos,
::Random
& random)
const
/*override*/
;
34
35
// vIndex: 139
36
virtual
bool
use(
::Player
& player,
::BlockPos
const
& pos, uchar face)
const
/*override*/
;
37
38
// vIndex: 79
39
virtual
bool
mayPlace(
::BlockSource
& region,
::BlockPos
const
& pos)
const
/*override*/
;
40
41
// vIndex: 87
42
virtual
void
neighborChanged(
::BlockSource
& region,
::BlockPos
const
& pos,
::BlockPos
const
& neighborPos)
const
43
/*override*/
;
44
45
// vIndex: 74
46
virtual
bool
47
onFertilized(
::BlockSource
& region,
::BlockPos
const
& pos,
::Actor
* actor, ::FertilizerType fType)
const
48
/*override*/
;
49
50
// vIndex: 75
51
virtual
bool
mayConsumeFertilizer(
::BlockSource
& region)
const
/*override*/
;
52
53
// vIndex: 76
54
virtual
bool
canBeFertilized(
::BlockSource
& region,
::BlockPos
const
& pos,
::Block
const
& aboveBlock)
const
55
/*override*/
;
56
57
// vIndex: 142
58
virtual
bool
canSurvive(
::BlockSource
& region,
::BlockPos
const
& pos)
const
/*override*/
;
59
60
// vIndex: 5
61
virtual ::AABB
62
getCollisionShape(
::Block
const
&,
::IConstBlockSource
const
&,
::BlockPos
const
&,
::optional_ref<::GetCollisionShapeInterface const>
)
63
const
/*override*/
;
64
65
// vIndex: 9
66
virtual ::AABB
const
&
67
getOutline(
::Block
const
&,
::IConstBlockSource
const
&,
::BlockPos
const
& pos,
::AABB
& bufferValue)
const
68
/*override*/
;
69
70
// vIndex: 90
71
virtual ::ItemInstance asItemInstance(
::Block
const
&,
::BlockActor
const
*)
const
/*override*/
;
72
73
// vIndex: 115
74
virtual
void
onGraphicsModeChanged(
::BlockGraphicsModeChangeContext
const
&
context
)
/*override*/
;
75
76
// vIndex: 131
77
virtual
void
_addHardCodedBlockComponents(
::Experiments
const
&)
/*override*/
;
78
79
// vIndex: 0
80
virtual
~KelpBlock
()
/*override*/
=
default
;
81
// NOLINTEND
82
83
public
:
84
// member functions
85
// NOLINTBEGIN
86
MCAPI
void
_tryGrow(
::BlockSource
& region,
::BlockPos
const
& pos,
int
age)
const
;
87
88
MCAPI
void
onPlace(
::BlockEvents::BlockPlaceEvent
& eventData)
const
;
89
90
MCAPI
bool
shouldGrow(
::BlockSource
& region,
::BlockPos
const
& pos)
const
;
91
// NOLINTEND
92
93
public
:
94
// destructor thunk
95
// NOLINTBEGIN
96
97
// NOLINTEND
98
99
public
:
100
// virtual function thunks
101
// NOLINTBEGIN
102
MCAPI
void
$tick(
::BlockSource
& region,
::BlockPos
const
& pos,
::Random
& random)
const
;
103
104
MCAPI
bool
$use(
::Player
& player,
::BlockPos
const
& pos, uchar face)
const
;
105
106
MCAPI
bool
$mayPlace(
::BlockSource
& region,
::BlockPos
const
& pos)
const
;
107
108
MCAPI
void
$neighborChanged(
::BlockSource
& region,
::BlockPos
const
& pos,
::BlockPos
const
& neighborPos)
const
;
109
110
MCAPI
bool
111
$onFertilized(
::BlockSource
& region,
::BlockPos
const
& pos,
::Actor
* actor, ::FertilizerType fType)
const
;
112
113
MCFOLD
bool
$mayConsumeFertilizer(
::BlockSource
& region)
const
;
114
115
MCFOLD
bool
$canBeFertilized(
::BlockSource
& region,
::BlockPos
const
& pos,
::Block
const
& aboveBlock)
const
;
116
117
MCFOLD
bool
$canSurvive(
::BlockSource
& region,
::BlockPos
const
& pos)
const
;
118
119
MCFOLD ::AABB
120
$getCollisionShape(
::Block
const
&,
::IConstBlockSource
const
&,
::BlockPos
const
&,
::optional_ref<::GetCollisionShapeInterface const>
)
121
const
;
122
123
MCFOLD ::AABB
const
&
124
$getOutline(
::Block
const
&,
::IConstBlockSource
const
&,
::BlockPos
const
& pos,
::AABB
& bufferValue)
const
;
125
126
MCAPI ::ItemInstance $asItemInstance(
::Block
const
&,
::BlockActor
const
*)
const
;
127
128
MCFOLD
void
$onGraphicsModeChanged(
::BlockGraphicsModeChangeContext
const
&
context
);
129
130
MCAPI
void
$_addHardCodedBlockComponents(
::Experiments
const
&);
131
// NOLINTEND
132
133
public
:
134
// vftables
135
// NOLINTBEGIN
136
MCAPI
static
void
** $vftable();
137
// NOLINTEND
138
};
AABB
Definition
AABB.h:16
Actor
Definition
Actor.h:104
BlockActor
Definition
BlockActor.h:32
BlockEvents::BlockPlaceEvent
Definition
BlockPlaceEvent.h:15
BlockLegacy
Definition
BlockLegacy.h:88
BlockPos
Definition
BlockPos.h:18
BlockSource
Definition
BlockSource.h:67
Block
Definition
Block.h:36
Experiments
Definition
Experiments.h:14
GetCollisionShapeInterface
Definition
GetCollisionShapeInterface.h:13
IConstBlockSource
Definition
IConstBlockSource.h:24
ItemInstance
Definition
ItemInstance.h:16
KelpBlock
Definition
KelpBlock.h:28
Player
Definition
Player.h:119
Random
Definition
Random.h:16
optional_ref
Definition
optional_ref.h:10
BlockGraphicsModeChangeContext
Definition
BlockGraphicsModeChangeContext.h:5
context
Definition
context.h:5
src
mc
world
level
block
KelpBlock.h
Generated on Sat Apr 26 2025 05:56:21 for LeviLamina by
1.12.0