Skip to content

Commit 41f8b63

Browse files
committed
add throw iae
1 parent d18cb88 commit 41f8b63

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/minevalley/core/api/utils/ClickableMessage.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public interface ClickableMessage {
1212
* Defines if this clickable message gets disabled automatically when the player clicks it.
1313
*
1414
* @param isSelfCancelling boolean that defines if this clickable message is self cancelling
15-
* @return this clickable message
15+
* @return this
1616
*/
1717
@Nonnull
1818
@Contract("_ -> this")
@@ -21,12 +21,12 @@ public interface ClickableMessage {
2121
/**
2222
* Defines the callback which is called when the player clicks this message.
2323
*
24-
* @param runnable will be called if the player clicks the message
25-
* @return runnable
24+
* @param callback will be called if the player clicks the message
25+
* @return this
2626
*/
2727
@Nonnull
2828
@Contract("_ -> this")
29-
ClickableMessage setCallback(@Nonnull Runnable callback);
29+
ClickableMessage setCallback(@Nonnull Runnable callback) throws IllegalArgumentException;
3030

3131
/**
3232
* Disables this clickable message

0 commit comments

Comments
 (0)