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

public class TeamSelection extends Object
  • Field Details

    • uniqueId

      protected UUID uniqueId
    • participants

      protected ParticipantSelection[] participants
    • showOpponentTeam

      protected boolean showOpponentTeam
    • closeable

      protected boolean closeable
    • rules

      protected final net.minecraft.core.Holder<BattleRuleSet> rules
    • cancelConsumer

      protected final Consumer<TeamSelection> cancelConsumer
    • battleStartConsumer

      protected final Consumer<BattleController> battleStartConsumer
  • Constructor Details

  • Method Details

    • hasPlayer

      public boolean hasPlayer(net.minecraft.server.level.ServerPlayer player)
    • handleCancel

      public void handleCancel()
    • registerTeamSelect

      public void registerTeamSelect(net.minecraft.server.level.ServerPlayer player, it.unimi.dsi.fastutil.ints.IntList selection)
      Registers a selection that a player has made.
      Parameters:
      player - The player making the selection.
      selection - The selection the player made.
    • unregisterTeamSelect

      public void unregisterTeamSelect(net.minecraft.server.level.ServerPlayer player, it.unimi.dsi.fastutil.ints.IntList selection)
      Marks a player's selection as unconfirmed.
      Parameters:
      player - The player to mark as unconfirmed.