|
@@ -1,3 +1,4 @@
|
|
|
|
+/*
|
|
package com.gmail.nossr50.skills.repair.repairables;
|
|
package com.gmail.nossr50.skills.repair.repairables;
|
|
|
|
|
|
import com.gmail.nossr50.config.Unload;
|
|
import com.gmail.nossr50.config.Unload;
|
|
@@ -7,44 +8,55 @@ import org.bukkit.inventory.ItemStack;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
public interface RepairableManager extends Unload {
|
|
public interface RepairableManager extends Unload {
|
|
- /**
|
|
|
|
|
|
+ */
|
|
|
|
+/**
|
|
* Register a repairable with the RepairManager
|
|
* Register a repairable with the RepairManager
|
|
*
|
|
*
|
|
* @param repairable Repairable to register
|
|
* @param repairable Repairable to register
|
|
- */
|
|
|
|
|
|
+ *//*
|
|
|
|
+
|
|
public void registerRepairable(Repairable repairable);
|
|
public void registerRepairable(Repairable repairable);
|
|
|
|
|
|
- /**
|
|
|
|
|
|
+ */
|
|
|
|
+/**
|
|
* Register a list of repairables with the RepairManager
|
|
* Register a list of repairables with the RepairManager
|
|
*
|
|
*
|
|
* @param repairables List<Repairable> to register
|
|
* @param repairables List<Repairable> to register
|
|
- */
|
|
|
|
|
|
+ *//*
|
|
|
|
+
|
|
public void registerRepairables(List<Repairable> repairables);
|
|
public void registerRepairables(List<Repairable> repairables);
|
|
|
|
|
|
- /**
|
|
|
|
|
|
+ */
|
|
|
|
+/**
|
|
* Checks if an item is repairable
|
|
* Checks if an item is repairable
|
|
*
|
|
*
|
|
* @param type Material to check if repairable
|
|
* @param type Material to check if repairable
|
|
*
|
|
*
|
|
* @return true if repairable, false if not
|
|
* @return true if repairable, false if not
|
|
- */
|
|
|
|
|
|
+ *//*
|
|
|
|
+
|
|
public boolean isRepairable(Material type);
|
|
public boolean isRepairable(Material type);
|
|
|
|
|
|
- /**
|
|
|
|
|
|
+ */
|
|
|
|
+/**
|
|
* Checks if an item is repairable
|
|
* Checks if an item is repairable
|
|
*
|
|
*
|
|
* @param itemStack Item to check if repairable
|
|
* @param itemStack Item to check if repairable
|
|
*
|
|
*
|
|
* @return true if repairable, false if not
|
|
* @return true if repairable, false if not
|
|
- */
|
|
|
|
|
|
+ *//*
|
|
|
|
+
|
|
public boolean isRepairable(ItemStack itemStack);
|
|
public boolean isRepairable(ItemStack itemStack);
|
|
|
|
|
|
- /**
|
|
|
|
|
|
+ */
|
|
|
|
+/**
|
|
* Gets the repairable with this type
|
|
* Gets the repairable with this type
|
|
*
|
|
*
|
|
* @param type Material of the repairable to look for
|
|
* @param type Material of the repairable to look for
|
|
*
|
|
*
|
|
* @return the repairable, can be null
|
|
* @return the repairable, can be null
|
|
- */
|
|
|
|
|
|
+ *//*
|
|
|
|
+
|
|
public Repairable getRepairable(Material type);
|
|
public Repairable getRepairable(Material type);
|
|
}
|
|
}
|
|
|
|
+*/
|