Class TeamSelectionRegistry

java.lang.Object
com.pixelmonmod.pixelmon.battles.api.rules.teamselection.TeamSelectionRegistry

public final class TeamSelectionRegistry extends Object
  • Method Details

    • addTeamSelection

      public static void addTeamSelection(BattleRules rules, boolean showRules, PartyStorage... storages)
      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

      public static void addTeamSelection(TeamSelection selection)
      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

      public static TeamSelection getTeamSelection(int id)
      Gets a team selection from its ID.
      Parameters:
      id - The ID of the team selection.
      Returns:
      The team selection with the specified ID.
    • builder

      public static TeamSelectionRegistry.Builder builder()
      Gets a TeamSelection builder
      Returns:
      The team selection builder instance