RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/server/RecipeFinder.java
/**
     * Takes an amount from the finder
     *
     * @return the amount taken
     */
Takes an amount from the finder
@return the amount taken
Takes an amount from the finder @return the amount taken
public int take(int itemId, int amount) {
        int mapAmount = this.idToAmountMap.get(itemId);
        if (mapAmount >= amount) {
            this.idToAmountMap.put(itemId, mapAmount - amount);
            return itemId;
        } else {
            return 0;
        }
    }
public int take ( int itemId , int amount ) { int mapAmount = this . idToAmountMap . get ( itemId ) ; if ( mapAmount >= amount ) { this . idToAmountMap . put ( itemId , mapAmount - amount ) ; return itemId ; } else { return 0 ; } }
Takes an amount from the finder
 @return the amount taken
Takes an amount from the finder @return the amount taken