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

How to use
getColorless
method
in
mage.ConditionalMana

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

Popular methods of ConditionalMana

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

Popular in Java

  • Start an intent from android
  • putExtra (Intent)
  • addToBackStack (FragmentTransaction)
  • setContentView (Activity)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JButton (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Github Copilot alternatives
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