Cleans up salvage code a bit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package net.knarcraft.blacksmith.property;
|
||||
|
||||
/**
|
||||
* A representation of the different ways an item can be salvaged
|
||||
*/
|
||||
public enum SalvageMethod {
|
||||
|
||||
/**
|
||||
* Salvaging the item normally by returning the item's crafting recipe
|
||||
*/
|
||||
SALVAGE,
|
||||
|
||||
/**
|
||||
* Removing the armor trim from an item
|
||||
*/
|
||||
ARMOR_TRIM,
|
||||
|
||||
/**
|
||||
* Un-doing netherite application for an item
|
||||
*/
|
||||
NETHERITE,
|
||||
|
||||
}
|
@@ -0,0 +1,23 @@
|
||||
package net.knarcraft.blacksmith.property;
|
||||
|
||||
/**
|
||||
* The state of trying to find salvage for an item
|
||||
*/
|
||||
public enum SalvageState {
|
||||
|
||||
/**
|
||||
* Found useful salvage that can be given to a player
|
||||
*/
|
||||
FOUND_SALVAGE,
|
||||
|
||||
/**
|
||||
* The item cannot be salvaged using the used method
|
||||
*/
|
||||
INCORRECT_METHOD,
|
||||
|
||||
/**
|
||||
* While the method was correct, no useful salvage was created
|
||||
*/
|
||||
NO_SALVAGE,
|
||||
|
||||
}
|
Reference in New Issue
Block a user