Tabnine Logo
ConditionalMana.getBlue
Code IndexAdd Tabnine to your IDE (free)

How to use
getBlue
method
in
mage.ConditionalMana

Best Java code snippets using mage.ConditionalMana.getBlue (Showing top 2 results out of 315)

origin: magefree/mage

public ManaPoolView(ManaPool pool) {
  this.red = pool.getRed();
  this.green = pool.getGreen();
  this.blue = pool.getBlue();
  this.white = pool.getWhite();
  this.black = pool.getBlack();
  this.colorless = pool.getColorless();
  for (ConditionalMana mana : pool.getConditionalMana()) {
    this.red += mana.getRed();
    this.green += mana.getGreen();
    this.blue += mana.getBlue();
    this.white += mana.getWhite();
    this.black += mana.getBlack();
    this.colorless += mana.getColorless();
  }
}
origin: magefree/mage

@Override
public Mana produceMana(boolean netMana, Game game, Ability source) {
  Player controller = game.getPlayer(source.getControllerId());
  if (controller == null) {
    return null;
  }
  ManaPool pool = controller.getManaPool();
  int blackMana = pool.getBlack();
  int whiteMana = pool.getWhite();
  int blueMana = pool.getBlue();
  int greenMana = pool.getGreen();
  int redMana = pool.getRed();
  int colorlessMana = pool.getColorless();
  for (ConditionalMana conditionalMana : pool.getConditionalMana()) {
    blackMana += conditionalMana.getBlack();
    whiteMana += conditionalMana.getWhite();
    blueMana += conditionalMana.getBlue();
    greenMana += conditionalMana.getGreen();
    redMana += conditionalMana.getRed();
    colorlessMana += conditionalMana.getColorless();
  }
  return new Mana(redMana, greenMana, blueMana, whiteMana, blackMana, 0, 0, colorlessMana);
}
mageConditionalManagetBlue

Popular methods of ConditionalMana

  • apply
  • getBlack
  • getColorless
  • getGreen
  • getRed
  • getWhite
  • <init>
  • add
  • clear
  • copy
  • count
  • get
  • count,
  • get,
  • getDescription,
  • getFlag,
  • getManaProducerId,
  • getManaProducerOriginalId,
  • removeAll,
  • set,
  • setManaProducerId

Popular in Java

  • Updating database using SQL prepared statement
  • getSystemService (Context)
  • startActivity (Activity)
  • requestLocationUpdates (LocationManager)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top PhpStorm 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