package net.wayward_realms.waywardlib.professions;

import org.bukkit.Material;

import static org.bukkit.Material.*;

public enum ToolType {

    PICKAXE(WOOD_PICKAXE, STONE_PICKAXE, IRON_PICKAXE, GOLD_PICKAXE, DIAMOND_PICKAXE),
    SWORD(WOOD_SWORD, STONE_SWORD, IRON_SWORD, GOLD_SWORD, DIAMOND_SWORD),
    HOE(WOOD_HOE, STONE_HOE, IRON_HOE, GOLD_HOE, DIAMOND_HOE),
    AXE(WOOD_AXE, STONE_AXE, IRON_AXE, GOLD_AXE, DIAMOND_AXE),
    SPADE(WOOD_SPADE, STONE_SPADE, IRON_SPADE, GOLD_SPADE, DIAMOND_SPADE);

    private final Material[] materials;

    private ToolType(Material... materials) {
        this.materials = materials;
    }

    public Material[] getMaterials() {
        return materials;
    }

}

@@ -500,16 +500,595 @@
 PADE);%0A%0A
+    /**%0A     * Gets the tooltype of a material%0A     *%0A     * @param material the material%0A     * @return the tooltype, or none if the material is not a tool%0A     */%0A    public static ToolType getToolType(Material material) %7B%0A        if (material.toString().endsWith(%22_PICKAXE%22)) return PICKAXE;%0A        if (material.toString().endsWith(%22_SWORD%22)) return SWORD;%0A        if (material.toString().endsWith(%22_HOE%22)) return HOE;%0A        if (material.toString().endsWith(%22_AXE%22)) return AXE;%0A        if (material.toString().endsWith(%22_SPADE%22)) return SPADE;%0A        return null;%0A    %7D%0A%0A
     priv
@@ -1205,24 +1205,137 @@
 als;%0A    %7D%0A%0A
+    /**%0A     * Gets the materials of the tooltype%0A     *%0A     * @return the materials of the tool's type%0A     */%0A
     public M

Add methods to get material tool types