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