From a0e8b172efff0ee57d0b86a306e7bbde5edaab97 Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Sat, 12 Jul 2014 19:33:04 +1000 Subject: [PATCH] Restrict access to some internal methods. --- .../main/java/net/md_5/bungee/api/chat/BaseComponent.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/api/src/main/java/net/md_5/bungee/api/chat/BaseComponent.java b/api/src/main/java/net/md_5/bungee/api/chat/BaseComponent.java index 793eec2af..99a68571b 100644 --- a/api/src/main/java/net/md_5/bungee/api/chat/BaseComponent.java +++ b/api/src/main/java/net/md_5/bungee/api/chat/BaseComponent.java @@ -68,7 +68,7 @@ public abstract class BaseComponent @Getter private HoverEvent hoverEvent; - protected BaseComponent(BaseComponent old) + BaseComponent(BaseComponent old) { setColor( old.getColorRaw() ); setBold( old.isBoldRaw() ); @@ -317,6 +317,8 @@ public abstract class BaseComponent /** * Returns whether the component has any formatting or events applied to it + * + * @return Whether any formatting or events are applied */ public boolean hasFormatting() { @@ -338,7 +340,7 @@ public abstract class BaseComponent return builder.toString(); } - protected void toPlainText(StringBuilder builder) + void toPlainText(StringBuilder builder) { if ( extra != null ) { @@ -362,7 +364,7 @@ public abstract class BaseComponent return builder.toString(); } - protected void toLegacyText(StringBuilder builder) + void toLegacyText(StringBuilder builder) { if ( extra != null ) {