Package org.bukkit.block.banner
Interface PatternType
- All Superinterfaces:
Comparable<PatternType>
,Keyed
,Keyed
,OldEnum<PatternType>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
static final PatternType
-
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, for removal: This API element is subject to removal in a future version.key()
Deprecated, for removal: This API element is subject to removal in a future version.static @NotNull PatternType
Deprecated, for removal: This API element is subject to removal in a future version.only for backwards compatibility, useRegistry.get(NamespacedKey)
instead.static @NotNull PatternType[]
values()
Deprecated, for removal: This API element is subject to removal in a future version.useIterable.iterator()
.
-
Field 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
-
key
Deprecated, for removal: This API element is subject to removal in a future version.useRegistry.getKey(Keyed)
,RegistryAccess.getRegistry(io.papermc.paper.registry.RegistryKey)
, andRegistryKey.BANNER_PATTERN
. PatternTypes can exist without a key.Description copied from interface:Keyed
Returns the unique identifier for this object. -
getKey
Deprecated, for removal: This API element is subject to removal in a future version.useRegistry.getKey(Keyed)
,RegistryAccess.getRegistry(io.papermc.paper.registry.RegistryKey)
, andRegistryKey.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) 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:
-
valueOf
@NotNull @Deprecated(since="1.21", forRemoval=true) @ScheduledForRemoval(inVersion="1.22") static @NotNull PatternType valueOf(@NotNull @NotNull String name) Deprecated, for removal: This API element is subject to removal in a future version.only for backwards compatibility, useRegistry.get(NamespacedKey)
instead.- Parameters:
name
- of the pattern type.- Returns:
- the pattern type with the given name.
-
values
@NotNull @Deprecated(since="1.21", forRemoval=true) @ScheduledForRemoval(inVersion="1.22") static @NotNull PatternType[] values()Deprecated, for removal: This API element is subject to removal in a future version.useIterable.iterator()
.- Returns:
- an array of all known pattern types.
-
Registry.get(NamespacedKey)
instead