Enum Style.Merge

java.lang.Object
java.lang.Enum<Style.Merge>
net.kyori.adventure.text.format.Style.Merge
All Implemented Interfaces:
Serializable, Comparable<Style.Merge>
Enclosing interface:
Style

public static enum Style.Merge extends Enum<Style.Merge>
A merge choice.
Since:
4.0.0
  • Enum Constant Details

  • Method Details

    • values

      public static Style.Merge[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Style.Merge valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • all

      @NotNull public static @Unmodifiable @NotNull Set<Style.Merge> all()
      Gets a merge set of all merge types.
      Returns:
      a merge set
      Since:
      4.0.0
    • colorAndDecorations

      @NotNull public static @Unmodifiable @NotNull Set<Style.Merge> colorAndDecorations()
      Gets a merge set containing COLOR and DECORATIONS.
      Returns:
      a merge set
      Since:
      4.0.0
    • merges

      @NotNull public static @Unmodifiable @NotNull Set<Style.Merge> merges(Style.Merge @NotNull ... merges)
      Creates a merge set.
      Parameters:
      merges - the merge parts
      Returns:
      a merge set
      Since:
      4.10.0
    • of

      @Deprecated @ScheduledForRemoval(inVersion="5.0.0") @NotNull public static @Unmodifiable @NotNull Set<Style.Merge> of(Style.Merge @NotNull ... merges)
      Deprecated.
      for removal since 4.10.0, use merges(Style.Merge...) instead.
      Creates a merge set.
      Parameters:
      merges - the merge parts
      Returns:
      a merge set
      Since:
      4.0.0