blob: 3cb0e783f02ad696d918c34437aceab932a04f5f (
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
|
package me.shedaniel.rei.api;
import me.shedaniel.rei.RoughlyEnoughItemsCore;
import net.minecraft.item.ItemStack;
import net.minecraft.recipe.RecipeManager;
import net.minecraft.util.Identifier;
import java.util.List;
import java.util.Map;
import java.util.Optional;
public interface RecipeHelper {
static RecipeHelper getInstance() {
return RoughlyEnoughItemsCore.getRecipeHelper();
}
int getRecipeCount();
List<ItemStack> findCraftableByItems(List<ItemStack> inventoryItems);
void registerCategory(IRecipeCategory category);
void registerDisplay(Identifier categoryIdentifier, IRecipeDisplay display);
Map<IRecipeCategory, List<IRecipeDisplay>> getRecipesFor(ItemStack stack);
RecipeManager getRecipeManager();
List<IRecipeCategory> getAllCategories();
Map<IRecipeCategory, List<IRecipeDisplay>> getUsagesFor(ItemStack stack);
Optional<SpeedCraftAreaSupplier> getSpeedCraftButtonArea(IRecipeCategory category);
void registerSpeedCraftButtonArea(Identifier category, SpeedCraftAreaSupplier rectangle);
List<SpeedCraftFunctional> getSpeedCraftFunctional(IRecipeCategory category);
void registerSpeedCraftFunctional(Identifier category, SpeedCraftFunctional functional);
Map<IRecipeCategory, List<IRecipeDisplay>> getAllRecipes();
}
|