public class BasicRecipeTransferHandler<C extends net.minecraft.inventory.Container> extends java.lang.Object implements IRecipeTransferHandler<C>
Constructor and Description |
---|
BasicRecipeTransferHandler(StackHelper stackHelper,
IRecipeTransferHandlerHelper handlerHelper,
IRecipeTransferInfo<C> transferHelper) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<C> |
getContainerClass()
The container that this recipe transfer handler can use.
|
java.lang.String |
getRecipeCategoryUid()
The type of recipe that this recipe transfer handler deals with.
|
IRecipeTransferError |
transferRecipe(C container,
IRecipeLayout recipeLayout,
net.minecraft.entity.player.EntityPlayer player,
boolean maxTransfer,
boolean doTransfer) |
public BasicRecipeTransferHandler(StackHelper stackHelper, IRecipeTransferHandlerHelper handlerHelper, IRecipeTransferInfo<C> transferHelper)
public java.lang.Class<C> getContainerClass()
IRecipeTransferHandler
getContainerClass
in interface IRecipeTransferHandler<C extends net.minecraft.inventory.Container>
public java.lang.String getRecipeCategoryUid()
IRecipeTransferHandler
getRecipeCategoryUid
in interface IRecipeTransferHandler<C extends net.minecraft.inventory.Container>
@Nullable public IRecipeTransferError transferRecipe(C container, IRecipeLayout recipeLayout, net.minecraft.entity.player.EntityPlayer player, boolean maxTransfer, boolean doTransfer)
transferRecipe
in interface IRecipeTransferHandler<C extends net.minecraft.inventory.Container>
container
- the container to act onrecipeLayout
- the layout of the recipe, with information about the ingredientsplayer
- the player, to do the slot manipulationmaxTransfer
- if true, transfer as many items as possible. if false, transfer one setdoTransfer
- if true, do the transfer. if false, check for errors but do not actually transfer the items