blob: ce7c62b2485f48b210597f21b473964240adca9f (
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
|
/*
* Copyright (c) 2018, 2019, 2020 shedaniel
* Licensed under the MIT License (the "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();
}
}
|