0

Add more color comments

This commit is contained in:
Ronald Jack Jenkins Jr
2017-08-08 20:57:01 -04:00
parent 3ed1c8c5f8
commit 16defaf9d1
2 changed files with 12 additions and 0 deletions

View File

@@ -26,6 +26,11 @@ import org.slf4j.Marker;
* SLF4J markers that map to a subset of {@link ChatColor}s. These markers never * SLF4J markers that map to a subset of {@link ChatColor}s. These markers never
* contain any references (other markers). * contain any references (other markers).
* *
* <p>
* This class does not depend on JAnsi, so it is safe to use even in
* environments where JAnsi is not available (e.g. PaperSpigot).
* </p>
*
* @author Ronald Jack Jenkins Jr. * @author Ronald Jack Jenkins Jr.
*/ */
public enum ColorMarker implements Marker { public enum ColorMarker implements Marker {

View File

@@ -22,6 +22,13 @@ package info.ronjenkins.slf4bukkit;
* current value and then continue adding content to this object. This class is * current value and then continue adding content to this object. This class is
* thread-safe. * thread-safe.
* *
* <p>
* Plugins can use this class even if they will be executed in environments
* where JAnsi is not available (e.g. PaperSpigot) because all colors are
* stripped when the message is logged. This class does not depend on JAnsi,
* so it is safe to use in such environments.
* </p>
*
* @author Ronald Jack Jenkins Jr. * @author Ronald Jack Jenkins Jr.
*/ */
public final class ColorString { public final class ColorString {