LeviLamina
Loading...
Searching...
No Matches
TntBlock.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
Actor
;
11
class
Block
;
12
class
BlockPos
;
13
class
BlockSource
;
14
class
Container
;
15
class
Player
;
16
class
Vec3
;
17
namespace
BlockEvents {
class
BlockPlayerInteractEvent
; }
18
namespace
BlockEvents {
class
BlockRedstoneUpdateEvent
; }
19
// clang-format on
20
21
class
TntBlock :
public
::BlockType {
22
public
:
23
// prevent constructor by default
24
TntBlock();
25
26
public
:
27
// virtual functions
28
// NOLINTBEGIN
29
virtual
void
onExploded(
::BlockSource
& region,
::BlockPos
const
& pos,
::Actor
* entitySource)
const
/*override*/
;
30
31
virtual
void
32
destroy(
::BlockSource
& region,
::BlockPos
const
& pos,
::Block
const
& block,
::Actor
* entitySource)
const
33
/*override*/
;
34
35
virtual
bool
dispense(
::BlockSource
& region,
::Container
& container,
int
slot,
::Vec3
const
& pos, uchar)
const
36
/*override*/
;
37
38
virtual
bool
shouldDispense(
::BlockSource
& region,
::Container
&)
const
/*override*/
;
39
// NOLINTEND
40
41
public
:
42
// member functions
43
// NOLINTBEGIN
44
MCAPI TntBlock(::std::string
const
& nameId,
int
id
);
45
46
MCAPI
void
_onRedstoneUpdate(
::BlockEvents::BlockRedstoneUpdateEvent
& blockEvent)
const
;
47
48
MCAPI
void
_setAllowUnderwater(
::Actor
* e)
const
;
49
50
MCAPI
void
use(
::BlockEvents::BlockPlayerInteractEvent
& eventData)
const
;
51
// NOLINTEND
52
53
public
:
54
// static functions
55
// NOLINTBEGIN
56
MCAPI
static
bool
tryLightTnt(
::Player
& player,
::BlockPos
const
& pos);
57
// NOLINTEND
58
59
public
:
60
// constructor thunks
61
// NOLINTBEGIN
62
MCAPI
void
* $ctor(::std::string
const
& nameId,
int
id
);
63
// NOLINTEND
64
65
public
:
66
// virtual function thunks
67
// NOLINTBEGIN
68
MCAPI
void
$onExploded(
::BlockSource
& region,
::BlockPos
const
& pos,
::Actor
* entitySource)
const
;
69
70
MCAPI
void
71
$destroy(
::BlockSource
& region,
::BlockPos
const
& pos,
::Block
const
& block,
::Actor
* entitySource)
const
;
72
73
MCAPI
bool
$dispense(
::BlockSource
& region,
::Container
& container,
int
slot,
::Vec3
const
& pos, uchar)
const
;
74
75
MCAPI
bool
$shouldDispense(
::BlockSource
& region,
::Container
&)
const
;
76
77
78
// NOLINTEND
79
80
public
:
81
// vftables
82
// NOLINTBEGIN
83
MCAPI
static
void
** $vftable();
84
// NOLINTEND
85
};
Actor
Definition
Actor.h:125
BlockEvents::BlockPlayerInteractEvent
Definition
BlockPlayerInteractEvent.h:20
BlockEvents::BlockRedstoneUpdateEvent
Definition
BlockRedstoneUpdateEvent.h:16
BlockPos
Definition
BlockPos.h:21
BlockSource
Definition
BlockSource.h:73
Block
Definition
Block.h:69
Container
Definition
Container.h:34
Player
Definition
Player.h:137
Vec3
Definition
Vec3.h:10
src
mc
world
level
block
TntBlock.h
Generated on
for LeviLamina by
1.16.1