@Override
 public boolean accept(ItemTemplate template) {
   ItemActions actions = template.getActions();
   if (actions != null) {
     CraftLearnAction craftAction = actions.getCraftLearnAction();
     if (craftAction != null) {
       int id = craftAction.getRecipeId();
       RecipeTemplate recipeTemplate = DataManager.RECIPE_DATA.getRecipeTemplateById(id);
       if (recipeTemplate != null && recipeTemplate.getSkillid() == craftSkillId) {
         return ArrayUtils.contains(masks, template.getTemplateId() / 100000);
       }
     }
   }
   return false;
 }