33class MinecraftCommands {
37 ::ll::TypedStorage<8, 8, ::ICommandsContextProvider&> mContextProvider;
38 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::CommandRegistry>> mRegistry;
39 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::CommandOutputSender>> mOutputSender;
40 ::ll::TypedStorage<1, 1, ::CommandPermissionLevel> mOpPermissionLevel;
41 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mChatPermissionsCallback;
42 ::ll::TypedStorage<8, 64, ::std::unordered_map<::HashedString, ::std::unique_ptr<::Command>>> mCompiledCommandMap;
43 ::ll::TypedStorage<8, 24, ::std::vector<::std::unique_ptr<::DeferredCommandBase>>> mDeferredCommands;
44 ::ll::TypedStorage<8, 8, uint64> mDeferredScriptCommandCount;
49 MinecraftCommands& operator=(MinecraftCommands
const&);
50 MinecraftCommands(MinecraftCommands
const&);
56 virtual ~MinecraftCommands() =
default;
64 MCAPI ::Command* compileCommand(
67 ::CurrentCmdVersion commandVersion,
68 ::std::function<
void(::std::string
const&)> onParserError
71 MCAPI
void enqueueDeferredCommand(
72 ::std::unique_ptr<::CommandContext>
context,
79 enqueueDeferredCompiledCommand(::gsl::not_null<::Command*> command, ::std::unique_ptr<::CommandOrigin> origin);
85 MCAPI
void initCoreEnums(
93 MCAPI
void initCoreEnumsServer(
100 MCAPI
void registerChatPermissionsCallback(::std::function<
bool()> callback);
104 MCAPI ::MCRESULT requestCommandExecution(
105 ::std::unique_ptr<::CommandOrigin> origin,
106 ::std::string
const& commandLine,
121 MCAPI static ::CommandOutputType getOutputType(
::CommandOrigin const& origin);
Definition CommandContext.h:10
Definition ICommandsContextProvider.h:15