Class AbilityChainCollector

java.lang.Object
com.hypixel.hytale.builtin.abilities.chain.AbilityChainCollector
All Implemented Interfaces:
Collector
Direct Known Subclasses:
AbilityDescriptionCollector

public abstract class AbilityChainCollector extends Object implements Collector
A Collector over everything a core rune's cast chain reaches: the chain itself, a launched projectile's hit and miss chains, a charge's per-activation chain and a spawned entity's repeat chains. Subclasses see every interaction on the way through visit(Interaction).
  • Constructor Details

    • AbilityChainCollector

      public AbilityChainCollector()
  • Method Details

    • walkRoot

      public final void walkRoot(@Nullable String rootId)
    • collect

      public final boolean collect(@Nonnull CollectorTag tag, @Nonnull InteractionContext context, @Nonnull Interaction interaction)
      Description copied from interface: Collector
      Collect is called a maximum of once per Collector.into(InteractionContext, Interaction) and a minimum of never if nothing matches.
      Specified by:
      collect in interface Collector
      Parameters:
      tag - a tag to describe where the data is from
      context - the context for the interaction
      interaction - the interaction to collect data from
      Returns:
      returns true when walking the tree should stop
    • start

      public void start()
      Specified by:
      start in interface Collector
    • into

      public void into(@Nonnull InteractionContext context, @Nullable Interaction interaction)
      Description copied from interface: Collector
      Called when stepping into an interaction.
      Specified by:
      into in interface Collector
      Parameters:
      context - the context for the interaction we are stepping into
      interaction - the interaction being stepped into or null if this is a root
    • outof

      public void outof()
      Specified by:
      outof in interface Collector
    • finished

      public void finished()
      Specified by:
      finished in interface Collector