aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/api/LiveRecipeGenerator.java
blob: 2e331b1dfd30d5e4f49d9ee416f493c36ca522d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * Roughly Enough Items by Danielshe.
 * Licensed under the MIT License.
 */

package me.shedaniel.rei.api;

import net.minecraft.item.ItemStack;
import net.minecraft.util.Identifier;

import java.util.List;
import java.util.Optional;

public interface LiveRecipeGenerator<T extends RecipeDisplay> {
    
    Identifier getCategoryIdentifier();
    
    Optional<List<T>> getRecipeFor(ItemStack stack);
    
    Optional<List<T>> getUsageFor(ItemStack stack);
    
}