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
// vIndex: 2
31
virtual
bool
save(
::CompoundTag
& tag,
::SaveContext
const
& saveContext)
const
/*override*/
;
32
33
// vIndex: 1
34
virtual
void
load(
::ILevel
& level,
::CompoundTag
const
& tag,
::DataLoadHelper
& dataLoadHelper)
/*override*/
;
35
36
// vIndex: 0
37
virtual
~NoteBlockActor
()
/*override*/
=
default
;
38
// NOLINTEND
39
40
public
:
41
// member functions
42
// NOLINTBEGIN
43
MCAPI
void
playNote(
::BlockSource
& region,
::BlockPos
const
& pos);
44
// NOLINTEND
45
46
public
:
47
// static functions
48
// NOLINTBEGIN
49
MCAPI static ::std::optional<::NoteBlockInstrument> getInstrument(
::BlockSource
& region,
::BlockPos
const
& pos);
50
// NOLINTEND
51
52
public
:
53
// destructor thunk
54
// NOLINTBEGIN
55
56
// NOLINTEND
57
58
public
:
59
// virtual function thunks
60
// NOLINTBEGIN
61
MCAPI
bool
$save(
::CompoundTag
& tag,
::SaveContext
const
& saveContext)
const
;
62
63
MCAPI
void
$load(
::ILevel
& level,
::CompoundTag
const
& tag,
::DataLoadHelper
& dataLoadHelper);
64
// NOLINTEND
65
66
public
:
67
// vftables
68
// NOLINTBEGIN
69
MCAPI
static
void
** $vftable();
70
// NOLINTEND
71
};
BlockActor
Definition
BlockActor.h:32
BlockPos
Definition
BlockPos.h:18
BlockSource
Definition
BlockSource.h:67
CompoundTag
Definition
CompoundTag.h:13
DataLoadHelper
Definition
DataLoadHelper.h:20
ILevel
Definition
ILevel.h:203
NoteBlockActor
Definition
NoteBlockActor.h:19
SaveContext
Definition
SaveContext.h:5
src
mc
world
level
block
actor
NoteBlockActor.h
Generated on Sat Apr 26 2025 05:56:17 for LeviLamina by
1.12.0