Class AbilityProjectileSplit

java.lang.Object
com.hypixel.hytale.builtin.abilities.trigger.AbilityProjectileSplit
All Implemented Interfaces:
Component<EntityStore>, Cloneable

public class AbilityProjectileSplit extends Object implements Component<EntityStore>
Split state of an ability projectile whose cast carries a Fork or Ricochet rune. Stamped at launch and consumed by the SplitAbilityProjectile brick in the projectile's hit chain: the launch respawns the children, and the visited list keeps a ricochet chain from bouncing back to an entity it already struck. One split action per projectile: a fork spends the whole component, so a piercing projectile crossing many entities splits only once.
  • Field Details

    • FORK_THRESHOLD

      public static final int FORK_THRESHOLD
      Resolved value of the Fork attribute at or above which a projectile forks: the attribute counts the projectiles the flight splits into, and 1 (the implicit base every support modifier starts from) is the unsplit flight itself.
      See Also:
  • Constructor Details

    • AbilityProjectileSplit

      public AbilityProjectileSplit(@Nonnull AbilityProjectileLaunchData launch, int forkInto, int bouncesLeft, @Nullable it.unimi.dsi.fastutil.objects.ObjectArrayList<Ref<EntityStore>> visited)
  • Method Details