TODO
Do not misuse!
Extending the list of commands
-
Education Edition, method patching and symbol replacement:
-
Override
AppPlatform::isEduMode() constto 1, which activates education mode (not recommended unless you know what you are doing). -
Add to the method
ServerCommands::setupStandardServer(Minecraft&, std::basic_string const&, std::basic_string const&, PermissionsFile*):// Don't forget to get LevelData and CommandRegistry!if (LevelData::isEducationEditionLevel(LevelData&) == 0) {AbilityCommand::setup(CommandRegistry&);ImmutableWorldCommand::setup(CommandRegistry&);AbilityCommand::setup(CommandRegistry&);CodeBuilderCommand::setup(CommandRegistry&);GetChunkDataCommand::setup(CommandRegistry&);GetChunksCommand::setup(CommandRegistry&);GetSpawnPointCommand::setup(CommandRegistry&);GlobalPauseCommand::setup(CommandRegistry&);ImmutableWorldCommand::setup(CommandRegistry&);TakePictureCommand::setup(CommandRegistry&);WorldBuilderCommand::setup(CommandRegistry&);} -
Commands that make no sense if there is no activation of logging into the education edition; supplement
VanillaGameModuleClient::setupStandardCommands(CommandRegistry&)as follows:if (AppPlatform::isEduMode() == 0) {if (EducationOptions::isCodeBuilderEnabled() == 0) {CodeCommand::setup(CommandRegistry&);}ClassRoomModeCommand::setup(CommandRegistry&);}
-
-
Unavailable commands by default (in development or debug):
-
Client for patching
ClientCommands::setupStandard(MinecraftCommands&, IMinecraftGame&, mce::TextureGroup&, FileArchiver&, bool, ActiveDirectoryIdentity const*):GetDurabilityCommand::setup(CommandRegistry&);MixerInteractiveCommand::setup(CommandRegistry&); -
Server for patching
ServerCommands::setupStandardServer(Minecraft&, std::basic_string const&, std::basic_string const&, PermissionsFile*):BossbarCommand::setup(CommandRegistry&); // practically nothing is implementedEnchantCommand::setup(CommandRegistry&);EquipCommand::setup(CommandRegistry&);
-