public class BasicRecipeTransferInfo<C extends net.minecraft.inventory.Container> extends java.lang.Object implements IRecipeTransferInfo<C>
Constructor and Description |
---|
BasicRecipeTransferInfo(java.lang.Class<C> containerClass,
java.lang.String recipeCategoryUid,
int recipeSlotStart,
int recipeSlotCount,
int inventorySlotStart,
int inventorySlotCount) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<C> |
getContainerClass()
Return the container class that this recipe transfer helper supports.
|
java.util.List<net.minecraft.inventory.Slot> |
getInventorySlots(C container)
Return a list of slots that the transfer can use to get items for crafting, or place leftover items.
|
java.lang.String |
getRecipeCategoryUid()
Return the recipe category that this container can handle.
|
java.util.List<net.minecraft.inventory.Slot> |
getRecipeSlots(C container)
Return a list of slots for the recipe area.
|
public BasicRecipeTransferInfo(java.lang.Class<C> containerClass, java.lang.String recipeCategoryUid, int recipeSlotStart, int recipeSlotCount, int inventorySlotStart, int inventorySlotCount)
public java.lang.Class<C> getContainerClass()
IRecipeTransferInfo
getContainerClass
in interface IRecipeTransferInfo<C extends net.minecraft.inventory.Container>
public java.lang.String getRecipeCategoryUid()
IRecipeTransferInfo
getRecipeCategoryUid
in interface IRecipeTransferInfo<C extends net.minecraft.inventory.Container>
public java.util.List<net.minecraft.inventory.Slot> getRecipeSlots(C container)
IRecipeTransferInfo
getRecipeSlots
in interface IRecipeTransferInfo<C extends net.minecraft.inventory.Container>
public java.util.List<net.minecraft.inventory.Slot> getInventorySlots(C container)
IRecipeTransferInfo
getInventorySlots
in interface IRecipeTransferInfo<C extends net.minecraft.inventory.Container>