接口 PatternType
- 所有超级接口:
Comparable<PatternType>,Keyed,OldEnum<PatternType>,RegistryAware
-
字段概要
字段修饰符和类型字段说明static 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 -
方法概要
修饰符和类型方法说明static @Nullable PatternTypegetByIdentifier(@Nullable String identifier) 已过时, 待删除: 此 API 元素将从以后的版本中删除。已过时, 待删除: 此 API 元素将从以后的版本中删除。魔法值getKey()已过时。键可能并不总是存在,请使用RegistryAware.getKeyOrThrow()代替.static @NotNull PatternType已过时。仅用于向后兼容,请使用Registry.get(NamespacedKey)代替.static @NotNull PatternType[]values()已过时。请使用Iterable.iterator().从接口继承的方法 org.bukkit.registry.RegistryAware
getKeyOrNull, getKeyOrThrow, isRegistered
-
字段详细资料
-
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
-
-
方法详细资料
-
getKey
已过时。键可能并不总是存在,请使用RegistryAware.getKeyOrThrow()代替.返回用于此对象的命名空间标识符.原文:Return the namespaced identifier for this object.
-
getIdentifier
已过时, 待删除: 此 API 元素将从以后的版本中删除。魔法值返回用于表示这种图案类型的标识符.原文: Returns the identifier used to represent this pattern type
- 返回:
- 图案的标识符
- 另请参阅:
-
getByIdentifier
@Contract("null -> null") @Nullable @Deprecated(since="1.20.4", forRemoval=true) static @Nullable PatternType getByIdentifier(@Nullable @Nullable String identifier) 已过时, 待删除: 此 API 元素将从以后的版本中删除。返回与标识符匹配的图案, 如果找不到匹配的图案类型, 将返回 null.原文: Returns the pattern type which matches the passed identifier or null if no matches are found
- 参数:
identifier- 标识符- 返回:
- 匹配的图案类型或 null
- 另请参阅:
-
valueOf
@NotNull @Deprecated(since="1.21") static @NotNull PatternType valueOf(@NotNull @NotNull String name) 已过时。仅用于向后兼容,请使用Registry.get(NamespacedKey)代替.- 参数:
name- 图案类型的名称.- 返回:
- 具有给定名称的图案类型.
-
values
已过时。请使用Iterable.iterator().- 返回:
- 所有已知图案类型的数组.
-