blob: 8200fcdc0ee440be2e88ce273b8e50bbdac6f4dc (
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
26
27
28
29
30
31
32
33
34
35
36
|
/*
* 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();
@Deprecated
default Optional<List<T>> getRecipeFor(ItemStack stack) {
return Optional.empty();
}
default Optional<List<T>> getRecipeFor(EntryStack entry) {
return Optional.empty();
}
@Deprecated
default Optional<List<T>> getUsageFor(ItemStack stack) {
return Optional.empty();
}
default Optional<List<T>> getUsageFor(EntryStack entry) {
return Optional.empty();
}
}
|