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