mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-03-30 16:26:24 +02:00
47 lines
1.2 KiB
Java
47 lines
1.2 KiB
Java
package com.gmail.nossr50.skills.repair;
|
|
|
|
import java.util.List;
|
|
|
|
import org.bukkit.Material;
|
|
import org.bukkit.inventory.ItemStack;
|
|
|
|
public interface RepairableManager {
|
|
/**
|
|
* Register a repairable with the RepairManager
|
|
*
|
|
* @param repairable Repairable to register
|
|
*/
|
|
public void registerRepairable(Repairable repairable);
|
|
|
|
/**
|
|
* Register a list of repairables with the RepairManager
|
|
*
|
|
* @param repairables List<Repairable> to register
|
|
*/
|
|
public void registerRepairables(List<Repairable> repairables);
|
|
|
|
/**
|
|
* Checks if an item is repairable
|
|
*
|
|
* @param type Material to check if repairable
|
|
* @return true if repairable, false if not
|
|
*/
|
|
public boolean isRepairable(Material type);
|
|
|
|
/**
|
|
* Checks if an item is repairable
|
|
*
|
|
* @param itemStack Item to check if repairable
|
|
* @return true if repairable, false if not
|
|
*/
|
|
public boolean isRepairable(ItemStack itemStack);
|
|
|
|
/**
|
|
* Gets the repairable with this type
|
|
*
|
|
* @param type Material of the repairable to look for
|
|
* @return the repairable, can be null
|
|
*/
|
|
public Repairable getRepairable(Material type);
|
|
}
|