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

How to use
setTargetPointer
method
in
mage.abilities.effects.common.continuous.GainControlTargetEffect

Best Java code snippets using mage.abilities.effects.common.continuous.GainControlTargetEffect.setTargetPointer (Showing top 2 results out of 315)

origin: magefree/mage

  @Override
  public boolean apply(Game game, Ability source) {
    Permanent permanent = game.getPermanent(targetPointer.getFirst(game, source));
    if (super.apply(game, source) && permanent != null) {
      GainControlTargetEffect effect = new GainControlTargetEffect(Duration.EndOfGame);
      effect.setTargetPointer(targetPointer);
      game.addEffect(effect, source);
      return true;
    }
    return false;
  }
}
origin: magefree/mage

eff.setTargetPointer(new FixedTarget(target));
game.addEffect(eff, source);
mage.abilities.effects.common.continuousGainControlTargetEffectsetTargetPointer

Popular methods of GainControlTargetEffect

  • <init>
  • discard
  • getTargetPointer
  • init
  • setText

Popular in Java

  • Making http post requests using okhttp
  • getContentResolver (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • getSystemService (Context)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Table (org.hibernate.mapping)
    A relational table
  • From CI to AI: The AI layer in your organization
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