Interface VisualEffectsAPI<P,L>


public interface VisualEffectsAPI<P,L>
API for playing visual effects tied to store selections.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Play the selected death effect for the given player at their current location.
    void
    playDeathEffect(P victim, L location)
    Play the selected death effect for the given player at the provided location.
    void
    playKillEffect(P killer)
    Play the selected kill effect for the given player at their current location.
    void
    playKillEffect(P killer, L location)
    Play the selected kill effect for the given player at the provided location.
  • Method Details

    • playKillEffect

      void playKillEffect(P killer)
      Play the selected kill effect for the given player at their current location.
      Parameters:
      killer - player who earned the kill
    • playKillEffect

      void playKillEffect(P killer, @Nullable L location)
      Play the selected kill effect for the given player at the provided location.
      Parameters:
      killer - player who earned the kill
      location - location to play the effect at (falls back to player location if null)
    • playDeathEffect

      void playDeathEffect(P victim)
      Play the selected death effect for the given player at their current location.
      Parameters:
      victim - player who died
    • playDeathEffect

      void playDeathEffect(P victim, @Nullable L location)
      Play the selected death effect for the given player at the provided location.
      Parameters:
      victim - player who died
      location - location to play the effect at (falls back to player location if null)