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 BlockType;
14class CompoundTag;
15class DataLoadHelper;
16class ILevel;
17class SaveContext;
18// clang-format on
19
20class NoteBlockActor : public ::BlockActor {
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<1, 1, uchar> mNote;
25 ::ll::TypedStorage<1, 1, bool> mOn;
26 // NOLINTEND
27
28public:
29 // prevent constructor by default
30 NoteBlockActor();
31
32public:
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
40public:
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
50public:
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
58public:
59 // constructor thunks
60 // NOLINTBEGIN
61 MCAPI void* $ctor(::BlockPos const& pos);
62 // NOLINTEND
63
64public:
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
74public:
75 // vftables
76 // NOLINTBEGIN
77 MCNAPI static void** $vftable();
78 // NOLINTEND
79};
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition BlockType.h:84
Definition CompoundTag.h:23
Definition DataLoadHelper.h:20
Definition ILevel.h:219
static MCAPI void ** $vftable()
Definition SaveContext.h:5