LeviLamina
Loading...
Searching...
No Matches
TagCommand.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 Actor;
11class CommandOrigin;
12class CommandOutput;
13class CommandRegistry;
14// clang-format on
15
16class TagCommand : public ::Command {
17public:
18 // TagCommand inner types define
19 enum class Action : uchar {
20 Add = 0,
21 Remove = 1,
22 List = 2,
23 };
24
25public:
26 // member variables
27 // NOLINTBEGIN
31 // NOLINTEND
32
33public:
34 // prevent constructor by default
35 TagCommand& operator=(TagCommand const&);
36 TagCommand(TagCommand const&);
37 TagCommand();
38
39public:
40 // virtual functions
41 // NOLINTBEGIN
42 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
43
44 virtual ~TagCommand() /*override*/ = default;
45 // NOLINTEND
46
47public:
48 // member functions
49 // NOLINTBEGIN
50 MCAPI void
51 _addTag(::CommandOutput& output, ::std::vector<::std::reference_wrapper<::Actor>> const& selectorResults) const;
52
53 MCAPI ::std::vector<::std::reference_wrapper<::Actor>>
54 _getSelectorResults(::CommandOrigin const& origin, ::CommandOutput& output) const;
55
56 MCAPI void
57 _listTags(::CommandOutput& output, ::std::vector<::std::reference_wrapper<::Actor>> const& selectorResults) const;
58
59 MCAPI void
60 _removeTag(::CommandOutput& output, ::std::vector<::std::reference_wrapper<::Actor>> const& selectorResults) const;
61 // NOLINTEND
62
63public:
64 // static functions
65 // NOLINTBEGIN
66 MCAPI static void setup(::CommandRegistry& registry);
67 // NOLINTEND
68
69public:
70 // virtual function thunks
71 // NOLINTBEGIN
72 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
73
74
75 // NOLINTEND
76
77public:
78 // vftables
79 // NOLINTBEGIN
80 MCNAPI static void** $vftable();
81 // NOLINTEND
82};
Definition Actor.h:105
Definition CommandOrigin.h:32
Definition CommandOutput.h:19
Definition CommandRegistry.h:47
Definition Command.h:17
static MCAPI void ** $vftable()
Definition Alias.h:14