Package org.bukkit.entity
Interface Frog.Variant
- All Superinterfaces:
Comparable<Frog.Variant>
,Keyed
,Keyed
,OldEnum<Frog.Variant>
- Enclosing interface:
Frog
Represents the variant of a frog - ie its color.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Frog.Variant
Cold (green) frog.static final Frog.Variant
Temperate (brown-orange) frog.static final Frog.Variant
Warm (gray) frog. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull Frog.Variant
Deprecated, for removal: This API element is subject to removal in a future version.static @NotNull Frog.Variant[]
values()
Deprecated, for removal: This API element is subject to removal in a future version.useIterable.iterator()
.
-
Field Details
-
TEMPERATE
Temperate (brown-orange) frog. -
WARM
Warm (gray) frog. -
COLD
Cold (green) frog.
-
-
Method Details
-
valueOf
@NotNull @Deprecated(since="1.21", forRemoval=true) @ScheduledForRemoval(inVersion="1.22") static @NotNull Frog.Variant 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 frog variant.- Returns:
- the frog variant with the given name.
-
values
@NotNull @Deprecated(since="1.21", forRemoval=true) @ScheduledForRemoval(inVersion="1.22") static @NotNull Frog.Variant[] values()Deprecated, for removal: This API element is subject to removal in a future version.useIterable.iterator()
.- Returns:
- an array of all known frog variants.
-
Registry.get(NamespacedKey)
instead.