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
MCNAPI
void
playNote
(
::BlockSource
& region,
::BlockPos
const
& pos);
44
// NOLINTEND
45
46
public
:
47
// static functions
48
// NOLINTBEGIN
49
MCNAPI static ::std::optional<::NoteBlockInstrument>
getInstrument
(
::BlockSource
& region,
::BlockPos
const
& pos);
50
// NOLINTEND
51
52
public
:
53
// virtual function thunks
54
// NOLINTBEGIN
55
MCNAPI
bool
$save
(
::CompoundTag
& tag,
::SaveContext
const
& saveContext)
const
;
56
57
MCNAPI
void
$load
(
::ILevel
& level,
::CompoundTag
const
& tag,
::DataLoadHelper
& dataLoadHelper);
58
// NOLINTEND
59
60
public
:
61
// vftables
62
// NOLINTBEGIN
63
MCNAPI
static
void
**
$vftable
();
64
// NOLINTEND
65
};
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:205
NoteBlockActor
Definition
NoteBlockActor.h:19
NoteBlockActor::$vftable
static MCAPI void ** $vftable()
NoteBlockActor::playNote
MCAPI void playNote(::BlockSource ®ion, ::BlockPos const &pos)
NoteBlockActor::getInstrument
static MCAPI ::std::optional<::NoteBlockInstrument > getInstrument(::BlockSource ®ion, ::BlockPos const &pos)
NoteBlockActor::$save
MCAPI bool $save(::CompoundTag &tag, ::SaveContext const &saveContext) const
NoteBlockActor::$load
MCAPI void $load(::ILevel &level, ::CompoundTag const &tag, ::DataLoadHelper &dataLoadHelper)
SaveContext
Definition
SaveContext.h:5
src
mc
world
level
block
actor
NoteBlockActor.h
Generated on Sat Jul 5 2025 06:58:57 for LeviLamina by
1.12.0