public interface IRecipeTransferRegistry
IModRegistry.getRecipeTransferRegistry()
.
To get registered recipe transfer handlers at runtime, see IRecipeRegistry.getRecipeTransferHandler(Container, IRecipeCategory)
Modifier and Type | Method and Description |
---|---|
<C extends net.minecraft.inventory.Container> |
addRecipeTransferHandler(java.lang.Class<C> containerClass,
java.lang.String recipeCategoryUid,
int recipeSlotStart,
int recipeSlotCount,
int inventorySlotStart,
int inventorySlotCount)
Basic method for adding a recipe transfer handler.
|
void |
addRecipeTransferHandler(IRecipeTransferHandler<?> recipeTransferHandler)
Deprecated.
since JEI 3.12.4. Use
addRecipeTransferHandler(IRecipeTransferHandler, String) |
void |
addRecipeTransferHandler(IRecipeTransferHandler<?> recipeTransferHandler,
java.lang.String recipeCategoryUid)
Complete control over recipe transfer.
|
<C extends net.minecraft.inventory.Container> |
addRecipeTransferHandler(IRecipeTransferInfo<C> recipeTransferInfo)
Advanced method for adding a recipe transfer handler.
|
void |
addUniversalRecipeTransferHandler(IRecipeTransferHandler<?> recipeTransferHandler)
Add a universal handler that can handle any category of recipe.
|
<C extends net.minecraft.inventory.Container> void addRecipeTransferHandler(java.lang.Class<C> containerClass, java.lang.String recipeCategoryUid, int recipeSlotStart, int recipeSlotCount, int inventorySlotStart, int inventorySlotCount)
containerClass
- the class of the container that this recipe transfer handler is forrecipeCategoryUid
- the recipe categories that this container can userecipeSlotStart
- the first slot for recipe inputsrecipeSlotCount
- the number of slots for recipe inputsinventorySlotStart
- the first slot of the available inventory (usually player inventory)inventorySlotCount
- the number of slots of the available inventory<C extends net.minecraft.inventory.Container> void addRecipeTransferHandler(IRecipeTransferInfo<C> recipeTransferInfo)
Use this when recipe slots or inventory slots are spread out in different number ranges.
void addRecipeTransferHandler(IRecipeTransferHandler<?> recipeTransferHandler, java.lang.String recipeCategoryUid)
void addUniversalRecipeTransferHandler(IRecipeTransferHandler<?> recipeTransferHandler)
@Deprecated void addRecipeTransferHandler(IRecipeTransferHandler<?> recipeTransferHandler)
addRecipeTransferHandler(IRecipeTransferHandler, String)