Package org.bukkit.block.banner
Enum Class PatternType
- All Implemented Interfaces:
Serializable
,Comparable<PatternType>
,Constable
,net.kyori.adventure.key.Keyed
,Keyed
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable PatternType
getByIdentifier
(@Nullable String identifier) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.magic valuegetKey()
Deprecated.static PatternType
Returns the enum constant of this class with the specified name.static PatternType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BASE
-
SQUARE_BOTTOM_LEFT
-
SQUARE_BOTTOM_RIGHT
-
SQUARE_TOP_LEFT
-
SQUARE_TOP_RIGHT
-
STRIPE_BOTTOM
-
STRIPE_TOP
-
STRIPE_LEFT
-
STRIPE_RIGHT
-
STRIPE_CENTER
-
STRIPE_MIDDLE
-
STRIPE_DOWNRIGHT
-
STRIPE_DOWNLEFT
-
SMALL_STRIPES
-
CROSS
-
STRAIGHT_CROSS
-
TRIANGLE_BOTTOM
-
TRIANGLE_TOP
-
TRIANGLES_BOTTOM
-
TRIANGLES_TOP
-
DIAGONAL_LEFT
-
DIAGONAL_UP_RIGHT
-
DIAGONAL_UP_LEFT
-
DIAGONAL_RIGHT
-
CIRCLE
-
RHOMBUS
-
HALF_VERTICAL
-
HALF_HORIZONTAL
-
HALF_VERTICAL_RIGHT
-
HALF_HORIZONTAL_BOTTOM
-
BORDER
-
CURLY_BORDER
-
CREEPER
-
GRADIENT
-
GRADIENT_UP
-
BRICKS
-
SKULL
-
FLOWER
-
MOJANG
-
GLOBE
-
PIGLIN
-
FLOW
-
GUSTER
-
-
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
-
getKey
Deprecated.useRegistry.getKey(Keyed)
andRegistry.BANNER_PATTERN
. PatternTypes can exist without a key.Description copied from interface:Keyed
Return the namespaced identifier for this object. -
getIdentifier
Deprecated, for removal: This API element is subject to removal in a future version.magic valueReturns 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 @Nullable PatternType getByIdentifier(@Nullable @Nullable String identifier) Deprecated, for removal: This API element is subject to removal in a future version.magic value, useRegistry.get(NamespacedKey)
insteadReturns 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:
-
Registry.get(NamespacedKey)
instead