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

@@ -10,6 +10,11 @@ public class MaterialData implements Cloneable {
private final int type;
private byte data = 0;
/**
*
* @deprecated Magic value
*/
@Deprecated
public MaterialData(final int type) {
this(type, (byte) 0);
}
@@ -18,11 +23,21 @@ public class MaterialData implements Cloneable {
this(type, (byte) 0);
}
/**
*
* @deprecated Magic value
*/
@Deprecated
public MaterialData(final int type, final byte data) {
this.type = type;
this.data = data;
}
/**
*
* @deprecated Magic value
*/
@Deprecated
public MaterialData(final Material type, final byte data) {
this(type.getId(), data);
}
@@ -31,7 +46,9 @@ public class MaterialData implements Cloneable {
* Gets the raw data in this material
*
* @return Raw data
* @deprecated Magic value
*/
@Deprecated
public byte getData() {
return data;
}
@@ -40,7 +57,9 @@ public class MaterialData implements Cloneable {
* Sets the raw data of this material
*
* @param data New raw data
* @deprecated Magic value
*/
@Deprecated
public void setData(byte data) {
this.data = data;
}
@@ -58,7 +77,9 @@ public class MaterialData implements Cloneable {
* Gets the Material Id that this MaterialData represents
*
* @return Material Id represented by this MaterialData
* @deprecated Magic value
*/
@Deprecated
public int getItemTypeId() {
return type;
}