Interface FlexibleListener<E extends net.minestom.server.event.Event>


public interface FlexibleListener<E extends net.minestom.server.event.Event>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Fails if an event is received.
    default void
     
    void
    followup(@NotNull Consumer<E> handler)
    Updates the handler.
  • Method Details

    • followup

      void followup(@NotNull @NotNull Consumer<E> handler)
      Updates the handler. Fails if the previous followup has not been called.
    • followup

      default void followup()
    • failFollowup

      void failFollowup()
      Fails if an event is received. Valid until the next followup call.