Class TeamSelectionRegistry
java.lang.Object
com.pixelmonmod.pixelmon.battles.api.rules.teamselection.TeamSelectionRegistry
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder class for team selection UI -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addTeamSelection
(BattleRules rules, boolean showRules, PartyStorage... storages) Creates a new team selection.static void
addTeamSelection
(TeamSelection selection) Creates a new team selection.builder()
Gets aTeamSelection
builderstatic TeamSelection
getTeamSelection
(int id) Gets a team selection from its ID.static void
removeSelection
(net.minecraft.server.level.ServerPlayer player) Removes the team selection containing a player, if any.
-
Method Details
-
addTeamSelection
Creates a new team selection.- Parameters:
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.
-
addTeamSelection
Creates a new team selection.- Parameters:
selection
- - Begins the team selection process
-
removeSelection
public static void removeSelection(net.minecraft.server.level.ServerPlayer player) Removes the team selection containing a player, if any.- Parameters:
player
- The player to remove.
-
getTeamSelection
Gets a team selection from its ID.- Parameters:
id
- The ID of the team selection.- Returns:
- The team selection with the specified ID.
-
builder
Gets aTeamSelection
builder- Returns:
- The team selection builder instance
-