Interface CharacterAndFormat
- All Superinterfaces:
- net.kyori.examination.Examinable
@NonExtendable
public interface CharacterAndFormat
extends net.kyori.examination.Examinable
- Since:
- 4.14.0
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final CharacterAndFormatCharacter and format pair representingNamedTextColor.AQUA.static final CharacterAndFormatCharacter and format pair representingNamedTextColor.BLACK.static final CharacterAndFormatCharacter and format pair representingNamedTextColor.BLUE.static final CharacterAndFormatCharacter and format pair representingTextDecoration.BOLD.static final CharacterAndFormatCharacter and format pair representingNamedTextColor.DARK_AQUA.static final CharacterAndFormatCharacter and format pair representingNamedTextColor.DARK_BLUE.static final CharacterAndFormatCharacter and format pair representingNamedTextColor.DARK_GRAY.static final CharacterAndFormatCharacter and format pair representingNamedTextColor.DARK_GREEN.static final CharacterAndFormatCharacter and format pair representingNamedTextColor.DARK_PURPLE.static final CharacterAndFormatCharacter and format pair representingNamedTextColor.DARK_RED.static final CharacterAndFormatCharacter and format pair representingNamedTextColor.GOLD.static final CharacterAndFormatCharacter and format pair representingNamedTextColor.GRAY.static final CharacterAndFormatCharacter and format pair representingNamedTextColor.GREEN.static final CharacterAndFormatCharacter and format pair representingTextDecoration.ITALIC.static final CharacterAndFormatCharacter and format pair representingNamedTextColor.LIGHT_PURPLE.static final CharacterAndFormatCharacter and format pair representingTextDecoration.OBFUSCATED.static final CharacterAndFormatCharacter and format pair representingNamedTextColor.RED.static final CharacterAndFormatCharacter and format pair representingReset.INSTANCE.static final CharacterAndFormatCharacter and format pair representingTextDecoration.STRIKETHROUGH.static final CharacterAndFormatCharacter and format pair representingTextDecoration.UNDERLINED.static final CharacterAndFormatCharacter and format pair representingNamedTextColor.WHITE.static final CharacterAndFormatCharacter and format pair representingNamedTextColor.YELLOW.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanIf thecharacter()is case-insensitive.charGets the character.static @NotNull CharacterAndFormatcharacterAndFormat(char character, @NotNull TextFormat format) Creates a new combination of a case-sensitivecharacterand aTextFormat.static @NotNull CharacterAndFormatcharacterAndFormat(char character, @NotNull TextFormat format, boolean caseInsensitive) Creates a new combination of acharacterand aTextFormat.static @Unmodifiable @NotNull List<CharacterAndFormat>defaults()Gets an unmodifiable list of character and format instances containing all default vanilla formats.default @NotNull Stream<? extends net.kyori.examination.ExaminableProperty>@NotNull TextFormatformat()Gets the format.Methods inherited from interface net.kyori.examination.ExaminableexaminableName, examine
- 
Field Details- 
BLACKCharacter and format pair representingNamedTextColor.BLACK.- Since:
- 4.14.0
 
- 
DARK_BLUECharacter and format pair representingNamedTextColor.DARK_BLUE.- Since:
- 4.14.0
 
- 
DARK_GREENCharacter and format pair representingNamedTextColor.DARK_GREEN.- Since:
- 4.14.0
 
- 
DARK_AQUACharacter and format pair representingNamedTextColor.DARK_AQUA.- Since:
- 4.14.0
 
- 
DARK_REDCharacter and format pair representingNamedTextColor.DARK_RED.- Since:
- 4.14.0
 
- 
DARK_PURPLECharacter and format pair representingNamedTextColor.DARK_PURPLE.- Since:
- 4.14.0
 
- 
GOLDCharacter and format pair representingNamedTextColor.GOLD.- Since:
- 4.14.0
 
- 
GRAYCharacter and format pair representingNamedTextColor.GRAY.- Since:
- 4.14.0
 
- 
DARK_GRAYCharacter and format pair representingNamedTextColor.DARK_GRAY.- Since:
- 4.14.0
 
- 
BLUECharacter and format pair representingNamedTextColor.BLUE.- Since:
- 4.14.0
 
- 
GREENCharacter and format pair representingNamedTextColor.GREEN.- Since:
- 4.14.0
 
- 
AQUACharacter and format pair representingNamedTextColor.AQUA.- Since:
- 4.14.0
 
- 
REDCharacter and format pair representingNamedTextColor.RED.- Since:
- 4.14.0
 
- 
LIGHT_PURPLECharacter and format pair representingNamedTextColor.LIGHT_PURPLE.- Since:
- 4.14.0
 
- 
YELLOWCharacter and format pair representingNamedTextColor.YELLOW.- Since:
- 4.14.0
 
- 
WHITECharacter and format pair representingNamedTextColor.WHITE.- Since:
- 4.14.0
 
- 
OBFUSCATEDCharacter and format pair representingTextDecoration.OBFUSCATED.- Since:
- 4.14.0
 
- 
BOLDCharacter and format pair representingTextDecoration.BOLD.- Since:
- 4.14.0
 
- 
STRIKETHROUGHCharacter and format pair representingTextDecoration.STRIKETHROUGH.- Since:
- 4.14.0
 
- 
UNDERLINEDCharacter and format pair representingTextDecoration.UNDERLINED.- Since:
- 4.14.0
 
- 
ITALICCharacter and format pair representingTextDecoration.ITALIC.- Since:
- 4.14.0
 
- 
RESETCharacter and format pair representingReset.INSTANCE.- Since:
- 4.14.0
 
 
- 
- 
Method Details- 
characterAndFormat@NotNull static @NotNull CharacterAndFormat characterAndFormat(char character, @NotNull @NotNull TextFormat format) Creates a new combination of a case-sensitivecharacterand aTextFormat.- Parameters:
- character- the character
- format- the format
- Returns:
- a new character and format instance.
- Since:
- 4.14.0
 
- 
characterAndFormat@NotNull static @NotNull CharacterAndFormat characterAndFormat(char character, @NotNull @NotNull TextFormat format, boolean caseInsensitive) Creates a new combination of acharacterand aTextFormat.- Parameters:
- character- the character
- format- the format
- caseInsensitive- if the character is case-insensitive
- Returns:
- a new character and format instance.
- Since:
- 4.17.0
 
- 
defaultsGets an unmodifiable list of character and format instances containing all default vanilla formats.- Returns:
- an unmodifiable list of character and format instances containing all default vanilla formats
- Since:
- 4.14.0
 
- 
characterchar character()Gets the character.- Returns:
- the character
- Since:
- 4.14.0
 
- 
formatGets the format.- Returns:
- the format
- Since:
- 4.14.0
 
- 
caseInsensitiveboolean caseInsensitive()If thecharacter()is case-insensitive.- Returns:
- if the character is case-insensitive
- Since:
- 4.17.0
 
- 
examinableProperties@NotNull default @NotNull Stream<? extends net.kyori.examination.ExaminableProperty> examinableProperties()- Specified by:
- examinablePropertiesin interface- net.kyori.examination.Examinable
 
 
-