Skip to content

Commit 3de210a

Browse files
committed
fix ArmorMaterial repairIngredient
1 parent 0141ef7 commit 3de210a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/main/java/org/spongepowered/api/data/type/ArmorMaterial.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626

2727
import org.spongepowered.api.item.ItemType;
2828
import org.spongepowered.api.item.ItemTypes;
29-
import org.spongepowered.api.item.recipe.crafting.Ingredient;
29+
import org.spongepowered.api.item.inventory.ItemStack;
3030
import org.spongepowered.api.registry.DefaultedRegistryValue;
3131
import org.spongepowered.api.util.annotation.CatalogedBy;
3232

33-
import java.util.Optional;
33+
import java.util.function.Predicate;
3434

3535
/**
3636
* Represents a type of "armor", usually applicable to any
@@ -40,11 +40,10 @@
4040
public interface ArmorMaterial extends DefaultedRegistryValue {
4141

4242
/**
43-
* Gets the {@link ItemType} that can be used to
44-
* "repair" the armor type.
43+
* Gets the {@link ItemType} that can be used to "repair" the armor type.
4544
*
4645
* @return The item type considered to be used for repairing
4746
*/
48-
Optional<Ingredient> repairIngredient();
47+
Predicate<ItemStack> repairIngredient();
4948

5049
}

0 commit comments

Comments
 (0)