Package org.bukkit.block.banner
Enum PatternType
- All Implemented Interfaces:
Serializable
,Comparable<PatternType>
,Constable
public enum PatternType extends Enum<PatternType>
-
Nested Class Summary
-
Enum Constant Summary
-
Method Summary
Modifier and Type Method Description static PatternType
getByIdentifier(String identifier)
Returns the pattern type which matches the passed identifier or null if no matches are foundString
getIdentifier()
Returns the identifier used to represent this pattern typestatic PatternType
valueOf(String name)
Returns the enum constant of this type with the specified name.static PatternType[]
values()
Returns an array containing the constants of this enum type, 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
-
STRIPE_SMALL
-
CROSS
-
STRAIGHT_CROSS
-
TRIANGLE_BOTTOM
-
TRIANGLE_TOP
-
TRIANGLES_BOTTOM
-
TRIANGLES_TOP
-
DIAGONAL_LEFT
-
DIAGONAL_RIGHT
-
DIAGONAL_LEFT_MIRROR
-
DIAGONAL_RIGHT_MIRROR
-
CIRCLE_MIDDLE
-
RHOMBUS_MIDDLE
-
HALF_VERTICAL
-
HALF_HORIZONTAL
-
HALF_VERTICAL_MIRROR
-
HALF_HORIZONTAL_MIRROR
-
BORDER
-
CURLY_BORDER
-
CREEPER
-
GRADIENT
-
GRADIENT_UP
-
BRICKS
-
SKULL
-
FLOWER
-
MOJANG
-
GLOBE
-
PIGLIN
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getIdentifier
Returns the identifier used to represent this pattern type- Returns:
- the pattern's identifier
-
getByIdentifier
@Contract("null -> null") @Nullable public static PatternType getByIdentifier(@Nullable String identifier)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
-