Example #1
0
 /**
  * Returns the color of this component. This uses the parent's color if this component doesn't
  * have one. {@link net.md_5.bungee.api.ChatColor#WHITE} is returned if no color is found.
  *
  * @return the color of this component
  */
 public ChatColor getColor() {
   if (color == null) {
     if (parent == null) {
       return ChatColor.WHITE;
     }
     return parent.getColor();
   }
   return color;
 }