String imageInv = e.getChildTextNormalize("imageInv");
if ("food".equals(type)) {
item = new Food(id, name, new Image(imageWorld), new Image(imageInv), stackable);
} else if ("weapon".equals(type)) {
item = new Weapon(id, name, new Image(imageWorld), new Image(imageInv), stackable);
}
items[i] = item;
}
}