Deprecate magic values

This commit is contained in:
Wesley Wolfe
2013-08-19 13:32:18 -05:00
parent 52215c6171
commit 1f83111208
108 changed files with 1194 additions and 11 deletions

View File

@@ -133,7 +133,9 @@ public abstract class Enchantment {
* Gets the unique ID of this enchantment
*
* @return Unique ID
* @deprecated Magic value
*/
@Deprecated
public int getId() {
return id;
}
@@ -248,7 +250,9 @@ public abstract class Enchantment {
*
* @param id ID to fetch
* @return Resulting Enchantment, or null if not found
* @deprecated Magic value
*/
@Deprecated
public static Enchantment getById(int id) {
return byId.get(id);
}