Enum Class PatternType

java.lang.Object
java.lang.Enum<PatternType>
org.bukkit.block.banner.PatternType
All Implemented Interfaces:
Serializable, Comparable<PatternType>, Constable, Keyed

public enum PatternType extends Enum<PatternType> implements Keyed
  • Enum Constant Details

  • Method Details

    • values

      public static PatternType[] 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 PatternType 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
    • getKey

      @NotNull public NamespacedKey getKey()
      Description copied from interface: Keyed
      Return the namespaced identifier for this object.
      Specified by:
      getKey in interface Keyed
      Returns:
      this object's key
    • getIdentifier

      @NotNull @Deprecated(forRemoval=true) public String getIdentifier()
      Deprecated, for removal: This API element is subject to removal in a future version.
      magic value
      Returns the identifier used to represent this pattern type
      Returns:
      the pattern's identifier
      See Also:
    • getByIdentifier

      @Contract("null -> null") @Nullable @Deprecated(forRemoval=true) public static PatternType getByIdentifier(@Nullable String identifier)
      Deprecated, for removal: This API element is subject to removal in a future version.
      magic value, use Registry.get(NamespacedKey) instead
      Returns the pattern type which matches the passed identifier or null if no matches are found
      Parameters:
      identifier - the identifier
      Returns:
      the matched pattern type or null
      See Also: