Class JavaEditionComponentFormat<C>
java.lang.Object
eu.cloudnetservice.ext.component.JavaEditionComponentFormat<C>
- All Implemented Interfaces:
ComponentFormat<C>
- Direct Known Subclasses:
AdventureComponentFormat, BungeeComponentFormat
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final charprotected static final char -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancharIsValidColorIndicationChar(char[] fullData, int pos, char current) char<T> @NonNull ComponentConverter<T> converterTo(@NonNull ComponentFormat<T> targetFormat) booleannextSegmentIsLegacyFormatting(char[] fullData, int pos, char current, char next) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ComponentFormat
encodeStringToComponent, hexIndicationChar, hexSegmentLength, nextSegmentIsHexadecimalFormatting, usesColorCharAsHexDelimiter
-
Field Details
-
COLOR_CHAR
protected static final char COLOR_CHAR- See Also:
-
LEGACY_CHAR
protected static final char LEGACY_CHAR- See Also:
-
-
Constructor Details
-
JavaEditionComponentFormat
JavaEditionComponentFormat()
-
-
Method Details
-
colorIndicationChar
public char colorIndicationChar()- Specified by:
colorIndicationCharin interfaceComponentFormat<C>
-
charIsValidColorIndicationChar
public boolean charIsValidColorIndicationChar(char[] fullData, int pos, char current) - Specified by:
charIsValidColorIndicationCharin interfaceComponentFormat<C>
-
nextSegmentIsLegacyFormatting
public boolean nextSegmentIsLegacyFormatting(char[] fullData, int pos, char current, char next) - Specified by:
nextSegmentIsLegacyFormattingin interfaceComponentFormat<C>
-
converterTo
@NonNull public <T> @NonNull ComponentConverter<T> converterTo(@NonNull @NonNull ComponentFormat<T> targetFormat) - Specified by:
converterToin interfaceComponentFormat<C>
-