Enum Class BuiltInClipboardFormat

java.lang.Object
java.lang.Enum<BuiltInClipboardFormat>
com.sk89q.worldedit.extent.clipboard.io.BuiltInClipboardFormat
All Implemented Interfaces:
ClipboardFormat, Serializable, Comparable<BuiltInClipboardFormat>, Constable

public enum BuiltInClipboardFormat extends Enum<BuiltInClipboardFormat> implements ClipboardFormat
A collection of supported clipboard formats.
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

      public static BuiltInClipboardFormat[] 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 BuiltInClipboardFormat 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
    • getName

      public String getName()
      Description copied from interface: ClipboardFormat
      Returns the name of this format.
      Specified by:
      getName in interface ClipboardFormat
      Returns:
      The name of the format
    • getAliases

      public Set<String> getAliases()
      Description copied from interface: ClipboardFormat
      Get a set of aliases.
      Specified by:
      getAliases in interface ClipboardFormat
      Returns:
      a set of aliases
    • getFileExtensions

      public Set<String> getFileExtensions()
      Description copied from interface: ClipboardFormat
      Get the file extensions this format is commonly known to use. This should include ClipboardFormat.getPrimaryFileExtension().
      Specified by:
      getFileExtensions in interface ClipboardFormat
      Returns:
      The file extensions this format might be known by