congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
LimitedOptions.getNumberBoosters
Code IndexAdd Tabnine to your IDE (free)

How to use
getNumberBoosters
method
in
mage.game.tournament.LimitedOptions

Best Java code snippets using mage.game.tournament.LimitedOptions.getNumberBoosters (Showing top 1 results out of 315)

origin: magefree/mage

protected void openBoosters() {
  for (TournamentPlayer player : this.players.values()) {
    player.setDeck(new Deck());
    if (options.getLimitedOptions().getDraftCube() != null) {
      DraftCube cube = options.getLimitedOptions().getDraftCube();
      for (int i = 0; i < options.getLimitedOptions().getNumberBoosters(); i++) {
        player.getDeck().getSideboard().addAll(cube.createBooster());
      }
    } else {
      for (ExpansionSet set : sets) {
        player.getDeck().getSideboard().addAll(set.createBooster());
      }
    }
  }
  resetBufferedCards();
  nextStep();
}
mage.game.tournamentLimitedOptionsgetNumberBoosters

Popular methods of LimitedOptions

  • getConstructionTime
  • getSetCodes
  • setDraftCube
  • setNumberBoosters
  • <init>
  • getCubeFromDeck
  • getDraftCube
  • getDraftCubeName
  • getIsRandom
  • setConstructionTime
  • setCubeFromDeck
  • setDraftCubeName
  • setCubeFromDeck,
  • setDraftCubeName,
  • setIsRandom

Popular in Java

  • Running tasks concurrently on multiple threads
  • findViewById (Activity)
  • requestLocationUpdates (LocationManager)
  • notifyDataSetChanged (ArrayAdapter)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JList (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now