LeviLamina
Loading...
Searching...
No Matches
CactusBlock.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/level/block/BlockLegacy.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
Experiments
;
17
class
GetCollisionShapeInterface
;
18
class
IConstBlockSource
;
19
class
Random
;
20
struct
BlockGraphicsModeChangeContext
;
21
namespace
BlockEvents {
class
BlockQueuedTickEvent; }
22
// clang-format on
23
24
class
CactusBlock
:
public
::BlockLegacy
{
25
public
:
26
// member variables
27
// NOLINTBEGIN
28
::ll::TypedStorage<1, 1, bool> mGrowCactusFlowers;
29
// NOLINTEND
30
31
public
:
32
// virtual functions
33
// NOLINTBEGIN
34
// vIndex: 135
35
virtual
void
randomTick(
::BlockSource
& region,
::BlockPos
const
& pos,
::Random
& random)
const
/*override*/
;
36
37
// vIndex: 5
38
virtual ::AABB getCollisionShape(
39
::Block
const
&,
40
::IConstBlockSource
const
&,
41
::BlockPos
const
& pos,
42
::optional_ref<::GetCollisionShapeInterface const>
43
)
const
/*override*/
;
44
45
// vIndex: 9
46
virtual ::AABB
const
&
47
getOutline(
::Block
const
&,
::IConstBlockSource
const
&,
::BlockPos
const
& pos,
::AABB
& bufferValue)
const
48
/*override*/
;
49
50
// vIndex: 114
51
virtual
void
onGraphicsModeChanged(
::BlockGraphicsModeChangeContext
const
&
context
)
/*override*/
;
52
53
// vIndex: 78
54
virtual
bool
mayPlace(
::BlockSource
& region,
::BlockPos
const
& pos)
const
/*override*/
;
55
56
// vIndex: 86
57
virtual
void
neighborChanged(
::BlockSource
& region,
::BlockPos
const
& pos,
::BlockPos
const
& neighborPos)
const
58
/*override*/
;
59
60
// vIndex: 138
61
virtual
bool
canSurvive(
::BlockSource
& region,
::BlockPos
const
& pos)
const
/*override*/
;
62
63
// vIndex: 47
64
virtual
bool
isValidAuxValue(
int
value)
const
/*override*/
;
65
66
// vIndex: 127
67
virtual
bool
dealsContactDamage(
::Actor
const
& actor,
::Block
const
& block,
bool
isPathFinding)
const
/*override*/
;
68
69
// vIndex: 130
70
virtual
void
_addHardCodedBlockComponents(
::Experiments
const
&)
/*override*/
;
71
72
// vIndex: 0
73
virtual
~CactusBlock
()
/*override*/
=
default
;
74
// NOLINTEND
75
76
public
:
77
// member functions
78
// NOLINTBEGIN
79
MCFOLD
void
tick(
::BlockEvents::BlockQueuedTickEvent
& eventData)
const
;
80
// NOLINTEND
81
82
public
:
83
// virtual function thunks
84
// NOLINTBEGIN
85
MCAPI
void
$randomTick(
::BlockSource
& region,
::BlockPos
const
& pos,
::Random
& random)
const
;
86
87
MCAPI ::AABB $getCollisionShape(
88
::Block
const
&,
89
::IConstBlockSource
const
&,
90
::BlockPos
const
& pos,
91
::optional_ref<::GetCollisionShapeInterface const>
92
)
const
;
93
94
MCFOLD ::AABB
const
&
95
$getOutline(
::Block
const
&,
::IConstBlockSource
const
&,
::BlockPos
const
& pos,
::AABB
& bufferValue)
const
;
96
97
MCAPI
void
$onGraphicsModeChanged(
::BlockGraphicsModeChangeContext
const
&
context
);
98
99
MCAPI
bool
$mayPlace(
::BlockSource
& region,
::BlockPos
const
& pos)
const
;
100
101
MCFOLD
void
$neighborChanged(
::BlockSource
& region,
::BlockPos
const
& pos,
::BlockPos
const
& neighborPos)
const
;
102
103
MCAPI
bool
$canSurvive(
::BlockSource
& region,
::BlockPos
const
& pos)
const
;
104
105
MCFOLD
bool
$isValidAuxValue(
int
value)
const
;
106
107
MCFOLD
bool
$dealsContactDamage(
::Actor
const
& actor,
::Block
const
& block,
bool
isPathFinding)
const
;
108
109
MCAPI
void
$_addHardCodedBlockComponents(
::Experiments
const
&);
110
// NOLINTEND
111
112
public
:
113
// vftables
114
// NOLINTBEGIN
115
MCNAPI
static
void
**
$vftable
();
116
// NOLINTEND
117
};
AABB
Definition
AABB.h:18
Actor
Definition
Actor.h:103
BlockEvents::BlockQueuedTickEvent
Definition
BlockQueuedTickEvent.h:16
BlockLegacy
Definition
BlockLegacy.h:88
BlockPos
Definition
BlockPos.h:18
BlockSource
Definition
BlockSource.h:67
Block
Definition
Block.h:38
CactusBlock
Definition
CactusBlock.h:24
CactusBlock::$vftable
static MCAPI void ** $vftable()
Experiments
Definition
Experiments.h:14
GetCollisionShapeInterface
Definition
GetCollisionShapeInterface.h:13
IConstBlockSource
Definition
IConstBlockSource.h:24
Random
Definition
Random.h:11
optional_ref
Definition
optional_ref.h:10
BlockGraphicsModeChangeContext
Definition
BlockGraphicsModeChangeContext.h:5
context
Definition
context.h:5
src
mc
world
level
block
CactusBlock.h
Generated on Fri Jun 13 2025 05:05:13 for LeviLamina by
1.12.0