Class SpawnAbilityEntityInteraction

All Implemented Interfaces:
JsonAsset<String>, JsonAssetWithMap<String, IndexedLookupTableAssetMap<String, Interaction>>, NetworkSerializable<Interaction>, AbilityAttributeBinding, Operation

public class SpawnAbilityEntityInteraction extends SimpleInstantInteraction implements AbilityAttributeBinding
An ability building block: spawns a stationary ability entity (e.g. a tornado) at the point the caster aims at. The entity lives for Lifetime seconds and re-runs each of its Repeats chains at its own interval. It has no stats, so damage against it is ignored, but other abilities can still apply effects to it.
  • Field Details

  • Constructor Details

    • SpawnAbilityEntityInteraction

      public SpawnAbilityEntityInteraction()
  • Method Details

    • getRepeatChainRootIds

      @Nonnull public String[] getRepeatChainRootIds()
      Returns:
      the root interaction ids the spawned entity runs on its repeat intervals, or an empty array when it has none.
    • collectAbilityAttributes

      public void collectAbilityAttributes(@Nonnull Consumer<String> out)
      Description copied from interface: AbilityAttributeBinding
      Passes every attribute name this config binds to out.
      Specified by:
      collectAbilityAttributes in interface AbilityAttributeBinding