Klasse ClassCommand
java.lang.Object
de.delinkedde.mobarenareborn.command.commands.ClassCommand
- Alle implementierten Schnittstellen:
MobArenaCommand
/ma class <name> - selects a class while in an arena lobby.
The selection is applied as the player's loadout when the round starts; the feedback shows the player's current level in the chosen class.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungClassCommand(@NotNull ClassRegistry classRegistry, @NotNull SessionManager sessions, @NotNull ProgressionService progression, @NotNull MenuManager menus, @NotNull Messages messages) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidregister(@NotNull com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> root) Attaches this subcommand to the root/mabuilder.
-
Konstruktordetails
-
ClassCommand
public ClassCommand(@NotNull @NotNull ClassRegistry classRegistry, @NotNull @NotNull SessionManager sessions, @NotNull @NotNull ProgressionService progression, @NotNull @NotNull MenuManager menus, @NotNull @NotNull Messages messages) - Parameter:
classRegistry- the class registrysessions- the session managerprogression- the progression service, for the level shown in feedbackmenus- the menu manager used to open the class selection GUImessages- the message renderer
-
-
Methodendetails
-
register
public void register(@NotNull @NotNull com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> root) Beschreibung aus Schnittstelle kopiert:MobArenaCommandAttaches this subcommand to the root/mabuilder.- Angegeben von:
registerin SchnittstelleMobArenaCommand- Parameter:
root- the root literal builder to extend, typically viaArgumentBuilder.then(com.mojang.brigadier.builder.ArgumentBuilder)
-