From 3de210ac24eb838976c41e36559ca1135195eb1a Mon Sep 17 00:00:00 2001 From: Anselm Brehme Date: Tue, 27 Aug 2024 19:22:36 +0200 Subject: [PATCH] fix ArmorMaterial repairIngredient --- .../org/spongepowered/api/data/type/ArmorMaterial.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/spongepowered/api/data/type/ArmorMaterial.java b/src/main/java/org/spongepowered/api/data/type/ArmorMaterial.java index cdcc6cfa1a5..c59de8bfcc7 100644 --- a/src/main/java/org/spongepowered/api/data/type/ArmorMaterial.java +++ b/src/main/java/org/spongepowered/api/data/type/ArmorMaterial.java @@ -26,11 +26,11 @@ import org.spongepowered.api.item.ItemType; import org.spongepowered.api.item.ItemTypes; -import org.spongepowered.api.item.recipe.crafting.Ingredient; +import org.spongepowered.api.item.inventory.ItemStack; import org.spongepowered.api.registry.DefaultedRegistryValue; import org.spongepowered.api.util.annotation.CatalogedBy; -import java.util.Optional; +import java.util.function.Predicate; /** * Represents a type of "armor", usually applicable to any @@ -40,11 +40,10 @@ public interface ArmorMaterial extends DefaultedRegistryValue { /** - * Gets the {@link ItemType} that can be used to - * "repair" the armor type. + * Gets the {@link ItemType} that can be used to "repair" the armor type. * * @return The item type considered to be used for repairing */ - Optional repairIngredient(); + Predicate repairIngredient(); }