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/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
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
::BlockType {
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
virtual ::AABB getCollisionShape(
35
::Block
const
&,
36
::IConstBlockSource
const
&,
37
::BlockPos
const
& pos,
38
::optional_ref<::GetCollisionShapeInterface const>
39
)
const
/*override*/
;
40
41
virtual ::AABB
const
&
42
getOutline(
::Block
const
&,
::IConstBlockSource
const
&,
::BlockPos
const
& pos,
::AABB
& bufferValue)
const
43
/*override*/
;
44
45
virtual
void
onGraphicsModeChanged(
::BlockGraphicsModeChangeContext
const
&
context
)
/*override*/
;
46
47
virtual
bool
mayPlace(
::BlockSource
& region,
::BlockPos
const
& pos)
const
/*override*/
;
48
49
virtual
void
neighborChanged(
::BlockSource
& region,
::BlockPos
const
& pos,
::BlockPos
const
& neighborPos)
const
50
/*override*/
;
51
52
virtual
bool
canSurvive(
::BlockSource
& region,
::BlockPos
const
& pos)
const
/*override*/
;
53
54
virtual
bool
isValidAuxValue(
int
value)
const
/*override*/
;
55
56
virtual
bool
dealsContactDamage(
::Actor
const
& actor,
::Block
const
& block,
bool
isPathFinding)
const
/*override*/
;
57
58
virtual
void
_addHardCodedBlockComponents(
::Experiments
const
&)
/*override*/
;
59
60
virtual
~CactusBlock
()
/*override*/
=
default
;
61
// NOLINTEND
62
63
public
:
64
// member functions
65
// NOLINTBEGIN
66
MCAPI
void
randomTick(
::BlockEvents::BlockRandomTickEvent
& eventData)
const
;
67
68
MCFOLD
void
tick(
::BlockEvents::BlockQueuedTickEvent
& eventData)
const
;
69
// NOLINTEND
70
71
public
:
72
// virtual function thunks
73
// NOLINTBEGIN
74
MCAPI ::AABB $getCollisionShape(
75
::Block
const
&,
76
::IConstBlockSource
const
&,
77
::BlockPos
const
& pos,
78
::optional_ref<::GetCollisionShapeInterface const>
79
)
const
;
80
81
MCFOLD ::AABB
const
&
82
$getOutline(
::Block
const
&,
::IConstBlockSource
const
&,
::BlockPos
const
& pos,
::AABB
& bufferValue)
const
;
83
84
MCAPI
void
$onGraphicsModeChanged(
::BlockGraphicsModeChangeContext
const
&
context
);
85
86
MCAPI
bool
$mayPlace(
::BlockSource
& region,
::BlockPos
const
& pos)
const
;
87
88
MCFOLD
void
$neighborChanged(
::BlockSource
& region,
::BlockPos
const
& pos,
::BlockPos
const
& neighborPos)
const
;
89
90
MCAPI
bool
$canSurvive(
::BlockSource
& region,
::BlockPos
const
& pos)
const
;
91
92
MCFOLD
bool
$isValidAuxValue(
int
value)
const
;
93
94
MCFOLD
bool
$dealsContactDamage(
::Actor
const
& actor,
::Block
const
& block,
bool
isPathFinding)
const
;
95
96
MCAPI
void
$_addHardCodedBlockComponents(
::Experiments
const
&);
97
98
99
// NOLINTEND
100
101
public
:
102
// vftables
103
// NOLINTBEGIN
104
MCAPI
static
void
** $vftable();
105
// NOLINTEND
106
};
AABB
Definition
AABB.h:18
Actor
Definition
Actor.h:106
BlockEvents::BlockQueuedTickEvent
Definition
BlockQueuedTickEvent.h:16
BlockEvents::BlockRandomTickEvent
Definition
BlockRandomTickEvent.h:16
BlockPos
Definition
BlockPos.h:19
BlockSource
Definition
BlockSource.h:71
Block
Definition
Block.h:43
CactusBlock
Definition
CactusBlock.h:24
Experiments
Definition
Experiments.h:14
GetCollisionShapeInterface
Definition
GetCollisionShapeInterface.h:13
IConstBlockSource
Definition
IConstBlockSource.h:25
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
for LeviLamina by
1.16.1