36class MinecraftCommands {
40 ::ll::TypedStorage<8, 8, ::ICommandsContextProvider&> mContextProvider;
41 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::CommandRegistry>> mRegistry;
42 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::CommandOutputSender>> mOutputSender;
43 ::ll::TypedStorage<1, 1, ::CommandPermissionLevel> mOpPermissionLevel;
44 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mChatPermissionsCallback;
45 ::ll::TypedStorage<8, 64, ::std::unordered_map<::HashedString, ::std::unique_ptr<::Command>>> mCompiledCommandMap;
46 ::ll::TypedStorage<8, 24, ::std::vector<::std::unique_ptr<::DeferredCommandBase>>> mDeferredCommands;
47 ::ll::TypedStorage<8, 8, uint64> mDeferredScriptCommandCount;
52 MinecraftCommands& operator=(MinecraftCommands
const&);
53 MinecraftCommands(MinecraftCommands
const&);
59 virtual ~MinecraftCommands();
67 MCAPI ::Command* compileCommand(
70 ::CurrentCmdVersion commandVersion,
71 ::std::function<
void(::std::string
const&)> onParserError
74 MCAPI
void enqueueDeferredCommand(
75 ::std::unique_ptr<::CommandContext>
context,
82 enqueueDeferredCompiledCommand(::gsl::not_null<::Command*> command, ::std::unique_ptr<::CommandOrigin> origin);
84 MCAPI
bool enqueueDeferredScriptCommand(::std::unique_ptr<::DeferredScriptCommand> scriptCommand);
89 MCFOLD ::CommandOutputSender& getOutputSender()
const;
92 MCFOLD ::CommandRegistry
const& getRegistry()
const;
94 MCFOLD ::CommandRegistry& getRegistry();
98 MCAPI
void initCoreEnums(
106 MCAPI
void initCoreEnumsServer(
113 MCFOLD
void registerChatPermissionsCallback(::std::function<
bool()> callback);
119 MCAPI ::MCRESULT requestCommandExecution(
120 ::std::unique_ptr<::CommandOrigin> origin,
121 ::std::string
const& commandLine,
133 MCAPI
void setOutputSender(::std::unique_ptr<::CommandOutputSender> outputSender);
136 MCAPI
void setRegistryNetworkUpdateCallback(::std::function<
void(
::Packet const&)> callback)
const;
144 MCAPI static ::CommandOutputType getOutputType(
::CommandOrigin const& origin);
153 MCAPI
static void initItemEnum(
161 MCAPI
static void initStructureFeatureEnum(
Definition CommandContext.h:10
Definition ICommandsContextProvider.h:15