Package org.bukkit.entity
Enum Cat.Type
- java.lang.Object
-
- java.lang.Enum<Cat.Type>
-
- org.bukkit.entity.Cat.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<Cat.Type>
- Enclosing interface:
- Cat
public static enum Cat.Type extends Enum<Cat.Type>
Represents the various different cat types there are.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Cat.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static Cat.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TABBY
public static final Cat.Type TABBY
-
BLACK
public static final Cat.Type BLACK
-
RED
public static final Cat.Type RED
-
SIAMESE
public static final Cat.Type SIAMESE
-
BRITISH_SHORTHAIR
public static final Cat.Type BRITISH_SHORTHAIR
-
CALICO
public static final Cat.Type CALICO
-
PERSIAN
public static final Cat.Type PERSIAN
-
RAGDOLL
public static final Cat.Type RAGDOLL
-
WHITE
public static final Cat.Type WHITE
-
JELLIE
public static final Cat.Type JELLIE
-
ALL_BLACK
public static final Cat.Type ALL_BLACK
-
-
Method Detail
-
values
public static Cat.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Cat.Type c : Cat.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Cat.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-