Schnittstelle MobArenaCommand
- Alle bekannten Implementierungsklassen:
ArenaAdminCommands,ArenaSetupCommands,ClassCommand,PlayerArenaCommands,ReloadCommand,VersionCommand
public interface MobArenaCommand
A modular subcommand contribution to the
/ma command tree.
Each implementation attaches its own literal (and any arguments) to the shared root
builder. This keeps subcommands self-contained and lets CommandManager compose the
tree from an ordered list, so future milestones add commands by implementing this interface
rather than editing a monolithic builder.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidregister(@NotNull com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> root) Attaches this subcommand to the root/mabuilder.
-
Methodendetails
-
register
void register(@NotNull @NotNull com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> root) Attaches this subcommand to the root/mabuilder.- Parameter:
root- the root literal builder to extend, typically viaArgumentBuilder.then(com.mojang.brigadier.builder.ArgumentBuilder)
-