LeviLamina
Loading...
Searching...
No Matches
RedstoneLampBlock.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/world/Direction.h"
7
#include "mc/world/level/block/BlockType.h"
8
9
// auto generated forward declare list
10
// clang-format off
11
class
Block
;
12
class
BlockActor
;
13
class
BlockPos
;
14
class
BlockSource
;
15
class
ItemInstance
;
16
namespace
BlockEvents {
class
BlockQueuedTickEvent
; }
17
namespace
BlockEvents {
class
BlockRedstoneUpdateEvent
; }
18
// clang-format on
19
20
class
RedstoneLampBlock
:
public
::BlockType {
21
public
:
22
// member variables
23
// NOLINTBEGIN
24
::ll::TypedStorage<1, 1, bool const> mIsLit;
25
// NOLINTEND
26
27
public
:
28
// virtual functions
29
// NOLINTBEGIN
30
virtual ::ItemInstance asItemInstance(
::Block
const
&,
::BlockActor
const
*)
const
/*override*/
;
31
32
virtual
bool
33
shouldConnectToRedstone(
::BlockSource
& region,
::BlockPos
const
& pos, ::Direction::Type direction)
const
34
/*override*/
;
35
36
virtual
~RedstoneLampBlock
()
/*override*/
=
default
;
37
// NOLINTEND
38
39
public
:
40
// member functions
41
// NOLINTBEGIN
42
MCAPI
void
_onRedstoneUpdate(
::BlockEvents::BlockRedstoneUpdateEvent
& blockEvent)
const
;
43
44
MCAPI
void
tick(
::BlockEvents::BlockQueuedTickEvent
& eventData)
const
;
45
// NOLINTEND
46
47
public
:
48
// virtual function thunks
49
// NOLINTBEGIN
50
MCAPI ::ItemInstance $asItemInstance(
::Block
const
&,
::BlockActor
const
*)
const
;
51
52
MCFOLD
bool
53
$shouldConnectToRedstone(
::BlockSource
& region,
::BlockPos
const
& pos, ::Direction::Type direction)
const
;
54
55
56
// NOLINTEND
57
58
public
:
59
// vftables
60
// NOLINTBEGIN
61
MCAPI
static
void
** $vftable();
62
// NOLINTEND
63
};
BlockActor
Definition
BlockActor.h:30
BlockEvents::BlockQueuedTickEvent
Definition
BlockQueuedTickEvent.h:16
BlockEvents::BlockRedstoneUpdateEvent
Definition
BlockRedstoneUpdateEvent.h:15
BlockPos
Definition
BlockPos.h:19
BlockSource
Definition
BlockSource.h:71
Block
Definition
Block.h:43
ItemInstance
Definition
ItemInstance.h:15
RedstoneLampBlock
Definition
RedstoneLampBlock.h:20
src
mc
world
level
block
RedstoneLampBlock.h
Generated on
for LeviLamina by
1.16.1