Serializable
, Comparable<PatternType>
public enum PatternType extends Enum<PatternType>
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 found
|
String |
getIdentifier() |
Returns the identifier used to represent
this pattern type
|
static 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.
|
public static final PatternType BASE
public static final PatternType SQUARE_BOTTOM_LEFT
public static final PatternType SQUARE_BOTTOM_RIGHT
public static final PatternType SQUARE_TOP_LEFT
public static final PatternType SQUARE_TOP_RIGHT
public static final PatternType STRIPE_BOTTOM
public static final PatternType STRIPE_TOP
public static final PatternType STRIPE_LEFT
public static final PatternType STRIPE_RIGHT
public static final PatternType STRIPE_CENTER
public static final PatternType STRIPE_MIDDLE
public static final PatternType STRIPE_DOWNRIGHT
public static final PatternType STRIPE_DOWNLEFT
public static final PatternType STRIPE_SMALL
public static final PatternType CROSS
public static final PatternType STRAIGHT_CROSS
public static final PatternType TRIANGLE_BOTTOM
public static final PatternType TRIANGLE_TOP
public static final PatternType TRIANGLES_BOTTOM
public static final PatternType TRIANGLES_TOP
public static final PatternType DIAGONAL_LEFT
public static final PatternType DIAGONAL_RIGHT
public static final PatternType DIAGONAL_LEFT_MIRROR
public static final PatternType DIAGONAL_RIGHT_MIRROR
public static final PatternType CIRCLE_MIDDLE
public static final PatternType RHOMBUS_MIDDLE
public static final PatternType HALF_VERTICAL
public static final PatternType HALF_HORIZONTAL
public static final PatternType HALF_VERTICAL_MIRROR
public static final PatternType HALF_HORIZONTAL_MIRROR
public static final PatternType BORDER
public static final PatternType CURLY_BORDER
public static final PatternType CREEPER
public static final PatternType GRADIENT
public static final PatternType GRADIENT_UP
public static final PatternType BRICKS
public static final PatternType SKULL
public static final PatternType FLOWER
public static final PatternType MOJANG
public static PatternType[] values()
for (PatternType c : PatternType.values()) System.out.println(c);
public static PatternType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null@NotNull public String getIdentifier()
@Contract("null -> null") @Nullable public static PatternType getByIdentifier(@Nullable String identifier)
identifier
- the identifierCopyright © 2020. All rights reserved.