Added Villager API for getting/setting Profession. This adds BUKKIT-887

By: Nathan Adams <dinnerbone@dinnerbone.com>
This commit is contained in:
Bukkit/Spigot
2012-03-03 01:58:30 +00:00
parent 577152ebd1
commit 0e0427ebeb
2 changed files with 57 additions and 1 deletions

View File

@@ -56,7 +56,7 @@ public interface Ocelot extends Animals, Tameable {
* @param id ID of the cat type to get.
* @return Resulting type, or null if not found.
*/
public static final Type getType(int id) {
public static Type getType(int id) {
return (id >= types.length) ? null : types[id];
}
}