Converting repair config to the new system

This commit is contained in:
nossr50
2019-02-20 15:42:46 -08:00
parent 5ce08a2294
commit c14b949b0a
5 changed files with 228 additions and 117 deletions

View File

@@ -419,6 +419,26 @@ public final class ItemUtils {
}
}
/**
* Checks to see if an item is a wooden tool.
*
* @param material Material to check
* @return true if the item is a wooden tool, false otherwise
*/
public static boolean isWoodTool(Material material) {
switch (material) {
case WOODEN_AXE:
case WOODEN_HOE:
case WOODEN_PICKAXE:
case WOODEN_SHOVEL:
case WOODEN_SWORD:
return true;
default:
return false;
}
}
/**
* Checks to see if an item is a string tool.
*