Advertisement
broken-arrow

Untitled

Jun 24th, 2021
1,099
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.39 KB | None | 0 0
  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.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement