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
A collection of supported clipboard formats.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionGet a set of aliases.Get the file extensions this format is commonly known to use.getName()
Returns the name of this format.static BuiltInClipboardFormat
Returns the enum constant of this class with the specified name.static BuiltInClipboardFormat[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface com.sk89q.worldedit.extent.clipboard.io.ClipboardFormat
getPrimaryFileExtension, getReader, getWriter, isFormat
-
Enum Constant Details
-
MCEDIT_SCHEMATIC
The Schematic format used by MCEdit. -
SPONGE_SCHEMATIC
-
-
Method Details
-
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
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
-
getName
Description copied from interface:ClipboardFormat
Returns the name of this format.- Specified by:
getName
in interfaceClipboardFormat
- Returns:
- The name of the format
-
getAliases
Description copied from interface:ClipboardFormat
Get a set of aliases.- Specified by:
getAliases
in interfaceClipboardFormat
- Returns:
- a set of aliases
-
getFileExtensions
Description copied from interface:ClipboardFormat
Get the file extensions this format is commonly known to use. This should includeClipboardFormat.getPrimaryFileExtension()
.- Specified by:
getFileExtensions
in interfaceClipboardFormat
- Returns:
- The file extensions this format might be known by
-