public class PlayerRecipeTransferHandler extends java.lang.Object implements IRecipeTransferHandler<net.minecraft.inventory.container.PlayerContainer>
| Constructor and Description |
|---|
PlayerRecipeTransferHandler(IStackHelper stackhelper,
IRecipeTransferHandlerHelper handlerHelper) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<net.minecraft.inventory.container.PlayerContainer> |
getContainerClass()
The container that this recipe transfer handler can use.
|
IRecipeTransferError |
transferRecipe(net.minecraft.inventory.container.PlayerContainer container,
IRecipeLayout recipeLayout,
net.minecraft.entity.player.PlayerEntity player,
boolean maxTransfer,
boolean doTransfer) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittransferRecipepublic PlayerRecipeTransferHandler(IStackHelper stackhelper, IRecipeTransferHandlerHelper handlerHelper)
public java.lang.Class<net.minecraft.inventory.container.PlayerContainer> getContainerClass()
IRecipeTransferHandlergetContainerClass in interface IRecipeTransferHandler<net.minecraft.inventory.container.PlayerContainer>@Nullable public IRecipeTransferError transferRecipe(net.minecraft.inventory.container.PlayerContainer container, IRecipeLayout recipeLayout, net.minecraft.entity.player.PlayerEntity player, boolean maxTransfer, boolean doTransfer)
transferRecipe in interface IRecipeTransferHandler<net.minecraft.inventory.container.PlayerContainer>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