aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/api/RecipeDisplay.java
blob: cd8ab6efbf2d9804ce2966de30317cb26c54f1fa (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
50
/*
 * 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<? extends Recipe> 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
     */
    @Deprecated
    default List<List<ItemStack>> getRequiredItems() {
        return Lists.newArrayList();
    }
    
    /**
     * Gets the recipe display category identifier
     *
     * @return the identifier of the category
     */
    Identifier getRecipeCategory();
    
}