From 1baba3cd7dc748665e9ca30d382185b98b4d8efa Mon Sep 17 00:00:00 2001 From: YoshiGenius Date: Sun, 22 Dec 2013 13:05:45 +1100 Subject: [PATCH] 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 );