unnecessary interfaces

This commit is contained in:
nossr50 2019-04-02 16:35:05 -07:00
parent c428aff251
commit 9514b200cd
2 changed files with 64 additions and 30 deletions

View File

@ -1,3 +1,4 @@
/*
package com.gmail.nossr50.skills.salvage.salvageables; package com.gmail.nossr50.skills.salvage.salvageables;
import com.gmail.nossr50.datatypes.skills.ItemMaterialCategory; import com.gmail.nossr50.datatypes.skills.ItemMaterialCategory;
@ -5,77 +6,98 @@ import com.gmail.nossr50.datatypes.skills.ItemType;
import org.bukkit.Material; import org.bukkit.Material;
public interface Salvageable { public interface Salvageable {
*/
/** /**
* Gets the type of this salvageable item * Gets the type of this salvageable item
* *
* @return the type of this salvageable * @return the type of this salvageable
*/ *//*
public Material getItemMaterial(); public Material getItemMaterial();
*/
/** /**
* Gets the material of the items dropped when salvaging this item * Gets the material of the items dropped when salvaging this item
* *
* @return the material of the salvage drop * @return the material of the salvage drop
*/ *//*
public Material getSalvageMaterial(); public Material getSalvageMaterial();
*/
/** /**
* Gets the metadata byte value of the items dropped when salvaging this item * Gets the metadata byte value of the items dropped when salvaging this item
* *
* @return the byte metadata of the salvage drop * @return the byte metadata of the salvage drop
*/ *//*
public byte getSalvageMaterialMetadata(); public byte getSalvageMaterialMetadata();
*/
/** /**
* Gets the ItemType value for this salvageable item * Gets the ItemType value for this salvageable item
* *
* @return the ItemType for this salvageable * @return the ItemType for this salvageable
*/ *//*
public ItemType getSalvageItemType(); public ItemType getSalvageItemType();
*/
/** /**
* Gets the ItemMaterialCategory value for this salvageable item * Gets the ItemMaterialCategory value for this salvageable item
* *
* @return the ItemMaterialCategory for this salvageable * @return the ItemMaterialCategory for this salvageable
*/ *//*
public ItemMaterialCategory getSalvageItemMaterialCategory(); public ItemMaterialCategory getSalvageItemMaterialCategory();
*/
/** /**
* Gets the maximum quantity of salvage materials ignoring all other salvage bonuses * Gets the maximum quantity of salvage materials ignoring all other salvage bonuses
* *
* This is typically set to the number of items needed to create that item, for example 5 for helmets or 2 for swords * This is typically set to the number of items needed to create that item, for example 5 for helmets or 2 for swords
* *
* @return the maximum number of items * @return the maximum number of items
*/ *//*
public int getMaximumQuantity(); public int getMaximumQuantity();
*/
/** /**
* Gets the maximum durability of this item before it breaks * Gets the maximum durability of this item before it breaks
* *
* @return the maximum durability * @return the maximum durability
*/ *//*
public short getMaximumDurability(); public short getMaximumDurability();
*/
/** /**
* Gets the base salvage durability on which to calculate bonuses. * Gets the base salvage durability on which to calculate bonuses.
* *
* This is actually the maximum durability divided by the minimum quantity * This is actually the maximum durability divided by the minimum quantity
* *
* @return the base salvage durability * @return the base salvage durability
*/ *//*
public short getBaseSalvageDurability(); public short getBaseSalvageDurability();
*/
/** /**
* Gets the minimum salvage level needed to salvage this item * Gets the minimum salvage level needed to salvage this item
* *
* @return the minimum level to salvage this item, or 0 for no minimum * @return the minimum level to salvage this item, or 0 for no minimum
*/ *//*
public int getMinimumLevel(); public int getMinimumLevel();
*/
/** /**
* Gets the xpMultiplier for this salvageable * Gets the xpMultiplier for this salvageable
* *
* @return the xpMultiplier of this salvageable * @return the xpMultiplier of this salvageable
*/ *//*
public double getXpMultiplier(); public double getXpMultiplier();
} }
*/

View File

@ -1,3 +1,4 @@
/*
package com.gmail.nossr50.skills.salvage.salvageables; package com.gmail.nossr50.skills.salvage.salvageables;
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 SalvageableManager extends Unload { public interface SalvageableManager extends Unload {
*/
/** /**
* Register a salvageable with the SalvageManager * Register a salvageable with the SalvageManager
* *
* @param salvageable Salvageable to register * @param salvageable Salvageable to register
*/ *//*
public void registerSalvageable(Salvageable salvageable); public void registerSalvageable(Salvageable salvageable);
*/
/** /**
* Register a list of salvageables with the SalvageManager * Register a list of salvageables with the SalvageManager
* *
* @param salvageables List<Salvageable> to register * @param salvageables List<Salvageable> to register
*/ *//*
public void registerSalvageables(List<Salvageable> salvageables); public void registerSalvageables(List<Salvageable> salvageables);
*/
/** /**
* Checks if an item is salvageable * Checks if an item is salvageable
* *
* @param type Material to check if salvageable * @param type Material to check if salvageable
* *
* @return true if salvageable, false if not * @return true if salvageable, false if not
*/ *//*
public boolean isSalvageable(Material type); public boolean isSalvageable(Material type);
*/
/** /**
* Checks if an item is salvageable * Checks if an item is salvageable
* *
* @param itemStack Item to check if salvageable * @param itemStack Item to check if salvageable
* *
* @return true if salvageable, false if not * @return true if salvageable, false if not
*/ *//*
public boolean isSalvageable(ItemStack itemStack); public boolean isSalvageable(ItemStack itemStack);
*/
/** /**
* Gets the salvageable with this type * Gets the salvageable with this type
* *
* @param type Material of the salvageable to look for * @param type Material of the salvageable to look for
* *
* @return the salvageable, can be null * @return the salvageable, can be null
*/ *//*
public Salvageable getSalvageable(Material type); public Salvageable getSalvageable(Material type);
} }
*/