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

This commit is contained in:
Nathan Adams
2012-03-03 01:58:30 +00:00
parent 23aaa912a4
commit 94a61cc3a5
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];
}
}