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
11class BlockPos;
12class BlockSource;
13class CompoundTag;
14class DataLoadHelper;
15class ILevel;
16class SaveContext;
17// clang-format on
18
19class NoteBlockActor : public ::BlockActor {
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<1, 1, uchar> mNote;
24 ::ll::TypedStorage<1, 1, bool> mOn;
25 // NOLINTEND
26
27public:
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
37public:
38 // member functions
39 // NOLINTBEGIN
40 MCAPI void playNote(::BlockSource& region, ::BlockPos const& pos);
41 // NOLINTEND
42
43public:
44 // static functions
45 // NOLINTBEGIN
46 MCAPI static ::std::optional<::NoteBlockInstrument> getInstrument(::BlockSource& region, ::BlockPos const& pos);
47 // NOLINTEND
48
49public:
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
59public:
60 // vftables
61 // NOLINTBEGIN
62 MCNAPI static void** $vftable();
63 // NOLINTEND
64};
Definition BlockPos.h:19
Definition BlockSource.h:68
Definition CompoundTag.h:23
Definition DataLoadHelper.h:20
Definition ILevel.h:214
Definition NoteBlockActor.h:19
static MCAPI void ** $vftable()
Definition SaveContext.h:5