ArmorType now uses Ingredient instead of ItemType
package org.spongepowered.api.data.type;
import org.spongepowered.api.CatalogType;
-import org.spongepowered.api.item.ItemType;
import org.spongepowered.api.item.ItemTypes;
+import org.spongepowered.api.item.recipe.crafting.Ingredient;
import org.spongepowered.api.util.annotation.CatalogedBy;
import java.util.Optional;
/**
- * Represents a type of "armor", usually applicable to any
- * {@link ItemTypes#DIAMOND_CHESTPLATE}.
+ * Represents a type of "armor", an example would be {@link ItemTypes#DIAMOND_CHESTPLATE}.
*/
@CatalogedBy(ArmorTypes.class)
public interface ArmorType extends CatalogType {
/**
- * Gets the {@link ItemType} that can be used to
+ * Gets the {@link Ingredient} that can be used to
* "repair" the armor type.
*
- * @return The item type considered to be used for repairing
+ * @return The ingredient considered to be used for repairing
*/
- Optional<ItemType> getRepairItemType();
-
+ Optional<Ingredient> getRepairIngredient();
}
