Class TeamSelectionRegistry
java.lang.Object
com.pixelmonmod.pixelmon.battles.api.rules.teamselection.TeamSelectionRegistry
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder class for team selection UI -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addTeamSelection
(TeamSelection selection) Creates a new team selection.builder()
Gets aTeamSelection
builderstatic TeamSelection
getTeamSelection
(UUID 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:
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
-