congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SearchLibraryPutInPlayEffect.setText
Code IndexAdd Tabnine to your IDE (free)

How to use
setText
method
in
mage.abilities.effects.common.search.SearchLibraryPutInPlayEffect

Best Java code snippets using mage.abilities.effects.common.search.SearchLibraryPutInPlayEffect.setText (Showing top 2 results out of 315)

origin: magefree/mage

public SearchLibraryPutInPlayEffect(TargetCardInLibrary target, boolean tapped, boolean forceShuffle, Outcome outcome) {
  super(target, outcome);
  this.tapped = tapped;
  this.forceShuffle = forceShuffle;
  setText();
}
origin: magefree/mage

public OneWithNature(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{G}");
  this.subtype.add(SubType.AURA);
  // Enchant creature
  TargetPermanent auraTarget = new TargetCreaturePermanent();
  this.getSpellAbility().addTarget(auraTarget);
  this.getSpellAbility().addEffect(new AttachEffect(Outcome.PutLandInPlay));
  Ability ability = new EnchantAbility(auraTarget.getTargetName());
  this.addAbility(ability);
  // Whenever enchanted creature deals combat damage to a player, you may search your library for a basic land card, put that card onto the battlefield tapped, then shuffle your library.
  ability = new DealsDamageToAPlayerAttachedTriggeredAbility(
      new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND), true, Outcome.PutLandInPlay)
          .setText("you may search your library for a basic land card, put that card onto the battlefield tapped, then shuffle your library."),
      "enchanted creature", true, false, true, TargetController.ANY);
  this.addAbility(ability);
}
mage.abilities.effects.common.searchSearchLibraryPutInPlayEffectsetText

Popular methods of SearchLibraryPutInPlayEffect

  • <init>
  • apply
  • getTargets

Popular in Java

  • Start an intent from android
  • runOnUiThread (Activity)
  • getContentResolver (Context)
  • setScale (BigDecimal)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • JComboBox (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • 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