Klasse ClassCommand

java.lang.Object
de.delinkedde.mobarenareborn.command.commands.ClassCommand
Alle implementierten Schnittstellen:
MobArenaCommand

public final class ClassCommand extends Object implements 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.

  • 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 registry
      sessions - the session manager
      progression - the progression service, for the level shown in feedback
      menus - the menu manager used to open the class selection GUI
      messages - the message renderer
  • Methodendetails

    • register

      public void register(@NotNull @NotNull com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> root)
      Beschreibung aus Schnittstelle kopiert: MobArenaCommand
      Attaches this subcommand to the root /ma builder.
      Angegeben von:
      register in Schnittstelle MobArenaCommand
      Parameter:
      root - the root literal builder to extend, typically via ArgumentBuilder.then(com.mojang.brigadier.builder.ArgumentBuilder)