LeviLamina
Loading...
Searching...
No Matches
MusicCommand.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/shared_types/legacy/LevelEvent.h"
7#include "mc/server/commands/Command.h"
8
9// auto generated forward declare list
10// clang-format off
11class CommandOrigin;
12class CommandOutput;
13class CommandRegistry;
14class CompoundTag;
15// clang-format on
16
17class MusicCommand : public ::Command {
18public:
19 // MusicCommand inner types declare
20 // clang-format off
21 struct CommandData;
22 // clang-format on
23
24 // MusicCommand inner types define
25 enum class Action : uchar {
26 None = 0,
27 Queue = 1,
28 Play = 2,
29 Stop = 3,
30 Volume = 4,
31 };
32
33 struct CommandData {
34 public:
35 // member variables
36 // NOLINTBEGIN
42 // NOLINTEND
43
44 public:
45 // prevent constructor by default
46 CommandData& operator=(CommandData const&);
47 CommandData(CommandData const&);
48 CommandData();
49
50 public:
51 // member functions
52 // NOLINTBEGIN
53 MCNAPI_C bool decodeMusicCommand(::SharedTypes::Legacy::LevelEvent type, ::CompoundTag const& data);
54 // NOLINTEND
55
56 public:
57 // destructor thunk
58 // NOLINTBEGIN
59 MCNAPI_C void $dtor();
60 // NOLINTEND
61 };
62
63public:
64 // member variables
65 // NOLINTBEGIN
71 // NOLINTEND
72
73public:
74 // prevent constructor by default
75 MusicCommand& operator=(MusicCommand const&);
76 MusicCommand(MusicCommand const&);
77 MusicCommand();
78
79public:
80 // virtual functions
81 // NOLINTBEGIN
82 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
83
84 virtual ~MusicCommand() /*override*/ = default;
85 // NOLINTEND
86
87public:
88 // member functions
89 // NOLINTBEGIN
90 MCAPI void _handleActionQueueOrPlay(::CompoundTag& data, ::CommandOutput& output) const;
91
92 MCAPI void _handleActionStop(::CompoundTag& data, ::CommandOutput& output) const;
93
94 MCAPI void _handleActionVolume(::CompoundTag& data, ::CommandOutput& output) const;
95 // NOLINTEND
96
97public:
98 // static functions
99 // NOLINTBEGIN
100 MCAPI static void setup(::CommandRegistry& registry);
101 // NOLINTEND
102
103public:
104 // virtual function thunks
105 // NOLINTBEGIN
106 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
107
108
109 // NOLINTEND
110
111public:
112 // vftables
113 // NOLINTBEGIN
114 MCNAPI static void** $vftable();
115 // NOLINTEND
116};
Definition CommandOrigin.h:32
Definition CommandOutput.h:19
Definition CommandRegistry.h:47
Definition Command.h:17
Definition CompoundTag.h:23
static MCAPI void ** $vftable()
Definition MusicCommand.h:33
Definition Alias.h:14