Class TeamSelectionRegistry
java.lang.Object
com.pixelmonmod.pixelmon.battles.api.rules.teamselection.TeamSelectionRegistry
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class for team selection UI -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddTeamSelection(TeamSelection selection) Creates a new team selection.builder()Gets aTeamSelectionbuilderstatic TeamSelectiongetTeamSelection(UUID id) Gets a team selection from its ID.static voidremoveSelection(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 aTeamSelectionbuilder- Returns:
- The team selection builder instance
-