package com.gmail.nossr50.api; import java.util.ArrayList; import java.util.List; import org.bukkit.inventory.ItemStack; import com.gmail.nossr50.skills.utilities.ToolType; public final class SpoutToolsAPI { public static final List spoutSwords = new ArrayList(); public static final List spoutAxes = new ArrayList(); public static final List spoutPickaxes = new ArrayList(); public static final List spoutHoes = new ArrayList(); public static final List spoutShovels = new ArrayList(); private SpoutToolsAPI() {} /** * Add a custom Spout tool to mcMMO for XP gain & ability use. *
* This function is designed for API usage. * * @param spoutTool The tool to add * @param type The type of tool to add */ public static void addCustomTool(ItemStack spoutTool, ToolType type) { switch (type) { case AXE: spoutAxes.add(spoutTool); break; case HOE: spoutHoes.add(spoutTool); break; case PICKAXE: spoutPickaxes.add(spoutTool); break; case SHOVEL: spoutShovels.add(spoutTool); break; case SWORD: spoutSwords.add(spoutTool); break; default: break; } } }