LeviLamina
Loading...
Searching...
No Matches
NoteBlockActor.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/world/level/block/NoteBlockInstrument.h"
7
#include "mc/world/level/block/actor/BlockActor.h"
8
9
// auto generated forward declare list
10
// clang-format off
11
class
BlockPos
;
12
class
BlockSource
;
13
class
CompoundTag
;
14
class
DataLoadHelper
;
15
class
ILevel
;
16
class
SaveContext
;
17
// clang-format on
18
19
class
NoteBlockActor
:
public
::BlockActor {
20
public
:
21
// member variables
22
// NOLINTBEGIN
23
::ll::TypedStorage<1, 1, uchar> mNote;
24
::ll::TypedStorage<1, 1, bool> mOn;
25
// NOLINTEND
26
27
public
:
28
// virtual functions
29
// NOLINTBEGIN
30
virtual
bool
save(
::CompoundTag
& tag,
::SaveContext
const
& saveContext)
const
/*override*/
;
31
32
virtual
void
load(
::ILevel
& level,
::CompoundTag
const
& tag,
::DataLoadHelper
& dataLoadHelper)
/*override*/
;
33
34
virtual
~NoteBlockActor
()
/*override*/
=
default
;
35
// NOLINTEND
36
37
public
:
38
// member functions
39
// NOLINTBEGIN
40
MCAPI
void
playNote(
::BlockSource
& region,
::BlockPos
const
& pos);
41
// NOLINTEND
42
43
public
:
44
// static functions
45
// NOLINTBEGIN
46
MCAPI static ::std::optional<::NoteBlockInstrument> getInstrument(
::BlockSource
& region,
::BlockPos
const
& pos);
47
// NOLINTEND
48
49
public
:
50
// virtual function thunks
51
// NOLINTBEGIN
52
MCAPI
bool
$save(
::CompoundTag
& tag,
::SaveContext
const
& saveContext)
const
;
53
54
MCAPI
void
$load(
::ILevel
& level,
::CompoundTag
const
& tag,
::DataLoadHelper
& dataLoadHelper);
55
56
57
// NOLINTEND
58
59
public
:
60
// vftables
61
// NOLINTBEGIN
62
MCNAPI
static
void
**
$vftable
();
63
// NOLINTEND
64
};
BlockPos
Definition
BlockPos.h:19
BlockSource
Definition
BlockSource.h:68
CompoundTag
Definition
CompoundTag.h:23
DataLoadHelper
Definition
DataLoadHelper.h:20
ILevel
Definition
ILevel.h:214
NoteBlockActor
Definition
NoteBlockActor.h:19
NoteBlockActor::$vftable
static MCAPI void ** $vftable()
SaveContext
Definition
SaveContext.h:5
src
mc
world
level
block
actor
NoteBlockActor.h
Generated on
for LeviLamina by
1.16.1