[Bleeding] Cleanup clone methods.

By: Wesley Wolfe <weswolf@aol.com>
This commit is contained in:
Bukkit/Spigot
2012-02-14 01:49:06 -06:00
parent ec40583deb
commit 8bc2cf4969
41 changed files with 204 additions and 30 deletions

View File

@@ -6,7 +6,7 @@ import org.bukkit.Material;
/**
* Handles specific metadata for certain items or blocks
*/
public class MaterialData {
public class MaterialData implements Cloneable {
private final int type;
private byte data = 0;
@@ -102,4 +102,13 @@ public class MaterialData {
return false;
}
}
@Override
public MaterialData clone() {
try {
return (MaterialData) super.clone();
} catch (CloneNotSupportedException e) {
throw new Error(e);
}
}
}