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 // virtual function thunks
75 // NOLINTBEGIN
76 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
77 // NOLINTEND
78
79public:
80 // vftables
81 // NOLINTBEGIN
82 MCNAPI static void** $vftable();
83 // NOLINTEND
84};
Definition Actor.h:103
Definition CommandOrigin.h:32
Definition CommandOutput.h:19
Definition CommandRegistry.h:45
Definition Command.h:17
Definition TagCommand.h:16
static MCAPI void ** $vftable()
Definition Alias.h:14