output.writeShort(data);
output.writeString(name);
}
public void run(int PlayerId) {
Material material = MaterialData.getOrCreateMaterial(id, data);
if (material == null) {
material = MaterialData.getCustomItem(data);
}
if (name.equals("[resetall]")) {
MaterialData.reset();
}
if (material != null) {
if (name.equals("[reset]")) {
material.setName(material.getNotchianName());
} else {
material.setName(name);
}
} else {
//System.out.println("Tried to set item name to [" + name + "] for unknown material (" + id + ", " + data + ")");
}
}