[Bleeding] Cleanup clone methods.

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

No files matched your search

@@ -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);
}
}
}