Example #1
0
 public static boolean canSustainPlant(World world, ItemStack seed, int x, int y, int z) {
   for (ICropHandler cropHandler : handlers) {
     if (cropHandler.isSeed(seed) && cropHandler.canSustainPlant(world, seed, x, y, z)) {
       return true;
     }
   }
   return defaultHandler.isSeed(seed) && defaultHandler.canSustainPlant(world, seed, x, y, z);
 }
Example #2
0
 public static boolean isSeed(ItemStack stack) {
   for (ICropHandler cropHandler : handlers) {
     if (cropHandler.isSeed(stack)) {
       return true;
     }
   }
   return defaultHandler.isSeed(stack);
 }