blob: 693712fc6cecd0a945248388108274235ca2f301 (
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
51
52
|
/*
* 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.util.Identifier;
import java.util.List;
import java.util.Optional;
public interface RecipeDisplay {
/**
* @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();
/**
* Gets the recipe location from datapack
*
* @return the recipe location
*/
default Optional<Identifier> getRecipeLocation() {
return Optional.empty();
}
}
|