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/CommandFlag.h"
7#include "mc/server/commands/CommandPermissionLevel.h"
8
9// auto generated forward declare list
10// clang-format off
11class CommandOrigin;
12class CommandOutput;
13class CommandRegistry;
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
28public:
29 // virtual functions
30 // NOLINTBEGIN
31 // vIndex: 0
32 virtual ~Command();
33
34 // vIndex: 1
35 virtual bool collectOptionalArguments();
36
37 // vIndex: 2
38 virtual void execute(::CommandOrigin const&, ::CommandOutput&) const = 0;
39 // NOLINTEND
40
41public:
42 // member functions
43 // NOLINTBEGIN
44 MCAPI void run(::CommandOrigin const& origin, ::CommandOutput& output) const;
45
46 MCAPI void sendTelemetry(::CommandOrigin const& origin, ::CommandOutput& output) const;
47
48 MCAPI bool shouldSendTelemetry(::CommandOrigin const& origin) const;
49 // NOLINTEND
50
51public:
52 // static functions
53 // NOLINTBEGIN
54 MCAPI static bool isTemplateLockedAction(::CommandOrigin const& origin);
55
56 MCAPI static bool isWildcard(::CommandSelectorBase const& selector);
57
58 MCAPI static bool shouldUseCommandOriginRotation(::CommandOrigin const& origin, int version);
59
60 MCAPI static bool validRange(float input, float low, float high, ::CommandOutput& output);
61
62 MCAPI static bool validRange(int input, int low, int high, ::CommandOutput& output);
63 // NOLINTEND
64
65public:
66 // static variables
67 // NOLINTBEGIN
68 MCAPI static ::std::string const& WILDCARD_TOKEN();
69 // NOLINTEND
70
71public:
72 // destructor thunk
73 // NOLINTBEGIN
74 MCFOLD void $dtor();
75 // NOLINTEND
76
77public:
78 // virtual function thunks
79 // NOLINTBEGIN
80 MCFOLD bool $collectOptionalArguments();
81 // NOLINTEND
82
83public:
84 // vftables
85 // NOLINTBEGIN
86 MCNAPI static void** $vftable();
87 // NOLINTEND
88};
Definition CommandOrigin.h:30
Definition CommandOutput.h:17
Definition CommandRegistry.h:34
Definition CommandSelectorBase.h:24
Definition Command.h:17
static MCAPI void ** $vftable()