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

How to use
removeAction
method
in
com.cardshifter.modapi.actions.ActionComponent

Best Java code snippets using com.cardshifter.modapi.actions.ActionComponent.removeAction (Showing top 1 results out of 315)

origin: Cardshifter/Cardshifter

private void performAction(ECSAction mulliganAction) {
  List<Entity> chosenTargets = mulliganAction.getTargetSets().get(0).getChosenTargets();
  chosenTargets.forEach(this::switchCard);
  Entity owner = mulliganAction.getOwner();
  owner.getComponent(ActionComponent.class).removeAction(ACTION_NAME);
  owner.getComponent(DeckComponent.class).shuffle();
  if (remainingPerforms.decrementAndGet() == 0) {
    phases.nextPhase();
  }
}

com.cardshifter.modapi.actionsActionComponentremoveAction

Popular methods of ActionComponent

  • <init>
  • addAction
  • getAction
  • getECSActions
  • getActions

Popular in Java

  • Creating JSON documents from java classes using gson
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • notifyDataSetChanged (ArrayAdapter)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Path (java.nio.file)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • 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