From 1baba3cd7dc748665e9ca30d382185b98b4d8efa Mon Sep 17 00:00:00 2001 From: YoshiGenius Date: Sun, 22 Dec 2013 13:05:45 +1100 Subject: [PATCH 1/2] Fix javadoc - spelling and details --- .../bungee/api/chat/ComponentBuilder.java | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/api/src/main/java/net/md_5/bungee/api/chat/ComponentBuilder.java b/api/src/main/java/net/md_5/bungee/api/chat/ComponentBuilder.java index 038ae5c7..fea3234f 100644 --- a/api/src/main/java/net/md_5/bungee/api/chat/ComponentBuilder.java +++ b/api/src/main/java/net/md_5/bungee/api/chat/ComponentBuilder.java @@ -29,7 +29,7 @@ public class ComponentBuilder private List parts = new ArrayList<>(); /** - * Creates a componentBuilder with the given text as the + * Creates a ComponentBuilder with the given text as the * first part. * * @param text the first text element @@ -80,7 +80,7 @@ public class ComponentBuilder } /** - * Sets whether the current part is italic + * Sets whether the current part is italic. * * @param italic whether this part is italic * @return this ComponentBuilder for chaining @@ -92,7 +92,7 @@ public class ComponentBuilder } /** - * Sets whether the current part is underlined + * Sets whether the current part is underlined. * * @param underlined whether this part is underlined * @return this ComponentBuilder for chaining @@ -104,7 +104,7 @@ public class ComponentBuilder } /** - * Sets whether the current part is strikethrough + * Sets whether the current part is strikethrough. * * @param strikethrough whether this part is strikethrough * @return this ComponentBuilder for chaining @@ -116,7 +116,7 @@ public class ComponentBuilder } /** - * Sets whether the current pat is obfuscated + * Sets whether the current part is obfuscated. * * @param obfuscated whether this part is obfuscated * @return this ComponentBuilder for chaining @@ -129,8 +129,8 @@ public class ComponentBuilder /** * Sets the click event for the current part. - * @param clickEvent - * @return + * @param clickEvent the click event + * @return this ComponentBuilder for chaining */ public ComponentBuilder event(ClickEvent clickEvent) { @@ -138,6 +138,11 @@ public class ComponentBuilder return this; } + /** + * Sets the hover event for the current part. + * @param hoverEvent the hover event + * @return this ComponentBuilder for chaining + */ public ComponentBuilder event(HoverEvent hoverEvent) { current.setHoverEvent( hoverEvent ); From 0ff1f4724a4eb7f47f5c3827aee67cf1b259318f Mon Sep 17 00:00:00 2001 From: YoshiGenius Date: Mon, 23 Dec 2013 08:45:48 +1100 Subject: [PATCH 2/2] Add new lines --- .../main/java/net/md_5/bungee/api/chat/ComponentBuilder.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/src/main/java/net/md_5/bungee/api/chat/ComponentBuilder.java b/api/src/main/java/net/md_5/bungee/api/chat/ComponentBuilder.java index fea3234f..57362883 100644 --- a/api/src/main/java/net/md_5/bungee/api/chat/ComponentBuilder.java +++ b/api/src/main/java/net/md_5/bungee/api/chat/ComponentBuilder.java @@ -129,6 +129,7 @@ public class ComponentBuilder /** * Sets the click event for the current part. + * * @param clickEvent the click event * @return this ComponentBuilder for chaining */ @@ -140,6 +141,7 @@ public class ComponentBuilder /** * Sets the hover event for the current part. + * * @param hoverEvent the hover event * @return this ComponentBuilder for chaining */ @@ -151,7 +153,8 @@ public class ComponentBuilder /** * Returns the components needed to display the message - * created by this builder + * created by this builder. + * * @return the created components */ public BaseComponent[] create()