public interface IRecipeTransferInfo<C extends net.minecraft.inventory.Container>
Most plugins with normal inventories can use the simpler IRecipeTransferRegistry.addRecipeTransferHandler(Class, String, int, int, int, int)
.
Containers with slot ranges that contain gaps or other oddities can implement this interface directly.
Containers that need full control over the recipe transfer or do not use slots can implement IRecipeTransferHandler
.
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.
|
java.lang.Class<C> getContainerClass()
java.lang.String getRecipeCategoryUid()
java.util.List<net.minecraft.inventory.Slot> getRecipeSlots(C container)
java.util.List<net.minecraft.inventory.Slot> getInventorySlots(C container)