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/server/commands/Command.h"
7
8// auto generated forward declare list
9// clang-format off
10class CommandOrigin;
11class CommandOutput;
12class CommandRegistry;
13class CompoundTag;
14// clang-format on
15
16class MusicCommand : public ::Command {
17public:
18 // MusicCommand inner types declare
19 // clang-format off
20 struct CommandData;
21 // clang-format on
22
23 // MusicCommand inner types define
24 enum class Action : uchar {
25 None = 0,
26 Queue = 1,
27 Play = 2,
28 Stop = 3,
29 Volume = 4,
30 };
31
32 struct CommandData {
33 public:
34 // member variables
35 // NOLINTBEGIN
41 // NOLINTEND
42
43 public:
44 // prevent constructor by default
45 CommandData& operator=(CommandData const&);
48 };
49
50public:
51 // member variables
52 // NOLINTBEGIN
58 // NOLINTEND
59
60public:
61 // prevent constructor by default
62 MusicCommand& operator=(MusicCommand const&);
65
66public:
67 // virtual functions
68 // NOLINTBEGIN
69 // vIndex: 2
70 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
71
72 // vIndex: 0
73 virtual ~MusicCommand() /*override*/ = default;
74 // NOLINTEND
75
76public:
77 // member functions
78 // NOLINTBEGIN
79 MCAPI void _handleActionQueueOrPlay(::CompoundTag& data, ::CommandOutput& output) const;
80
81 MCAPI void _handleActionStop(::CompoundTag& data, ::CommandOutput& output) const;
82
83 MCAPI void _handleActionVolume(::CompoundTag& data, ::CommandOutput& output) const;
84 // NOLINTEND
85
86public:
87 // static functions
88 // NOLINTBEGIN
89 MCAPI static void setup(::CommandRegistry& registry);
90 // NOLINTEND
91
92public:
93 // virtual function thunks
94 // NOLINTBEGIN
95 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
96 // NOLINTEND
97
98public:
99 // vftables
100 // NOLINTBEGIN
101 MCNAPI static void** $vftable();
102 // NOLINTEND
103};
Definition CommandOrigin.h:32
Definition CommandOutput.h:19
Definition CommandRegistry.h:45
Definition Command.h:17
Definition CompoundTag.h:13
Definition MusicCommand.h:16
static MCAPI void ** $vftable()
Definition MusicCommand.h:32
Definition Alias.h:14