Class AbilityProjectileLauncher

java.lang.Object
com.hypixel.hytale.builtin.abilities.trigger.AbilityProjectileLauncher

public final class AbilityProjectileLauncher extends Object
Launches an ability projectile: a server-only projectile fired along the caster's look (optionally flattened for ground waves). Its hit chain runs where it lands; a piercing projectile instead runs the hit chain per entity crossed and its miss chain once where its course ends. The launch's attributes and on-hit effects are stamped onto the projectile so its chains resolve like a direct ability cast.
  • Method Details

    • launch

      public static void launch(@Nonnull Ref<EntityStore> casterRef, @Nonnull CommandBuffer<EntityStore> commandBuffer, @Nonnull AbilityProjectileLaunchData launch)
    • launch

      public static void launch(@Nonnull Ref<EntityStore> casterRef, @Nonnull CommandBuffer<EntityStore> commandBuffer, @Nonnull AbilityProjectileLaunchData launch, @Nonnull org.joml.Vector3d position, @Nonnull org.joml.Vector3d direction, @Nullable it.unimi.dsi.fastutil.objects.ObjectArrayList<Ref<EntityStore>> inheritedVisited)
      Launches from an explicit position and direction instead of the caster's look: the split brick respawning fork or ricochet children at an impact point. The caster stays the creator, so the children keep the original damage attribution.
      Parameters:
      inheritedVisited - Entities already struck along this projectile chain, carried into the child's split state so a ricochet never bounces back. null for a fresh cast.