congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
TranslatableComponent.getColor
Code IndexAdd Tabnine to your IDE (free)

How to use
getColor
method
in
net.md_5.bungee.api.chat.TranslatableComponent

Best Java code snippets using net.md_5.bungee.api.chat.TranslatableComponent.getColor (Showing top 2 results out of 315)

origin: SpigotMC/BungeeCord

  private void addFormat(StringBuilder builder)
  {
    builder.append( getColor() );
    if ( isBold() )
    {
      builder.append( ChatColor.BOLD );
    }
    if ( isItalic() )
    {
      builder.append( ChatColor.ITALIC );
    }
    if ( isUnderlined() )
    {
      builder.append( ChatColor.UNDERLINE );
    }
    if ( isStrikethrough() )
    {
      builder.append( ChatColor.STRIKETHROUGH );
    }
    if ( isObfuscated() )
    {
      builder.append( ChatColor.MAGIC );
    }
  }
}
origin: WaterfallMC/Waterfall-Old

  private void addFormat(StringBuilder builder)
  {
    builder.append( getColor() );
    if ( isBold() )
    {
      builder.append( ChatColor.BOLD );
    }
    if ( isItalic() )
    {
      builder.append( ChatColor.ITALIC );
    }
    if ( isUnderlined() )
    {
      builder.append( ChatColor.UNDERLINE );
    }
    if ( isStrikethrough() )
    {
      builder.append( ChatColor.STRIKETHROUGH );
    }
    if ( isObfuscated() )
    {
      builder.append( ChatColor.MAGIC );
    }
  }
}
net.md_5.bungee.api.chatTranslatableComponentgetColor

Popular methods of TranslatableComponent

  • <init>
    Creates a translatable component from the original to clone it.
  • getTranslate
  • getWith
  • setTranslate
  • addFormat
  • addWith
    Adds a component substitution to the component. The text will inherit this component's formatting
  • isBold
  • isItalic
  • isObfuscated
  • isStrikethrough
  • isUnderlined
  • setWith
    Sets the translation substitutions to be used in this component. Removes any previously set substitu
  • isUnderlined,
  • setWith

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (ScheduledExecutorService)
  • compareTo (BigDecimal)
  • setRequestProperty (URLConnection)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • JTable (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now