mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-24 18:09:41 -05: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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user