Skip to content

Commit

Permalink
fix ArmorMaterial repairIngredient
Browse files Browse the repository at this point in the history
  • Loading branch information
Faithcaio committed Aug 27, 2024
1 parent 0141ef7 commit 3de210a
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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<Ingredient> repairIngredient();
Predicate<ItemStack> repairIngredient();

}

0 comments on commit 3de210a

Please sign in to comment.