Advertisement
Guest User

Untitled

a guest
Dec 27th, 2015
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.67 KB | None | 0 0
  1. @Override
  2.     public boolean matches(InventoryCrafting inventoryCrafting, World world) {
  3.         ItemStack itemStack = null;
  4.         ItemStack itemStack1 = null;
  5.         ItemStack itemStack2 = ModItems.itemSaw
  6.  
  7.         for (int i = 0; i < inventoryCrafting.getSizeInventory(); ++i) {
  8.                 if (itemStack2 != null) {
  9.                     if (itemStack2.getItem() != ModItems.itemSaw) {
  10.                         return false;
  11.                     }
  12.  
  13.                     if (itemStack != null && itemStack1 != null) {
  14.                         return false;
  15.                     }
  16.                 }
  17.         }
  18.  
  19.         return itemStack != null && itemStack1 != null;
  20.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement