Klasse PlayerArenaCommands
java.lang.Object
de.delinkedde.mobarenareborn.command.commands.PlayerArenaCommands
- Alle implementierten Schnittstellen:
MobArenaCommand
Player-facing arena commands:
join, leave and ready.
These drive the lobby flow through the SessionManager. Joining places a player in
the arena lobby; readying up starts the countdown once everyone is ready; leaving restores the
player's saved state.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungPlayerArenaCommands(@NotNull ArenaManager arenas, @NotNull SessionManager sessions, @NotNull Messages messages, @NotNull RewardCache rewardCache, @NotNull SpectateManager spectate, @NotNull StatsService stats) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidregister(@NotNull com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> root) Attaches this subcommand to the root/mabuilder.
-
Konstruktordetails
-
PlayerArenaCommands
public PlayerArenaCommands(@NotNull @NotNull ArenaManager arenas, @NotNull @NotNull SessionManager sessions, @NotNull @NotNull Messages messages, @NotNull @NotNull RewardCache rewardCache, @NotNull @NotNull SpectateManager spectate, @NotNull @NotNull StatsService stats) - Parameter:
arenas- the arena managersessions- the session manager handling join, leave and readymessages- the message rendererrewardCache- the reward cache backing/ma claimspectate- the spectate manager backing/ma spectatestats- the statistics service backing/ma statsand/ma top
-
-
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)
-