Interface PatternType

All Superinterfaces:
Comparable<PatternType>, Keyed, OldEnum<PatternType>

public interface PatternType extends OldEnum<PatternType>, Keyed
  • Field Details

  • Method Details

    • getKey

      @NotNull 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) 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) 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:
    • valueOf

      @NotNull @Deprecated(since="1.21") static PatternType valueOf(@NotNull String name)
      Deprecated.
      only for backwards compatibility, use Registry.get(NamespacedKey) instead.
      Parameters:
      name - of the pattern type.
      Returns:
      the pattern type with the given name.
    • values

      @NotNull @Deprecated(since="1.21") static PatternType[] values()
      Deprecated.
      Returns:
      an array of all known pattern types.