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

How to use
getGreen
method
in
mage.ConditionalMana

Best Java code snippets using mage.ConditionalMana.getGreen (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);
}
mageConditionalManagetGreen

Popular methods of ConditionalMana

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • putExtra (Intent)
  • runOnUiThread (Activity)
  • setContentView (Activity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • JTextField (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top plugins for Android Studio
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