From 2d9227ccf06588f8e464b053448a30acea4d1be0 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Mon, 5 Aug 2019 10:51:45 -0400 Subject: [PATCH] Fix Checkstyle --- .../api/event/player/TabCompleteEvent.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/api/src/main/java/com/velocitypowered/api/event/player/TabCompleteEvent.java b/api/src/main/java/com/velocitypowered/api/event/player/TabCompleteEvent.java index ecfbded01..f033d954e 100644 --- a/api/src/main/java/com/velocitypowered/api/event/player/TabCompleteEvent.java +++ b/api/src/main/java/com/velocitypowered/api/event/player/TabCompleteEvent.java @@ -15,6 +15,12 @@ public class TabCompleteEvent { private final String partialMessage; private final List suggestions; + /** + * Constructs a new TabCompleteEvent instance. + * @param player the player + * @param partialMessage the partial message + * @param suggestions the initial list of suggestions + */ public TabCompleteEvent(Player player, String partialMessage, List suggestions) { this.player = checkNotNull(player, "player"); this.partialMessage = checkNotNull(partialMessage, "partialMessage"); @@ -31,12 +37,16 @@ public class TabCompleteEvent { /** * Returns the message being partially completed. - * @return + * @return the partial message */ public String getPartialMessage() { return partialMessage; } + /** + * Returns all the suggestions provided to the user, as a mutable list. + * @return the suggestions + */ public List getSuggestions() { return suggestions; }