public final class TeamSelectionRegistry
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TeamSelectionRegistry.Builder
Builder class for team selection UI
|
Modifier and Type | Method and Description |
---|---|
static void |
addTeamSelection(BattleRules rules,
boolean showRules,
PartyStorage... storages)
Creates a new team selection.
|
static void |
addTeamSelection(TeamSelection selection)
Creates a new team selection.
|
static TeamSelectionRegistry.Builder |
builder()
Gets a
TeamSelection builder |
static TeamSelection |
getTeamSelection(int id)
Gets a team selection from its ID.
|
static void |
removeSelection(net.minecraft.entity.player.ServerPlayerEntity player)
Removes the team selection containing a player, if any.
|
public static void addTeamSelection(BattleRules rules, boolean showRules, PartyStorage... storages)
rules
- The rules to use for the team selection.showRules
- Whether to show the rules before displaying the team select screen.storages
- The parties of the participants of the battle.public static void addTeamSelection(TeamSelection selection)
selection
- - Begins the team selection processpublic static void removeSelection(net.minecraft.entity.player.ServerPlayerEntity player)
player
- The player to remove.public static TeamSelection getTeamSelection(int id)
id
- The ID of the team selection.public static TeamSelectionRegistry.Builder builder()
TeamSelection
builder