LeviLamina
Loading...
Searching...
No Matches
LiquidBlockBase.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
class
Material
;
20
class
Random
;
21
class
Vec3
;
22
struct
BlockAnimateTickData
;
23
struct
BlockGraphicsModeChangeContext
;
24
namespace
BlockEvents {
class
BlockPlaceEvent
; }
25
// clang-format on
26
27
class
LiquidBlockBase
:
public
::BlockType {
28
public
:
29
// virtual functions
30
// NOLINTBEGIN
31
virtual
bool
mayPick(
::BlockSource
const
& region,
::Block
const
& block,
bool
liquid)
const
/*override*/
;
32
33
virtual ::AABB getCollisionShape(
34
::Block
const
&,
35
::IConstBlockSource
const
&,
36
::BlockPos
const
&,
37
::optional_ref<::GetCollisionShapeInterface const>
38
)
const
/*override*/
;
39
40
virtual
void
animateTickBedrockLegacy(
::BlockAnimateTickData
const
& tickData)
const
/*override*/
;
41
42
virtual
void
neighborChanged(
::BlockSource
& region,
::BlockPos
const
& pos,
::BlockPos
const
& neighborPos)
const
43
/*override*/
;
44
45
virtual
bool
checkIsPathable(
::Actor
& entity,
::BlockPos
const
& lastPathPos,
::BlockPos
const
& pathPos)
const
46
/*override*/
;
47
48
virtual
void
onGraphicsModeChanged(
::BlockGraphicsModeChangeContext
const
&
context
)
/*override*/
;
49
50
virtual
void
_addHardCodedBlockComponents(
::Experiments
const
&)
/*override*/
;
51
52
virtual
~LiquidBlockBase
()
/*override*/
=
default
;
53
// NOLINTEND
54
55
public
:
56
// member functions
57
// NOLINTBEGIN
58
MCAPI
void
_solidify(
::BlockSource
& region,
::BlockPos
const
& pos,
::BlockPos
const
& changedNeighbor)
const
;
59
60
MCAPI
void
emitFizzParticle(
::BlockSource
& region,
::BlockPos
const
& p)
const
;
61
62
MCAPI
int
getTickDelay(
::BlockSource
& region)
const
;
63
64
MCAPI
void
onPlaceBase(
::BlockEvents::BlockPlaceEvent
& eventData)
const
;
65
66
MCAPI
void
solidify(
::BlockSource
& region,
::BlockPos
const
& pos,
::BlockPos
const
& changedNeighbor)
const
;
67
68
MCAPI
void
trySpreadFire(
::BlockSource
& region,
::BlockPos
const
& pos,
::Random
& random)
const
;
69
// NOLINTEND
70
71
public
:
72
// static functions
73
// NOLINTBEGIN
74
MCAPI static ::Vec3 _getFlow(
::IConstBlockSource
const
& region,
::BlockPos
const
& pos,
::Material
const
& material);
75
76
MCAPI_C
static
float
getSlopeAngle(
::BlockSource
& region,
::BlockPos
const
& pos,
::Material
const
& m);
77
// NOLINTEND
78
79
public
:
80
// virtual function thunks
81
// NOLINTBEGIN
82
MCAPI
bool
$mayPick(
::BlockSource
const
& region,
::Block
const
& block,
bool
liquid)
const
;
83
84
MCFOLD ::AABB $getCollisionShape(
85
::Block
const
&,
86
::IConstBlockSource
const
&,
87
::BlockPos
const
&,
88
::optional_ref<::GetCollisionShapeInterface const>
89
)
const
;
90
91
MCAPI
void
$animateTickBedrockLegacy(
::BlockAnimateTickData
const
& tickData)
const
;
92
93
MCAPI
void
$neighborChanged(
::BlockSource
& region,
::BlockPos
const
& pos,
::BlockPos
const
& neighborPos)
const
;
94
95
MCAPI
bool
$checkIsPathable(
::Actor
& entity,
::BlockPos
const
& lastPathPos,
::BlockPos
const
& pathPos)
const
;
96
97
MCAPI
void
$onGraphicsModeChanged(
::BlockGraphicsModeChangeContext
const
&
context
);
98
99
MCAPI
void
$_addHardCodedBlockComponents(
::Experiments
const
&);
100
101
102
// NOLINTEND
103
104
public
:
105
// vftables
106
// NOLINTBEGIN
107
MCAPI
static
void
** $vftable();
108
// NOLINTEND
109
};
AABB
Definition
AABB.h:18
Actor
Definition
Actor.h:105
BlockEvents::BlockPlaceEvent
Definition
BlockPlaceEvent.h:16
BlockPos
Definition
BlockPos.h:19
BlockSource
Definition
BlockSource.h:68
Block
Definition
Block.h:43
Experiments
Definition
Experiments.h:14
GetCollisionShapeInterface
Definition
GetCollisionShapeInterface.h:13
IConstBlockSource
Definition
IConstBlockSource.h:25
LiquidBlockBase
Definition
LiquidBlockBase.h:27
Material
Definition
Material.h:8
Random
Definition
Random.h:10
Vec3
Definition
Vec3.h:10
optional_ref
Definition
optional_ref.h:10
BlockAnimateTickData
Definition
BlockAnimateTickData.h:14
BlockGraphicsModeChangeContext
Definition
BlockGraphicsModeChangeContext.h:5
context
Definition
context.h:5
src
mc
world
level
block
LiquidBlockBase.h
Generated on
for LeviLamina by
1.16.1