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

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

Best Java code snippets using mage.game.tournament.LimitedOptions.getDraftCube (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.tournamentLimitedOptionsgetDraftCube

Popular methods of LimitedOptions

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

Popular in Java

  • Updating database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • getSharedPreferences (Context)
  • getResourceAsStream (ClassLoader)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Top Vim 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