Enum Class PatternType

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

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

    • BASE

      public static final PatternType BASE
    • SQUARE_BOTTOM_LEFT

      public static final PatternType SQUARE_BOTTOM_LEFT
    • SQUARE_BOTTOM_RIGHT

      public static final PatternType SQUARE_BOTTOM_RIGHT
    • SQUARE_TOP_LEFT

      public static final PatternType SQUARE_TOP_LEFT
    • SQUARE_TOP_RIGHT

      public static final PatternType SQUARE_TOP_RIGHT
    • STRIPE_BOTTOM

      public static final PatternType STRIPE_BOTTOM
    • STRIPE_TOP

      public static final PatternType STRIPE_TOP
    • STRIPE_LEFT

      public static final PatternType STRIPE_LEFT
    • STRIPE_RIGHT

      public static final PatternType STRIPE_RIGHT
    • STRIPE_CENTER

      public static final PatternType STRIPE_CENTER
    • STRIPE_MIDDLE

      public static final PatternType STRIPE_MIDDLE
    • STRIPE_DOWNRIGHT

      public static final PatternType STRIPE_DOWNRIGHT
    • STRIPE_DOWNLEFT

      public static final PatternType STRIPE_DOWNLEFT
    • STRIPE_SMALL

      public static final PatternType STRIPE_SMALL
    • CROSS

      public static final PatternType CROSS
    • STRAIGHT_CROSS

      public static final PatternType STRAIGHT_CROSS
    • TRIANGLE_BOTTOM

      public static final PatternType TRIANGLE_BOTTOM
    • TRIANGLE_TOP

      public static final PatternType TRIANGLE_TOP
    • TRIANGLES_BOTTOM

      public static final PatternType TRIANGLES_BOTTOM
    • TRIANGLES_TOP

      public static final PatternType TRIANGLES_TOP
    • DIAGONAL_LEFT

      public static final PatternType DIAGONAL_LEFT
    • DIAGONAL_RIGHT

      public static final PatternType DIAGONAL_RIGHT
    • DIAGONAL_LEFT_MIRROR

      public static final PatternType DIAGONAL_LEFT_MIRROR
    • DIAGONAL_RIGHT_MIRROR

      public static final PatternType DIAGONAL_RIGHT_MIRROR
    • CIRCLE_MIDDLE

      public static final PatternType CIRCLE_MIDDLE
    • RHOMBUS_MIDDLE

      public static final PatternType RHOMBUS_MIDDLE
    • HALF_VERTICAL

      public static final PatternType HALF_VERTICAL
    • HALF_HORIZONTAL

      public static final PatternType HALF_HORIZONTAL
    • HALF_VERTICAL_MIRROR

      public static final PatternType HALF_VERTICAL_MIRROR
    • HALF_HORIZONTAL_MIRROR

      public static final PatternType HALF_HORIZONTAL_MIRROR
    • BORDER

      public static final PatternType BORDER
    • CURLY_BORDER

      public static final PatternType CURLY_BORDER
    • CREEPER

      public static final PatternType CREEPER
    • GRADIENT

      public static final PatternType GRADIENT
    • GRADIENT_UP

      public static final PatternType GRADIENT_UP
    • BRICKS

      public static final PatternType BRICKS
    • SKULL

      public static final PatternType SKULL
    • FLOWER

      public static final PatternType FLOWER
    • MOJANG

      public static final PatternType MOJANG
    • GLOBE

      public static final PatternType GLOBE
    • PIGLIN

      public static final PatternType PIGLIN
  • 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 @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 public @NotNull String getIdentifier()
      Deprecated.
      magic value
      Returns the identifier used to represent this pattern type
      Returns:
      the pattern's identifier
      See Also:
    • getByIdentifier

      @Contract("null -> null") @Nullable @Deprecated public static @Nullable PatternType getByIdentifier(@Nullable @Nullable String identifier)
      Deprecated.
      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: