Deprecate magic values

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

No files matched your search

@@ -36,7 +36,9 @@ public enum Instrument {
/**
* @return The type ID of this instrument.
* @deprecated Magic value
*/
@Deprecated
public byte getType() {
return this.type;
}
@@ -46,7 +48,9 @@ public enum Instrument {
*
* @param type The type ID
* @return The instrument
* @deprecated Magic value
*/
@Deprecated
public static Instrument getByType(final byte type) {
return BY_DATA.get(type);
}