LeviLamina
Loading...
Searching...
No Matches
LanternBlock.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/world/level/block/BlockType.h"
7
8
// auto generated forward declare list
9
// clang-format off
10
class
AABB
;
11
class
Actor
;
12
class
Block
;
13
class
BlockPos
;
14
class
BlockSource
;
15
class
Vec3
;
16
namespace
BlockEvents {
class
BlockQueuedTickEvent
; }
17
// clang-format on
18
19
class
LanternBlock :
public
::BlockType {
20
public
:
21
// prevent constructor by default
22
LanternBlock();
23
24
public
:
25
// virtual functions
26
// NOLINTBEGIN
27
virtual ::AABB
const
& getVisualShape(
::Block
const
& block,
::AABB
& bufferAABB)
const
/*override*/
;
28
29
virtual ::Block
const
&
30
getPlacementBlock(
::Actor
const
& by,
::BlockPos
const
& pos, uchar face,
::Vec3
const
& clickPos,
int
itemValue)
const
31
/*override*/
;
32
33
virtual
void
neighborChanged(
::BlockSource
& region,
::BlockPos
const
& pos,
::BlockPos
const
& neighborPos)
const
34
/*override*/
;
35
36
virtual
bool
canSurvive(
::BlockSource
& region,
::BlockPos
const
& pos)
const
/*override*/
;
37
38
virtual
void
movedByPiston(
::BlockSource
& region,
::BlockPos
const
& pos)
const
/*override*/
;
39
40
virtual
bool
mayPlace(
::BlockSource
& region,
::BlockPos
const
& pos)
const
/*override*/
;
41
42
virtual
bool
checkIsPathable(
::Actor
& entity,
::BlockPos
const
& lastPathPos,
::BlockPos
const
& pathPos)
const
43
/*override*/
;
44
// NOLINTEND
45
46
public
:
47
// member functions
48
// NOLINTBEGIN
49
MCAPI LanternBlock(::std::string
const
& nameId,
int
id
);
50
51
MCAPI
bool
_couldHang(
::BlockSource
& region,
::BlockPos
const
& pos)
const
;
52
53
MCFOLD
void
tick(
::BlockEvents::BlockQueuedTickEvent
& eventData)
const
;
54
// NOLINTEND
55
56
public
:
57
// constructor thunks
58
// NOLINTBEGIN
59
MCAPI
void
* $ctor(::std::string
const
& nameId,
int
id
);
60
// NOLINTEND
61
62
public
:
63
// virtual function thunks
64
// NOLINTBEGIN
65
MCAPI ::AABB
const
& $getVisualShape(
::Block
const
& block,
::AABB
& bufferAABB)
const
;
66
67
MCAPI ::Block
const
& $getPlacementBlock(
68
::Actor
const
& by,
69
::BlockPos
const
& pos,
70
uchar face,
71
::Vec3
const
& clickPos,
72
int
itemValue
73
)
const
;
74
75
MCFOLD
void
$neighborChanged(
::BlockSource
& region,
::BlockPos
const
& pos,
::BlockPos
const
& neighborPos)
const
;
76
77
MCAPI
bool
$canSurvive(
::BlockSource
& region,
::BlockPos
const
& pos)
const
;
78
79
MCFOLD
void
$movedByPiston(
::BlockSource
& region,
::BlockPos
const
& pos)
const
;
80
81
MCAPI
bool
$mayPlace(
::BlockSource
& region,
::BlockPos
const
& pos)
const
;
82
83
MCAPI
bool
$checkIsPathable(
::Actor
& entity,
::BlockPos
const
& lastPathPos,
::BlockPos
const
& pathPos)
const
;
84
85
86
// NOLINTEND
87
88
public
:
89
// vftables
90
// NOLINTBEGIN
91
MCAPI
static
void
** $vftable();
92
// NOLINTEND
93
};
AABB
Definition
AABB.h:18
Actor
Definition
Actor.h:125
BlockEvents::BlockQueuedTickEvent
Definition
BlockQueuedTickEvent.h:18
BlockPos
Definition
BlockPos.h:21
BlockSource
Definition
BlockSource.h:73
Block
Definition
Block.h:69
Vec3
Definition
Vec3.h:10
src
mc
world
level
block
LanternBlock.h
Generated on
for LeviLamina by
1.16.1