public class RecipeTransferRegistry extends java.lang.Object implements IRecipeTransferRegistry
| Constructor and Description |
|---|
RecipeTransferRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRecipeTransferHandler(java.lang.Class<? extends net.minecraft.inventory.Container> 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)
Complete control over recipe transfer.
|
void |
addRecipeTransferHandler(IRecipeTransferInfo recipeTransferInfo)
Advanced method for adding a recipe transfer handler.
|
java.util.List<IRecipeTransferHandler> |
getRecipeTransferHandlers() |
public void addRecipeTransferHandler(@Nullable
java.lang.Class<? extends net.minecraft.inventory.Container> containerClass,
@Nullable
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 void addRecipeTransferHandler(@Nullable
IRecipeTransferInfo recipeTransferInfo)
IRecipeTransferRegistryaddRecipeTransferHandler in interface IRecipeTransferRegistrypublic void addRecipeTransferHandler(@Nullable
IRecipeTransferHandler recipeTransferHandler)
IRecipeTransferRegistryaddRecipeTransferHandler in interface IRecipeTransferRegistrypublic java.util.List<IRecipeTransferHandler> getRecipeTransferHandlers()