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
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 // 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
40public:
41 // member functions
42 // NOLINTBEGIN
43 MCNAPI void playNote(::BlockSource& region, ::BlockPos const& pos);
44 // NOLINTEND
45
46public:
47 // static functions
48 // NOLINTBEGIN
49 MCNAPI static ::std::optional<::NoteBlockInstrument> getInstrument(::BlockSource& region, ::BlockPos const& pos);
50 // NOLINTEND
51
52public:
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
60public:
61 // vftables
62 // NOLINTBEGIN
63 MCNAPI static void** $vftable();
64 // NOLINTEND
65};
Definition BlockActor.h:32
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition CompoundTag.h:13
Definition DataLoadHelper.h:20
Definition ILevel.h:205
Definition NoteBlockActor.h:19
static MCAPI void ** $vftable()
MCAPI void playNote(::BlockSource &region, ::BlockPos const &pos)
static MCAPI ::std::optional<::NoteBlockInstrument > getInstrument(::BlockSource &region, ::BlockPos const &pos)
MCAPI bool $save(::CompoundTag &tag, ::SaveContext const &saveContext) const
MCAPI void $load(::ILevel &level, ::CompoundTag const &tag, ::DataLoadHelper &dataLoadHelper)
Definition SaveContext.h:5