Interface EventConfig

  • All Known Implementing Classes:
    EventConfigImpl

    public interface EventConfig
    Event configuration.
    Since:
    1.0.0
    • Method Detail

      • defaults

        @NotNull
        static @NotNull EventConfig defaults()
        Gets the default configuration.
        Returns:
        the default configuration
        Since:
        1.0.0
      • order

        default int order()
        Gets the post order.
        Returns:
        the post order
        Since:
        1.0.0
      • order

        @NotNull
        default @NotNull EventConfig order​(int order)
        Sets the post order.
        Parameters:
        order - the post order
        Returns:
        an EventConfig
        Since:
        1.0.0
      • acceptsCancelled

        default boolean acceptsCancelled()
        Gets if cancelled events are accepted.
        Returns:
        if cancelled events are accepted
        Since:
        1.0.0
      • acceptsCancelled

        @NotNull
        default @NotNull EventConfig acceptsCancelled​(boolean acceptsCancelled)
        Sets if cancelled events are accepted.
        Parameters:
        acceptsCancelled - if cancelled events are accepted
        Returns:
        an EventConfig
        Since:
        1.0.0
      • exact

        default boolean exact()
        Gets if only the exact event type is accepted.
        Returns:
        if only the exact event type is accepted
        Since:
        1.0.0
      • exact

        @NotNull
        default @NotNull EventConfig exact​(boolean exact)
        Sets if only the exact event type is accepted.
        Parameters:
        exact - if only the exact event type is accepted
        Returns:
        an EventConfig
        Since:
        1.0.0