Enum Class TextComponentParser.LinkParseMode

java.lang.Object
java.lang.Enum<TextComponentParser.LinkParseMode>
org.skriptlang.skript.bukkit.text.TextComponentParser.LinkParseMode
All Implemented Interfaces:
Serializable, Comparable<TextComponentParser.LinkParseMode>, Constable
Enclosing class:
TextComponentParser

public static enum TextComponentParser.LinkParseMode extends Enum<TextComponentParser.LinkParseMode>
Describes how this parser should handle potential links (outside of formatting tags).
  • Enum Constant Details

  • Method Details

    • values

      public static TextComponentParser.LinkParseMode[] values()
      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

      public static TextComponentParser.LinkParseMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • textReplacementConfig

      public net.kyori.adventure.text.TextReplacementConfig textReplacementConfig()
      Returns:
      A text replacement configuration for formatting URLs within a Component.
      See Also:
      • Component.replaceText(TextReplacementConfig)