Skip to content

Commit

Permalink
add throw iae
Browse files Browse the repository at this point in the history
  • Loading branch information
Snabeldier committed Feb 5, 2025
1 parent d18cb88 commit 41f8b63
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/minevalley/core/api/utils/ClickableMessage.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public interface ClickableMessage {
* Defines if this clickable message gets disabled automatically when the player clicks it.
*
* @param isSelfCancelling boolean that defines if this clickable message is self cancelling
* @return this clickable message
* @return this
*/
@Nonnull
@Contract("_ -> this")
Expand All @@ -21,12 +21,12 @@ public interface ClickableMessage {
/**
* Defines the callback which is called when the player clicks this message.
*
* @param runnable will be called if the player clicks the message
* @return runnable
* @param callback will be called if the player clicks the message
* @return this
*/
@Nonnull
@Contract("_ -> this")
ClickableMessage setCallback(@Nonnull Runnable callback);
ClickableMessage setCallback(@Nonnull Runnable callback) throws IllegalArgumentException;

/**
* Disables this clickable message
Expand Down

0 comments on commit 41f8b63

Please sign in to comment.