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

 RED_CAT =(2)

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.

Type ID.
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)

Gets a cat type by its ID.

idID of the cat type to get.
Resulting type, or null if not found.
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: