Package org.bukkit.entity
Interface Cat.Type
- All Superinterfaces:
Comparable<Cat.Type>
,Keyed
,OldEnum<Cat.Type>
,RegistryAware
- Enclosing interface:
Cat
Represents the various different cat types there are.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetKey()
Deprecated.static Cat.Type
Deprecated.only for backwards compatibility, useRegistry.get(NamespacedKey)
instead.static Cat.Type[]
values()
Deprecated.useIterable.iterator()
.Methods inherited from interface org.bukkit.registry.RegistryAware
getKeyOrNull, getKeyOrThrow, isRegistered
-
Field Details
-
TABBY
-
BLACK
-
RED
-
SIAMESE
-
BRITISH_SHORTHAIR
-
CALICO
-
PERSIAN
-
RAGDOLL
-
WHITE
-
JELLIE
-
ALL_BLACK
-
-
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 cat type.- Returns:
- the cat type with the given name.
-
values
Deprecated.useIterable.iterator()
.- Returns:
- an array of all known cat types.
-
RegistryAware.getKeyOrThrow()
instead.