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 SummaryFieldsModifier and TypeFieldDescriptionstatic final Frog.VariantCold (green) frog.static final Frog.VariantTemperate (brown-orange) frog.static final Frog.VariantWarm (gray) frog.
- 
Method SummaryModifier 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.RegistryAwaregetKeyOrNull, getKeyOrThrow, isRegistered
- 
Field Details- 
TEMPERATETemperate (brown-orange) frog.
- 
WARMWarm (gray) frog.
- 
COLDCold (green) frog.
 
- 
- 
Method Details- 
getKeyDeprecated.A key might not always be present, useRegistryAware.getKeyOrThrow()instead.Return the namespaced identifier for this object.
- 
valueOfDeprecated.only for backwards compatibility, useRegistry.get(NamespacedKey)instead.- Parameters:
- name- of the frog variant.
- Returns:
- the frog variant with the given name.
 
- 
valuesDeprecated.useIterable.iterator().- Returns:
- an array of all known frog variants.
 
 
- 
RegistryAware.getKeyOrThrow()instead.