public class BasicRecipeTransferHandler<C extends net.minecraft.inventory.container.Container> extends java.lang.Object implements IRecipeTransferHandler<C>
Constructor and Description |
---|
BasicRecipeTransferHandler(IStackHelper 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.
|
IRecipeTransferError |
transferRecipe(C container,
java.lang.Object recipe,
IRecipeLayout recipeLayout,
net.minecraft.entity.player.PlayerEntity player,
boolean maxTransfer,
boolean doTransfer) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
transferRecipe
public BasicRecipeTransferHandler(IStackHelper stackHelper, IRecipeTransferHandlerHelper handlerHelper, IRecipeTransferInfo<C> transferHelper)
public java.lang.Class<C> getContainerClass()
IRecipeTransferHandler
getContainerClass
in interface IRecipeTransferHandler<C extends net.minecraft.inventory.container.Container>
@Nullable public IRecipeTransferError transferRecipe(C container, java.lang.Object recipe, IRecipeLayout recipeLayout, net.minecraft.entity.player.PlayerEntity player, boolean maxTransfer, boolean doTransfer)
transferRecipe
in interface IRecipeTransferHandler<C extends net.minecraft.inventory.container.Container>
container
- the container to act onrecipe
- the raw recipe instancerecipeLayout
- 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