Interface PatternType
- All Superinterfaces:
Comparable<PatternType>, Keyed, Keyed, OldEnum<PatternType>
A type of pattern that can be applied to a banner.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternTypestatic final PatternType -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable PatternTypegetByIdentifier(@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, for removal: This API element is subject to removal in a future version.default Keykey()Deprecated, for removal: This API element is subject to removal in a future version.static PatternTypeDeprecated, for removal: This API element is subject to removal in a future version.only for backwards compatibility, useRegistry.get(NamespacedKey)instead.static PatternType[]values()Deprecated, for removal: This API element is subject to removal in a future version.useRegistry.stream().
-
Field Details
-
BASE
-
BORDER
-
BRICKS
-
CIRCLE
-
CREEPER
-
CROSS
-
CURLY_BORDER
-
DIAGONAL_LEFT
-
DIAGONAL_RIGHT
-
DIAGONAL_UP_LEFT
-
DIAGONAL_UP_RIGHT
-
FLOW
-
FLOWER
-
GLOBE
-
GRADIENT
-
GRADIENT_UP
-
GUSTER
-
HALF_HORIZONTAL
-
HALF_HORIZONTAL_BOTTOM
-
HALF_VERTICAL
-
HALF_VERTICAL_RIGHT
-
MOJANG
-
PIGLIN
-
RHOMBUS
-
SKULL
-
SMALL_STRIPES
-
SQUARE_BOTTOM_LEFT
-
SQUARE_BOTTOM_RIGHT
-
SQUARE_TOP_LEFT
-
SQUARE_TOP_RIGHT
-
STRAIGHT_CROSS
-
STRIPE_BOTTOM
-
STRIPE_CENTER
-
STRIPE_DOWNLEFT
-
STRIPE_DOWNRIGHT
-
STRIPE_LEFT
-
STRIPE_MIDDLE
-
STRIPE_RIGHT
-
STRIPE_TOP
-
TRIANGLE_BOTTOM
-
TRIANGLE_TOP
-
TRIANGLES_BOTTOM
-
TRIANGLES_TOP
-
-
Method Details
-
key
Deprecated, for removal: This API element is subject to removal in a future version.useRegistry.getKey(Keyed),RegistryAccess.getRegistry(RegistryKey), andRegistryKey.BANNER_PATTERN. PatternTypes can exist without a key.Gets the key of this pattern type. -
getKey
Deprecated, for removal: This API element is subject to removal in a future version.useRegistry.getKey(Keyed),RegistryAccess.getRegistry(RegistryKey), andRegistryKey.BANNER_PATTERN. PatternTypes can exist without a key.Gets the key of this pattern type. -
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") @Deprecated(since="1.20.4", forRemoval=true) static @Nullable PatternType getByIdentifier(@Nullable String identifier) Deprecated, for removal: This API element is subject to removal in a future version.magic value, useRegistry.get(NamespacedKey)instead withRegistryAccess.getRegistry(RegistryKey)andRegistryKey.BANNER_PATTERNReturns 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
-
valueOf
@Deprecated(since="1.21", forRemoval=true) @ScheduledForRemoval(inVersion="1.22") static PatternType valueOf(String name) Deprecated, for removal: This API element is subject to removal in a future version.only for backwards compatibility, useRegistry.get(NamespacedKey)instead.Gets the pattern type with the given name.- Parameters:
name- of the pattern type.- Returns:
- the pattern type with the given name.
-
values
@Deprecated(since="1.21", forRemoval=true) @ScheduledForRemoval(inVersion="1.22") static PatternType[] values()Deprecated, for removal: This API element is subject to removal in a future version.useRegistry.stream().Gets all known pattern types.- Returns:
- an array of all known pattern types.
-
Registry.get(NamespacedKey)instead withRegistryAccess.getRegistry(RegistryKey)andRegistryKey.BANNER_PATTERN