Class AbilityProjectileTrail

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

public class AbilityProjectileTrail extends Object implements Component<EntityStore>
Makes an ability projectile emit a particle burst at its position on a fixed cadence while it travels, painting the danger zone on the ground (e.g. a crack marching with a ground wave). Each burst resolves its tint from the projectile's element conversion, so a rune-converted ability paints its trail in its element; the base color applies otherwise.
  • Constructor Details

    • AbilityProjectileTrail

      public AbilityProjectileTrail(@Nonnull String systemId, float intervalS, float scale, @Nullable Color baseColor)
  • Method Details

    • getComponentType

      public static ComponentType<EntityStore, AbilityProjectileTrail> getComponentType()
    • getSystemId

      @Nonnull public String getSystemId()
    • getScale

      public float getScale()
    • getBaseColor

      @Nullable public Color getBaseColor()
    • advanceAndCheckBurst

      public boolean advanceAndCheckBurst(float dt)
      Counts down toward the next burst.
      Parameters:
      dt - The tick delta in seconds.
      Returns:
      true when a burst is due this tick.
    • clone

      @Nonnull public Component<EntityStore> clone()
      Specified by:
      clone in interface Component<EntityStore>
      Returns:
      a clone instance of the original component instance.