blob: 9e17159bc23fc4cc2bf179ad9f6f8b5e6e8c7d5b (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
|
/*
* Roughly Enough Items by Danielshe.
* Licensed under the MIT License.
*/
package me.shedaniel.rei.api;
import com.google.common.collect.Lists;
import net.minecraft.item.ItemStack;
import net.minecraft.recipe.Recipe;
import net.minecraft.util.Identifier;
import java.util.List;
import java.util.Optional;
public interface RecipeDisplay<T extends Recipe> {
/**
* @return the optional recipe
*/
Optional<T> getRecipe();
/**
* @return a list of items
*/
List<List<ItemStack>> getInput();
/**
* @return a list of outputs
*/
List<ItemStack> getOutput();
/**
* Gets the required items used in craftable filters
*
* @return the list of required items
*/
default List<List<ItemStack>> getRequiredItems() {
return Lists.newArrayList();
}
/**
* Gets the recipe display category identifier
*
* @return the identifier of the category
*/
Identifier getRecipeCategory();
}
|