broken-arrow

Untitled

Jun 24th, 2021
877
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public void craftingrecipe(){
  2. if (craftingrecipes(location, items))
  3.  
  4. //do stuff
  5. }
  6.  
  7.     public boolean craftingrecipes(Location location, ItemStack itemstacks) {
  8.         List<String> filterItems = new FilterItems().getRecipeFromCraftingfiltergui(null, location);
  9.         for (String filteritem : filterItems)
  10.             if (filteritem.equals(itemstacks.getType().name()))
  11.                 return true;
  12.         return false;
  13.     }
  14.  
RAW Paste Data