Class GetKillerAlertEvent


  • public final class GetKillerAlertEvent
    extends Event
    Gets created whenever a Killer should receive a Killer Alert Notification. Contains the reason, and the Survivor who raised the Alert (if there's one). Setting this value to false will cancel the event, and the Killer won't receive the Notification.
    • Field Detail

      • reason

        public final KillerAlertReason reason
        The reason why this Alert was generated in the first place.
    • Method Detail

      • isCancelled

        public boolean isCancelled()
        Checks if the Alert was cancelled.
        Returns:
        True if it was cancelled.
      • cancel

        public void cancel()
        Cancels the Alert, meaning, the Killer will not receive this Alert.
      • getSurvivor

        public Survivor getSurvivor()
        Gets the Survivor who fired the event (if there's one).
        Returns:
        The Survivor who fired the event or null if no specific Survivor fired the event.