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

How to use
ReturnToHandFromGraveyardCost
in
mage.abilities.costs.common

Best Java code snippets using mage.abilities.costs.common.ReturnToHandFromGraveyardCost (Showing top 3 results out of 315)

origin: magefree/mage

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

public ReturnToHandFromGraveyardCost(TargetCardInYourGraveyard target) {
  this.addTarget(target);
  if (target.getMaxNumberOfTargets() > 1 && target.getMaxNumberOfTargets() == target.getNumberOfTargets()) {
    this.text = new StringBuilder("return ").append(target.getMaxNumberOfTargets()).append(' ').append(target.getTargetName()).append(" from graveyard to it's owner's hand").toString();
  } else {
    this.text = new StringBuilder("return ").append(target.getTargetName()).append(" from graveyard to it's owner's hand").toString();
  }
}
origin: magefree/mage

public HarvestWurm(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{G}");
  this.subtype.add(SubType.WURM);
  this.power = new MageInt(3);
  this.toughness = new MageInt(2);
  // When Harvest Wurm enters the battlefield, sacrifice it unless you return a basic land card from your graveyard to your hand.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ReturnToHandFromGraveyardCost(new TargetCardInYourGraveyard(StaticFilters.FILTER_CARD_BASIC_LAND)))));
}
mage.abilities.costs.commonReturnToHandFromGraveyardCost

Most used methods

  • <init>
  • addTarget

Popular in Java

  • Making http post requests using okhttp
  • onCreateOptionsMenu (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getResourceAsStream (ClassLoader)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Notification (javax.management)
  • JList (javax.swing)
  • 21 Best IntelliJ Plugins
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