@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user