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

How to use
setCanGainLife
method
in
mage.players.Player

Best Java code snippets using mage.players.Player.setCanGainLife (Showing top 3 results out of 315)

origin: magefree/mage

  @Override
  public boolean apply(Game game, Ability source) {
    Player player = game.getPlayer(this.targetPointer.getFirst(game, source));
    if (player != null) {
      player.setCanGainLife(false);
    }
    return true;
  }
}
origin: magefree/mage

@Override
public boolean apply(Game game, Ability source) {
  for(UUID playerId: this.getTargetPointer().getTargets(game, source) ) {
    Player targetPlayer = game.getPlayer(playerId);
    if (targetPlayer != null) {
      targetPlayer.setCanGainLife(false);
    }
  }
  return true;
}
origin: magefree/mage

switch (targetController) {
  case YOU:
    controller.setCanGainLife(false);
    break;
  case NOT_YOU:
      Player player = game.getPlayer(playerId);
      if (player != null && !player.equals(controller)) {
        player.setCanGainLife(false);
        Player player = game.getPlayer(playerId);
        if (player != null) {
          player.setCanGainLife(false);
      Player player = game.getPlayer(playerId);
      if (player != null) {
        player.setCanGainLife(false);
mage.playersPlayersetCanGainLife

Popular methods of Player

  • getId
  • getHand
  • getName
  • getLife
  • getLibrary
  • hasLeft
  • hasWon
  • getCounters
  • hasLost
  • copy
  • damage
  • declareAttacker
  • damage,
  • declareAttacker,
  • getGraveyard,
  • getPlayersUnderYourControl,
  • activateAbility,
  • canLose,
  • choose,
  • declareBlocker,
  • gainLife,
  • getAttachments

Popular in Java

  • Creating JSON documents from java classes using gson
  • runOnUiThread (Activity)
  • getApplicationContext (Context)
  • getResourceAsStream (ClassLoader)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • 21 Best Atom Packages for 2021
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