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

@@ -29,7 +29,9 @@ public interface MapView {
*
* @param value The raw scale
* @return The enum scale, or null for an invalid input
* @deprecated Magic value
*/
@Deprecated
public static Scale valueOf(byte value) {
switch (value) {
case 0: return CLOSEST;
@@ -45,7 +47,9 @@ public interface MapView {
* Get the raw value of this scale level.
*
* @return The scale value
* @deprecated Magic value
*/
@Deprecated
public byte getValue() {
return value;
}
@@ -56,7 +60,9 @@ public interface MapView {
* in an inventory.
*
* @return The ID of the map.
* @deprecated Magic value
*/
@Deprecated
public short getId();
/**