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
GetCollisionShapeInterface
;
17
class
IConstBlockSource
;
18
namespace
BlockEvents {
class
BlockQueuedTickEvent
; }
19
namespace
BlockEvents {
class
BlockRandomTickEvent
; }
20
struct
BlockGraphicsModeChangeContext
;
21
// clang-format on
22
23
class
CactusBlock
:
public
::BlockType {
24
public
:
25
// member variables
26
// NOLINTBEGIN
27
::ll::TypedStorage<1, 1, bool> mGrowCactusFlowers;
28
// NOLINTEND
29
30
public
:
31
// virtual functions
32
// NOLINTBEGIN
33
virtual ::AABB getCollisionShape(
34
::Block
const
&,
35
::IConstBlockSource
const
&,
36
::BlockPos
const
& pos,
37
::optional_ref<::GetCollisionShapeInterface const>
38
)
const
/*override*/
;
39
40
virtual ::AABB
const
&
41
getOutline(
::Block
const
&,
::IConstBlockSource
const
&,
::BlockPos
const
& pos,
::AABB
& bufferValue)
const
42
/*override*/
;
43
44
virtual
void
onGraphicsModeChanged(
::BlockGraphicsModeChangeContext
const
&
context
)
/*override*/
;
45
46
virtual
bool
mayPlace(
::BlockSource
& region,
::BlockPos
const
& pos)
const
/*override*/
;
47
48
virtual
void
neighborChanged(
::BlockSource
& region,
::BlockPos
const
& pos,
::BlockPos
const
& neighborPos)
const
49
/*override*/
;
50
51
virtual
bool
canSurvive(
::BlockSource
& region,
::BlockPos
const
& pos)
const
/*override*/
;
52
53
virtual
bool
isValidAuxValue(
int
value)
const
/*override*/
;
54
55
virtual
bool
dealsContactDamage(
::Actor
const
& actor,
::Block
const
& block,
bool
isPathFinding)
const
/*override*/
;
56
// NOLINTEND
57
58
public
:
59
// member functions
60
// NOLINTBEGIN
61
MCAPI
void
randomTick(
::BlockEvents::BlockRandomTickEvent
& eventData)
const
;
62
63
MCFOLD
void
tick(
::BlockEvents::BlockQueuedTickEvent
& eventData)
const
;
64
// NOLINTEND
65
66
public
:
67
// virtual function thunks
68
// NOLINTBEGIN
69
MCAPI ::AABB $getCollisionShape(
70
::Block
const
&,
71
::IConstBlockSource
const
&,
72
::BlockPos
const
& pos,
73
::optional_ref<::GetCollisionShapeInterface const>
74
)
const
;
75
76
MCFOLD ::AABB
const
&
77
$getOutline(
::Block
const
&,
::IConstBlockSource
const
&,
::BlockPos
const
& pos,
::AABB
& bufferValue)
const
;
78
79
MCAPI
void
$onGraphicsModeChanged(
::BlockGraphicsModeChangeContext
const
&
context
);
80
81
MCAPI
bool
$mayPlace(
::BlockSource
& region,
::BlockPos
const
& pos)
const
;
82
83
MCFOLD
void
$neighborChanged(
::BlockSource
& region,
::BlockPos
const
& pos,
::BlockPos
const
& neighborPos)
const
;
84
85
MCAPI
bool
$canSurvive(
::BlockSource
& region,
::BlockPos
const
& pos)
const
;
86
87
MCFOLD
bool
$isValidAuxValue(
int
value)
const
;
88
89
MCFOLD
bool
$dealsContactDamage(
::Actor
const
& actor,
::Block
const
& block,
bool
isPathFinding)
const
;
90
91
92
// NOLINTEND
93
94
public
:
95
// vftables
96
// NOLINTBEGIN
97
MCAPI
static
void
** $vftable();
98
// NOLINTEND
99
};
AABB
Definition
AABB.h:18
Actor
Definition
Actor.h:113
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
CactusBlock
Definition
CactusBlock.h:23
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