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
BlockType
;
14
class
CompoundTag
;
15
class
DataLoadHelper
;
16
class
ILevel
;
17
class
SaveContext
;
18
// clang-format on
19
20
class
NoteBlockActor :
public
::BlockActor {
21
public
:
22
// member variables
23
// NOLINTBEGIN
24
::ll::TypedStorage<1, 1, uchar> mNote;
25
::ll::TypedStorage<1, 1, bool> mOn;
26
// NOLINTEND
27
28
public
:
29
// prevent constructor by default
30
NoteBlockActor();
31
32
public
:
33
// virtual functions
34
// NOLINTBEGIN
35
virtual
bool
save(
::CompoundTag
& tag,
::SaveContext
const
& saveContext)
const
/*override*/
;
36
37
virtual
void
load(
::ILevel
& level,
::CompoundTag
const
& tag,
::DataLoadHelper
& dataLoadHelper)
/*override*/
;
38
// NOLINTEND
39
40
public
:
41
// member functions
42
// NOLINTBEGIN
43
MCAPI
explicit
NoteBlockActor(
::BlockPos
const
& pos);
44
45
MCAPI
void
playNote(
::BlockSource
& region,
::BlockPos
const
& pos);
46
47
MCAPI
void
tune();
48
// NOLINTEND
49
50
public
:
51
// static functions
52
// NOLINTBEGIN
53
MCAPI static ::NoteBlockInstrument _getInstrumentForSkull(
::BlockType
const
& blockType);
54
55
MCAPI static ::std::optional<::NoteBlockInstrument> getInstrument(
::BlockSource
& region,
::BlockPos
const
& pos);
56
// NOLINTEND
57
58
public
:
59
// constructor thunks
60
// NOLINTBEGIN
61
MCAPI
void
* $ctor(
::BlockPos
const
& pos);
62
// NOLINTEND
63
64
public
:
65
// virtual function thunks
66
// NOLINTBEGIN
67
MCAPI
bool
$save(
::CompoundTag
& tag,
::SaveContext
const
& saveContext)
const
;
68
69
MCAPI
void
$load(
::ILevel
& level,
::CompoundTag
const
& tag,
::DataLoadHelper
& dataLoadHelper);
70
71
72
// NOLINTEND
73
74
public
:
75
// vftables
76
// NOLINTBEGIN
77
MCNAPI
static
void
**
$vftable
();
78
// NOLINTEND
79
};
BlockPos
Definition
BlockPos.h:21
BlockSource
Definition
BlockSource.h:73
BlockType
Definition
BlockType.h:84
CompoundTag
Definition
CompoundTag.h:23
DataLoadHelper
Definition
DataLoadHelper.h:20
ILevel
Definition
ILevel.h:219
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