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

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

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

origin: magefree/mage

@Override
@SuppressWarnings("unchecked")
public boolean activate(Game game, boolean noMana) {
  if (super.activate(game, noMana)) {
    ArrayList<Integer> spectacleActivations = (ArrayList) game.getState().getValue(SPECTACLE_ACTIVATION_VALUE_KEY + getSourceId());
    if (spectacleActivations == null) {
      spectacleActivations = new ArrayList<>(); // zoneChangeCounter
      game.getState().setValue(SPECTACLE_ACTIVATION_VALUE_KEY + getSourceId(), spectacleActivations);
    }
    spectacleActivations.add(game.getState().getZoneChangeCounter(getSourceId()));
    return true;
  }
  return false;
}
mage.abilities.keywordSpectacleAbilitygetSourceId

Popular methods of SpectacleAbility

  • <init>
  • getCosts
  • getEffects
  • getRule
  • 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
  • Best IntelliJ plugins
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