congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
MonoHybridManaCost
Code IndexAdd Tabnine to your IDE (free)

How to use
MonoHybridManaCost
in
mage.abilities.costs.mana

Best Java code snippets using mage.abilities.costs.mana.MonoHybridManaCost (Showing top 6 results out of 315)

origin: magefree/mage

@Override
public MonoHybridManaCost copy() {
  return new MonoHybridManaCost(this);
}
origin: magefree/mage

@Override
public void assignPayment(Game game, Ability ability, ManaPool pool, Cost costToPay) {
  if (!assignColored(ability, game, pool, mana, costToPay)) {
    assignGeneric(ability, game, pool, mana2, costToPay);
  }
}
origin: magefree/mage

@Override
public boolean isPaid() {
  if (paid || isColoredPaid(this.mana)) {
    return true;
  }
  return isColorlessPaid(this.mana2);
}
origin: magefree/mage

public MonoHybridManaCost(ColoredManaSymbol mana) {
  this.mana = mana;
  this.cost = new Mana(mana);
  this.cost.add(Mana.GenericMana(2));
  addColoredOption(mana);
  options.add(Mana.GenericMana(2));
}
origin: magefree/mage

  newManaCosts.add(new ColoredManaCost(((MonoHybridManaCost) manaCost).getManaColor()));
} else {
  newManaCosts.add(manaCost.copy());
origin: magefree/mage

  this.add(new MonoHybridManaCost(ColoredManaSymbol.lookup(symbol.charAt(2))));
} else if (symbol.contains("P")) {
  this.add(new PhyrexianManaCost(ColoredManaSymbol.lookup(symbol.charAt(0))));
mage.abilities.costs.manaMonoHybridManaCost

Most used methods

  • <init>
  • addColoredOption
  • assignColored
  • assignGeneric
  • getManaColor
  • isColoredPaid
  • isColorlessPaid

Popular in Java

  • Reading from database using SQL prepared statement
  • setContentView (Activity)
  • getContentResolver (Context)
  • putExtra (Intent)
  • Menu (java.awt)
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • JPanel (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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