Enum Class TEventResult

java.lang.Object
java.lang.Enum<TEventResult>
io.github.thecsdev.tcdcommons.api.event.TEventResult
All Implemented Interfaces:
Serializable, Comparable<TEventResult>, Constable

public enum TEventResult extends Enum<TEventResult>
  • Enum Constant Details

    • CANCEL_EVENT

      public static final TEventResult CANCEL_EVENT
    • CANCEL_PROPAGATION

      public static final TEventResult CANCEL_PROPAGATION
    • CANCEL_NONE

      public static final TEventResult CANCEL_NONE
    • CANCEL_ALL

      public static final TEventResult CANCEL_ALL
  • Method Details

    • values

      public static TEventResult[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TEventResult valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isEventCancelled

      public final boolean isEventCancelled()
    • isPropagationCancelled

      public final boolean isPropagationCancelled()
    • combine

      public TEventResult combine(TEventResult other)