public class RecipeTransferRegistry extends java.lang.Object implements IRecipeTransferRegistry
| Constructor and Description |
|---|
RecipeTransferRegistry(StackHelper stackHelper,
IRecipeTransferHandlerHelper handlerHelper) |
| 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,
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.
|
com.google.common.collect.ImmutableTable<java.lang.Class,java.lang.String,IRecipeTransferHandler> |
getRecipeTransferHandlers() |
public RecipeTransferRegistry(StackHelper stackHelper, IRecipeTransferHandlerHelper handlerHelper)
public <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)
IRecipeTransferRegistryaddRecipeTransferHandler in interface IRecipeTransferRegistrycontainerClass - 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 inventorypublic <C extends net.minecraft.inventory.Container> void addRecipeTransferHandler(IRecipeTransferInfo<C> recipeTransferInfo)
IRecipeTransferRegistryUse this when recipe slots or inventory slots are spread out in different number ranges.
addRecipeTransferHandler in interface IRecipeTransferRegistrypublic void addRecipeTransferHandler(IRecipeTransferHandler<?> recipeTransferHandler, java.lang.String recipeCategoryUid)
IRecipeTransferRegistryaddRecipeTransferHandler in interface IRecipeTransferRegistrypublic void addUniversalRecipeTransferHandler(IRecipeTransferHandler<?> recipeTransferHandler)
IRecipeTransferRegistryaddUniversalRecipeTransferHandler in interface IRecipeTransferRegistrypublic com.google.common.collect.ImmutableTable<java.lang.Class,java.lang.String,IRecipeTransferHandler> getRecipeTransferHandlers()