Package net.blueva.arcade.api.visuals
Interface VisualEffectsAPI<P,L>
public interface VisualEffectsAPI<P,L>
API for playing visual effects tied to store selections.
-
Method Summary
Modifier and TypeMethodDescriptionvoidplayDeathEffect(P victim) Play the selected death effect for the given player at their current location.voidplayDeathEffect(P victim, L location) Play the selected death effect for the given player at the provided location.voidplayKillEffect(P killer) Play the selected kill effect for the given player at their current location.voidplayKillEffect(P killer, L location) Play the selected kill effect for the given player at the provided location.
-
Method Details
-
playKillEffect
Play the selected kill effect for the given player at their current location.- Parameters:
killer- player who earned the kill
-
playKillEffect
Play the selected kill effect for the given player at the provided location.- Parameters:
killer- player who earned the killlocation- location to play the effect at (falls back to player location if null)
-
playDeathEffect
Play the selected death effect for the given player at their current location.- Parameters:
victim- player who died
-
playDeathEffect
Play the selected death effect for the given player at the provided location.- Parameters:
victim- player who diedlocation- location to play the effect at (falls back to player location if null)
-