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 // vIndex: 2
43 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
44
45 // vIndex: 0
46 virtual ~TagCommand() /*override*/ = default;
47 // NOLINTEND
48
49public:
50 // member functions
51 // NOLINTBEGIN
52 MCAPI void
53 _addTag(::CommandOutput& output, ::std::vector<::std::reference_wrapper<::Actor>> const& selectorResults) const;
54
55 MCAPI ::std::vector<::std::reference_wrapper<::Actor>>
56 _getSelectorResults(::CommandOrigin const& origin, ::CommandOutput& output) const;
57
58 MCAPI ::std::string _getTagWithPercentageFixed() const;
59
60 MCAPI void
61 _listTags(::CommandOutput& output, ::std::vector<::std::reference_wrapper<::Actor>> const& selectorResults) const;
62
63 MCAPI void
64 _removeTag(::CommandOutput& output, ::std::vector<::std::reference_wrapper<::Actor>> const& selectorResults) const;
65 // NOLINTEND
66
67public:
68 // static functions
69 // NOLINTBEGIN
70 MCAPI static void setup(::CommandRegistry& registry);
71 // NOLINTEND
72
73public:
74 // destructor thunk
75 // NOLINTBEGIN
76
77 // NOLINTEND
78
79public:
80 // virtual function thunks
81 // NOLINTBEGIN
82 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
83 // NOLINTEND
84
85public:
86 // vftables
87 // NOLINTBEGIN
88 MCAPI static void** $vftable();
89 // NOLINTEND
90};
Definition Actor.h:104
Definition CommandOrigin.h:32
Definition CommandOutput.h:19
Definition CommandRegistry.h:44
Definition Command.h:17
Definition TagCommand.h:16
Definition Alias.h:14