Package org.bukkit.entity
Interface Frog.Variant
- All Superinterfaces:
Comparable<Frog.Variant>,Keyed,OldEnum<Frog.Variant>,RegistryAware
- Enclosing interface:
Frog
Represents the variant of a frog - ie its color.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Frog.VariantCold (green) frog.static final Frog.VariantTemperate (brown-orange) frog.static final Frog.VariantWarm (gray) frog. -
Method Summary
Modifier and TypeMethodDescriptiongetKey()Deprecated.static Frog.VariantDeprecated.only for backwards compatibility, useRegistry.get(NamespacedKey)instead.static Frog.Variant[]values()Deprecated.useIterable.iterator().Methods inherited from interface org.bukkit.registry.RegistryAware
getKeyOrNull, getKeyOrThrow, isRegistered
-
Field Details
-
TEMPERATE
Temperate (brown-orange) frog. -
WARM
Warm (gray) frog. -
COLD
Cold (green) frog.
-
-
Method Details
-
getKey
Deprecated.A key might not always be present, useRegistryAware.getKeyOrThrow()instead.Return the namespaced identifier for this object. -
valueOf
Deprecated.only for backwards compatibility, useRegistry.get(NamespacedKey)instead.- Parameters:
name- of the frog variant.- Returns:
- the frog variant with the given name.
-
values
Deprecated.useIterable.iterator().- Returns:
- an array of all known frog variants.
-
RegistryAware.getKeyOrThrow()instead.