Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.entity.Ocelot.Type Enum Reference

Public Member Functions

int getId ()
 

Static Public Member Functions

 [static initializer]
 
static Type getType (int id)
 

Public Attributes

 WILD_OCELOT =(0)
 
 BLACK_CAT =(1)
 
 RED_CAT =(2)
 
 SIAMESE_CAT =(3)
 

Detailed Description

Represents the various different cat types there are.

Definition at line 41 of file Ocelot.java.

Member Function Documentation

int org.bukkit.entity.Ocelot.Type.getId ( )

Gets the ID of this cat type.

Returns
Type ID.
Deprecated:
Magic value

Definition at line 67 of file Ocelot.java.

67  {
68  return id;
69  }
static Type org.bukkit.entity.Ocelot.Type.getType ( int  id)
static

Gets a cat type by its ID.

Parameters
idID of the cat type to get.
Returns
Resulting type, or null if not found.
Deprecated:
Magic value

Definition at line 79 of file Ocelot.java.

79  {
80  return (id >= types.length) ? null : types[id];
81  }

The documentation for this enum was generated from the following file: