// This Header is auto generated by BDSLiteLoader Toolchain #pragma once #define AUTO_GENERATED #include "../Global.h" #define BEFORE_EXTRA // Include Headers or Declare Types Here #include "CommandContext.hpp" #include "MCRESULT.hpp" #undef BEFORE_EXTRA class MinecraftCommands { #define AFTER_EXTRA // Add Member There public: [[deprecated]] static MCRESULT _runcmd(void* origin, const std::string& cmd) { if (!Global) return {0}; try { return Global->executeCommand(std::make_shared(cmd, std::unique_ptr((CommandOrigin*)origin)), false); } catch (...) { } return {0}; } static MCRESULT _runcmd(std::unique_ptr origin, const std::string& cmd) { if (!Global) return {0}; try { return Global->executeCommand(std::make_shared(cmd, std::move(origin)), false); } catch (...) { } return {0}; } #undef AFTER_EXTRA #ifndef DISABLE_CONSTRUCTOR_PREVENTION_MINECRAFTCOMMANDS public: class MinecraftCommands& operator=(class MinecraftCommands const &) = delete; MinecraftCommands(class MinecraftCommands const &) = delete; MinecraftCommands() = delete; #endif public: #ifdef ENABLE_VIRTUAL_FAKESYMBOL_MINECRAFTCOMMANDS #endif MCAPI struct MCRESULT executeCommand(class std::shared_ptr, bool) const; MCAPI void handleOutput(class CommandOrigin const &, class CommandOutput const &) const; MCAPI void initCoreEnums(class IWorldRegistriesProvider const &, bool, class BaseGameVersion const &); MCAPI struct MCRESULT requestCommandExecution(std::unique_ptr, std::string const &, int, bool) const; MCAPI void runCommand(class HashedString const &, class CommandOrigin &, enum CurrentCmdVersion); MCAPI static enum CommandOutputType getOutputType(class CommandOrigin const &); };