Package ch.njol.skript.util.chat
Enum Class SkriptChatCode
- All Implemented Interfaces:
ChatCode,Serializable,Comparable<SkriptChatCode>,Constable
@Deprecated(since="2.15",
forRemoval=true)
public enum SkriptChatCode
extends Enum<SkriptChatCode>
implements ChatCode
Deprecated, for removal: This API element is subject to removal in a future version.
Chat codes that come with Skript by default.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptioncharDeprecated, for removal: This API element is subject to removal in a future version.Gets the color char that is an alternative way to use this chat code.@Nullable StringDeprecated, for removal: This API element is subject to removal in a future version.Gets color code of this chat code.@Nullable StringDeprecated, for removal: This API element is subject to removal in a future version.Name to be used in scripts.booleanhasParam()Deprecated, for removal: This API element is subject to removal in a future version.Checks if this chat code takes a string parameter.booleanDeprecated, for removal: This API element is subject to removal in a future version.For internal usage.voidupdateComponent(MessageComponent component, String param) Deprecated, for removal: This API element is subject to removal in a future version.Applies style of this chat code to given component.static SkriptChatCodeDeprecated, for removal: This API element is subject to removal in a future version.Returns the enum constant of this class with the specified name.static SkriptChatCode[]values()Deprecated, for removal: This API element is subject to removal in a future version.Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
reset
Deprecated, for removal: This API element is subject to removal in a future version. -
black
Deprecated, for removal: This API element is subject to removal in a future version. -
dark_blue
Deprecated, for removal: This API element is subject to removal in a future version. -
dark_green
Deprecated, for removal: This API element is subject to removal in a future version. -
dark_aqua
Deprecated, for removal: This API element is subject to removal in a future version. -
dark_red
Deprecated, for removal: This API element is subject to removal in a future version. -
dark_purple
Deprecated, for removal: This API element is subject to removal in a future version. -
gold
Deprecated, for removal: This API element is subject to removal in a future version. -
gray
Deprecated, for removal: This API element is subject to removal in a future version. -
dark_gray
Deprecated, for removal: This API element is subject to removal in a future version. -
blue
Deprecated, for removal: This API element is subject to removal in a future version. -
green
Deprecated, for removal: This API element is subject to removal in a future version. -
aqua
Deprecated, for removal: This API element is subject to removal in a future version. -
red
Deprecated, for removal: This API element is subject to removal in a future version. -
light_purple
Deprecated, for removal: This API element is subject to removal in a future version. -
yellow
Deprecated, for removal: This API element is subject to removal in a future version. -
white
Deprecated, for removal: This API element is subject to removal in a future version. -
bold
Deprecated, for removal: This API element is subject to removal in a future version. -
italic
Deprecated, for removal: This API element is subject to removal in a future version. -
underlined
Deprecated, for removal: This API element is subject to removal in a future version. -
strikethrough
Deprecated, for removal: This API element is subject to removal in a future version. -
obfuscated
Deprecated, for removal: This API element is subject to removal in a future version. -
open_url
Deprecated, for removal: This API element is subject to removal in a future version. -
run_command
Deprecated, for removal: This API element is subject to removal in a future version. -
suggest_command
Deprecated, for removal: This API element is subject to removal in a future version. -
change_page
Deprecated, for removal: This API element is subject to removal in a future version. -
copy_to_clipboard
Deprecated, for removal: This API element is subject to removal in a future version. -
show_text
Deprecated, for removal: This API element is subject to removal in a future version. -
font
Deprecated, for removal: This API element is subject to removal in a future version. -
insertion
Deprecated, for removal: This API element is subject to removal in a future version. -
translate
Deprecated, for removal: This API element is subject to removal in a future version. -
keybind
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
values
Deprecated, for removal: This API element is subject to removal in a future version.Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Deprecated, for removal: This API element is subject to removal in a future version.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
hasParam
public boolean hasParam()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ChatCodeChecks if this chat code takes a string parameter. If yes, scripters will use it like:<name:param> -
getColorCode
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ChatCodeGets color code of this chat code. Skript will apply it automatically. Note that setting color code is usually not useful for addon developers, because Skript supports all colors that Minecraft client does.If null is returned,
ChatCode.updateComponent(MessageComponent, String)is called instead. You probably want that, as it is more versatile.- Specified by:
getColorCodein interfaceChatCode- Returns:
- Color code.
-
getLangName
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ChatCodeName to be used in scripts. ifChatCode.isLocalized()is true, this is used as a language file key instead.- Specified by:
getLangNamein interfaceChatCode- Returns:
- Name in language file.
-
isLocalized
public boolean isLocalized()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ChatCodeFor internal usage.- Specified by:
isLocalizedin interfaceChatCode- Returns:
- True for Skript's color codes.
-
getColorChar
public char getColorChar()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ChatCodeGets the color char that is an alternative way to use this chat code. Return 0 unless you wish to use a color char.If not 0, it can be used in scripts in following way:
&xor§x, if the code isx. It is not case sensitive if you return a character from which there is upper case character available. If you return the upper case character, lower case variant cannot be used in scripts (so don't do that).- Specified by:
getColorCharin interfaceChatCode- Returns:
- Color char.
-
updateComponent
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ChatCodeApplies style of this chat code to given component.- Specified by:
updateComponentin interfaceChatCode- Parameters:
component- Component to update.param- String parameter. May be empty string.
-
TextComponentParser.