接口 Frog.Variant
- 所有超级接口:
Comparable<Frog.Variant>
,Keyed
,OldEnum<Frog.Variant>
- 封闭接口:
- Frog
Represents the variant of a frog - ie its color.
-
字段概要
修饰符和类型字段说明static final Frog.Variant
Cold (green) frog.static final Frog.Variant
Temperate (brown-orange) frog.static final Frog.Variant
Warm (gray) frog. -
方法概要
修饰符和类型方法说明static @NotNull Frog.Variant
已过时。static @NotNull Frog.Variant[]
values()
已过时。useIterable.iterator()
.
-
字段详细资料
-
TEMPERATE
Temperate (brown-orange) frog. -
WARM
Warm (gray) frog. -
COLD
Cold (green) frog.
-
-
方法详细资料
-
valueOf
@NotNull @Deprecated(since="1.21") static @NotNull Frog.Variant valueOf(@NotNull @NotNull String name) 已过时。only for backwards compatibility, useRegistry.get(NamespacedKey)
instead.- 参数:
name
- of the frog variant.- 返回:
- the frog variant with the given name.
-
values
已过时。useIterable.iterator()
.- 返回:
- an array of all known frog variants.
-
Registry.get(NamespacedKey)
instead.