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

@@ -58,7 +58,9 @@ public enum EntityEffect {
* Gets the data value of this EntityEffect
*
* @return The data value
* @deprecated Magic value
*/
@Deprecated
public byte getData() {
return data;
}
@@ -68,7 +70,9 @@ public enum EntityEffect {
*
* @param data Data value to fetch
* @return The {@link EntityEffect} representing the given value, or null if it doesn't exist
* @deprecated Magic value
*/
@Deprecated
public static EntityEffect getByData(final byte data) {
return BY_DATA.get(data);
}