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
// prevent constructor by default
32
CactusBlock();
33
34
public
:
35
// virtual functions
36
// NOLINTBEGIN
37
virtual ::AABB getCollisionShape(
38
::Block
const
& pos,
39
::IConstBlockSource
const
&,
40
::BlockPos
const
&,
41
::optional_ref<::GetCollisionShapeInterface const>
42
)
const
/*override*/
;
43
44
virtual ::AABB
const
&
45
getOutline(
::Block
const
& pos,
::IConstBlockSource
const
& bufferValue,
::BlockPos
const
&,
::AABB
&)
const
46
/*override*/
;
47
48
virtual
void
onGraphicsModeChanged(
::BlockGraphicsModeChangeContext
const
&
context
)
/*override*/
;
49
50
virtual
bool
mayPlace(
::BlockSource
& region,
::BlockPos
const
& pos)
const
/*override*/
;
51
52
virtual
void
neighborChanged(
::BlockSource
& region,
::BlockPos
const
& pos,
::BlockPos
const
& neighborPos)
const
53
/*override*/
;
54
55
virtual
bool
canSurvive(
::BlockSource
& region,
::BlockPos
const
& pos)
const
/*override*/
;
56
57
virtual
bool
isValidAuxValue(
int
value)
const
/*override*/
;
58
59
virtual
bool
dealsContactDamage(
::Actor
const
&,
::Block
const
&,
bool
)
const
/*override*/
;
60
// NOLINTEND
61
62
public
:
63
// member functions
64
// NOLINTBEGIN
65
MCAPI CactusBlock(::std::string
const
& nameId,
int
id
,
bool
growCactusFlowers);
66
67
MCAPI
bool
_neighborsDestroy(
::BlockSource
& region,
::BlockPos
const
& pos)
const
;
68
69
MCAPI
void
randomTick(
::BlockEvents::BlockRandomTickEvent
& eventData)
const
;
70
71
MCFOLD
void
tick(
::BlockEvents::BlockQueuedTickEvent
& eventData)
const
;
72
// NOLINTEND
73
74
public
:
75
// constructor thunks
76
// NOLINTBEGIN
77
MCAPI
void
* $ctor(::std::string
const
& nameId,
int
id
,
bool
growCactusFlowers);
78
// NOLINTEND
79
80
public
:
81
// virtual function thunks
82
// NOLINTBEGIN
83
MCAPI ::AABB $getCollisionShape(
84
::Block
const
& pos,
85
::IConstBlockSource
const
&,
86
::BlockPos
const
&,
87
::optional_ref<::GetCollisionShapeInterface const>
88
)
const
;
89
90
MCFOLD ::AABB
const
&
91
$getOutline(
::Block
const
& pos,
::IConstBlockSource
const
& bufferValue,
::BlockPos
const
&,
::AABB
&)
const
;
92
93
MCAPI
void
$onGraphicsModeChanged(
::BlockGraphicsModeChangeContext
const
&
context
);
94
95
MCAPI
bool
$mayPlace(
::BlockSource
& region,
::BlockPos
const
& pos)
const
;
96
97
MCFOLD
void
$neighborChanged(
::BlockSource
& region,
::BlockPos
const
& pos,
::BlockPos
const
& neighborPos)
const
;
98
99
MCAPI
bool
$canSurvive(
::BlockSource
& region,
::BlockPos
const
& pos)
const
;
100
101
MCFOLD
bool
$isValidAuxValue(
int
value)
const
;
102
103
MCFOLD
bool
$dealsContactDamage(
::Actor
const
&,
::Block
const
&,
bool
)
const
;
104
105
106
// NOLINTEND
107
108
public
:
109
// vftables
110
// NOLINTBEGIN
111
MCAPI
static
void
** $vftable();
112
// NOLINTEND
113
};
AABB
Definition
AABB.h:18
Actor
Definition
Actor.h:125
BlockEvents::BlockQueuedTickEvent
Definition
BlockQueuedTickEvent.h:18
BlockEvents::BlockRandomTickEvent
Definition
BlockRandomTickEvent.h:17
BlockPos
Definition
BlockPos.h:21
BlockSource
Definition
BlockSource.h:73
Block
Definition
Block.h:69
GetCollisionShapeInterface
Definition
GetCollisionShapeInterface.h:13
IConstBlockSource
Definition
IConstBlockSource.h:24
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