Skip to content

Commit

Permalink
line breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Snabeldier committed Jan 24, 2025
1 parent fd7b297 commit 8a141b9
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/main/java/minevalley/core/api/messaging/MessageReceiver.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ public interface MessageReceiver {
*/
@Nonnull
@Contract("_, _ -> new")
ChatMenu sendMessage(@Nonnull ComponentLike message, @Nonnull ClickableOption... menu) throws IllegalArgumentException;
ChatMenu sendMessage(@Nonnull ComponentLike message, @Nonnull ClickableOption... menu)
throws IllegalArgumentException;

/**
* Sends a message to the receiver.
Expand All @@ -121,7 +122,8 @@ public interface MessageReceiver {
*/
@Nonnull
@Contract("_, _, _ -> new")
ChatMenu sendMessage(@Nonnull ComponentLike message, @Nonnull Instruction instruction, @Nonnull ClickableOption... menu) throws IllegalArgumentException;
ChatMenu sendMessage(@Nonnull ComponentLike message, @Nonnull Instruction instruction,
@Nonnull ClickableOption... menu) throws IllegalArgumentException;

/**
* Sends a message to the receiver.
Expand All @@ -140,7 +142,8 @@ public interface MessageReceiver {
* @param instruction the instruction to send
* @throws IllegalArgumentException if the type, message or instruction is null
*/
void sendMessage(@Nonnull MessageType type, @Nonnull ComponentLike message, @Nonnull Instruction instruction) throws IllegalArgumentException;
void sendMessage(@Nonnull MessageType type, @Nonnull ComponentLike message, @Nonnull Instruction instruction)
throws IllegalArgumentException;

/**
* Sends a message to the receiver.
Expand All @@ -153,7 +156,8 @@ public interface MessageReceiver {
*/
@Nonnull
@Contract("_, _, _ -> new")
ChatMenu sendMessage(@Nonnull MessageType type, @Nonnull ComponentLike message, @Nonnull ClickableOption... menu) throws IllegalArgumentException;
ChatMenu sendMessage(@Nonnull MessageType type, @Nonnull ComponentLike message, @Nonnull ClickableOption... menu)
throws IllegalArgumentException;

/**
* Sends a message to the receiver.
Expand All @@ -167,7 +171,8 @@ public interface MessageReceiver {
*/
@Nonnull
@Contract("_, _, _, _ -> new")
ChatMenu sendMessage(@Nonnull MessageType type, @Nonnull ComponentLike message, @Nonnull Instruction instruction, @Nonnull ClickableOption... menu) throws IllegalArgumentException;
ChatMenu sendMessage(@Nonnull MessageType type, @Nonnull ComponentLike message, @Nonnull Instruction instruction,
@Nonnull ClickableOption... menu) throws IllegalArgumentException;

/**
* Shows a title to the receiver.
Expand Down Expand Up @@ -208,7 +213,8 @@ void showTitle(@Nonnull Component title, @Nonnull Component subtitle, @Nonnull D
* @param callback the callback to call when the user inputs something
* @throws IllegalArgumentException if the text, instruction or callback is null
*/
void input(@Nonnull String text, @Nonnull Instruction instruction, @Nonnull Consumer<String> callback) throws IllegalArgumentException;
void input(@Nonnull String text, @Nonnull Instruction instruction, @Nonnull Consumer<String> callback)
throws IllegalArgumentException;

/**
* Checks if the receiver is currently in a chat input.
Expand Down

0 comments on commit 8a141b9

Please sign in to comment.