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

package me.shedaniel.rei.api;

import net.minecraft.util.Identifier;

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

public interface LiveRecipeGenerator<T extends RecipeDisplay> {

    Identifier getCategoryIdentifier();

    default Optional<List<T>> getRecipeFor(EntryStack entry) {
        return Optional.empty();
    }

    default Optional<List<T>> getUsageFor(EntryStack entry) {
        return Optional.empty();
    }

}