Tabnine Logo
SpectacleAbility.getCosts
Code IndexAdd Tabnine to your IDE (free)

How to use
getCosts
method
in
mage.abilities.keyword.SpectacleAbility

Best Java code snippets using mage.abilities.keyword.SpectacleAbility.getCosts (Showing top 1 results out of 315)

origin: magefree/mage

public SpectacleAbility(Card card, ManaCost spectacleCosts) {
  super(spectacleCosts, card.getName() + " with spectacle", Zone.HAND, SpellAbilityType.BASE_ALTERNATE);
  this.getCosts().addAll(card.getSpellAbility().getCosts().copy());
  this.getEffects().addAll(card.getSpellAbility().getEffects().copy());
  this.getTargets().addAll(card.getSpellAbility().getTargets().copy());
  this.spellAbilityType = SpellAbilityType.BASE_ALTERNATE;
  this.timing = card.getSpellAbility().getTiming();
  this.setRuleAtTheTop(true);
  this.rule = "Spectacle " + spectacleCosts.getText()
      + " <i>(You may cast this spell for its spectacle cost rather than its mana cost if an opponent lost life this turn.)</i>";
}
mage.abilities.keywordSpectacleAbilitygetCosts

Popular methods of SpectacleAbility

  • <init>
  • getEffects
  • getRule
  • getSourceId
  • getTargets
  • setRuleAtTheTop

Popular in Java

  • Creating JSON documents from java classes using gson
  • setRequestProperty (URLConnection)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onRequestPermissionsResult (Fragment)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • 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