public class BasicRecipeTransferInfo<C extends net.minecraft.inventory.container.Container> extends java.lang.Object implements IRecipeTransferInfo<C>
| Constructor and Description |
|---|
BasicRecipeTransferInfo(java.lang.Class<C> containerClass,
net.minecraft.util.ResourceLocation recipeCategoryUid,
int recipeSlotStart,
int recipeSlotCount,
int inventorySlotStart,
int inventorySlotCount) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(C container)
Return true if this recipe transfer info can handle the given container instance.
|
java.lang.Class<C> |
getContainerClass()
Return the container class that this recipe transfer helper supports.
|
java.util.List<net.minecraft.inventory.container.Slot> |
getInventorySlots(C container)
Return a list of slots that the transfer can use to get items for crafting, or place leftover items.
|
net.minecraft.util.ResourceLocation |
getRecipeCategoryUid()
Return the recipe category that this container can handle.
|
java.util.List<net.minecraft.inventory.container.Slot> |
getRecipeSlots(C container)
Return a list of slots for the recipe area.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrequireCompleteSetspublic BasicRecipeTransferInfo(java.lang.Class<C> containerClass, net.minecraft.util.ResourceLocation recipeCategoryUid, int recipeSlotStart, int recipeSlotCount, int inventorySlotStart, int inventorySlotCount)
public java.lang.Class<C> getContainerClass()
IRecipeTransferInfogetContainerClass in interface IRecipeTransferInfo<C extends net.minecraft.inventory.container.Container>public net.minecraft.util.ResourceLocation getRecipeCategoryUid()
IRecipeTransferInfogetRecipeCategoryUid in interface IRecipeTransferInfo<C extends net.minecraft.inventory.container.Container>public boolean canHandle(C container)
IRecipeTransferInfocanHandle in interface IRecipeTransferInfo<C extends net.minecraft.inventory.container.Container>public java.util.List<net.minecraft.inventory.container.Slot> getRecipeSlots(C container)
IRecipeTransferInfogetRecipeSlots in interface IRecipeTransferInfo<C extends net.minecraft.inventory.container.Container>public java.util.List<net.minecraft.inventory.container.Slot> getInventorySlots(C container)
IRecipeTransferInfogetInventorySlots in interface IRecipeTransferInfo<C extends net.minecraft.inventory.container.Container>