LeviLamina
Loading...
Searching...
No Matches
Command.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/commands/CommandPermissionLevel.h"
7
8// auto generated forward declare list
9// clang-format off
10class CommandOrigin;
11class CommandOutput;
12class CommandRegistry;
14struct CommandFlag;
15// clang-format on
16
17class Command {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<4, 4, int> mVersion;
22 ::ll::TypedStorage<8, 8, ::CommandRegistry const*> mRegistry;
23 ::ll::TypedStorage<4, 4, int> mCommandSymbol;
24 ::ll::TypedStorage<1, 1, ::CommandPermissionLevel> mPermissionLevel;
25 ::ll::TypedStorage<2, 2, ::CommandFlag> mFlags;
26 // NOLINTEND
27
28 LLNDAPI std::string getCommandName() const;
29
30public:
31 // virtual functions
32 // NOLINTBEGIN
33 // vIndex: 0
34 virtual ~Command();
35
36 // vIndex: 1
37 virtual bool collectOptionalArguments();
38
39 // vIndex: 2
40 virtual void execute(::CommandOrigin const&, ::CommandOutput&) const = 0;
41 // NOLINTEND
42
43public:
44 // member functions
45 // NOLINTBEGIN
46 MCAPI void run(::CommandOrigin const& origin, ::CommandOutput& output) const;
47
48 MCAPI void sendTelemetry(::CommandOrigin const& origin, ::CommandOutput& output) const;
49
50 MCAPI bool shouldSendTelemetry(::CommandOrigin const& origin) const;
51 // NOLINTEND
52
53public:
54 // static functions
55 // NOLINTBEGIN
56 MCAPI static bool isTemplateLockedAction(::CommandOrigin const& origin);
57
58 MCAPI static bool isWildcard(::CommandSelectorBase const& selector);
59
60 MCAPI static bool shouldUseCommandOriginRotation(::CommandOrigin const& origin, int version);
61
62 MCAPI static bool validRange(float input, float low, float high, ::CommandOutput& output);
63
64 MCAPI static bool validRange(int input, int low, int high, ::CommandOutput& output);
65 // NOLINTEND
66
67public:
68 // static variables
69 // NOLINTBEGIN
70 MCAPI static ::std::string const& WILDCARD_TOKEN();
71 // NOLINTEND
72
73public:
74 // destructor thunk
75 // NOLINTBEGIN
76 MCFOLD void $dtor();
77 // NOLINTEND
78
79public:
80 // virtual function thunks
81 // NOLINTBEGIN
82 MCFOLD bool $collectOptionalArguments();
83 // NOLINTEND
84
85public:
86 // vftables
87 // NOLINTBEGIN
88 MCAPI static void** $vftable();
89 // NOLINTEND
90};
Definition CommandOrigin.h:32
Definition CommandOutput.h:19
Definition CommandRegistry.h:44
Definition CommandSelectorBase.h:28
Definition Command.h:17
Definition CommandFlag.h:43