Deprecate magic values

By: Wesley Wolfe <weswolf@aol.com>
This commit is contained in:
Bukkit/Spigot
2013-08-19 13:32:18 -05:00
parent d9f3848e22
commit f9bec6eadd
108 changed files with 1194 additions and 11 deletions

View File

@@ -42,7 +42,9 @@ public interface Skeleton extends Monster {
* Gets the ID of this skeleton type.
*
* @return Skeleton type ID
* @deprecated Magic value
*/
@Deprecated
public int getId() {
return id;
}
@@ -52,7 +54,9 @@ public interface Skeleton extends Monster {
*
* @param id ID of the skeleton type to get.
* @return Resulting skeleton type, or null if not found.
* @deprecated Magic value
*/
@Deprecated
public static SkeletonType getType(int id) {
return (id >= types.length) ? null : types[id];
}