public class PlayerRecipeTransferHandler extends java.lang.Object implements IRecipeTransferHandler<net.minecraft.inventory.ContainerPlayer>
| Constructor and Description |
|---|
PlayerRecipeTransferHandler(IRecipeTransferHandlerHelper handlerHelper) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<net.minecraft.inventory.ContainerPlayer> |
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(net.minecraft.inventory.ContainerPlayer container,
IRecipeLayout recipeLayout,
net.minecraft.entity.player.EntityPlayer player,
boolean maxTransfer,
boolean doTransfer) |
public PlayerRecipeTransferHandler(IRecipeTransferHandlerHelper handlerHelper)
public java.lang.Class<net.minecraft.inventory.ContainerPlayer> getContainerClass()
IRecipeTransferHandlergetContainerClass in interface IRecipeTransferHandler<net.minecraft.inventory.ContainerPlayer>public java.lang.String getRecipeCategoryUid()
IRecipeTransferHandlergetRecipeCategoryUid in interface IRecipeTransferHandler<net.minecraft.inventory.ContainerPlayer>@Nullable public IRecipeTransferError transferRecipe(net.minecraft.inventory.ContainerPlayer container, IRecipeLayout recipeLayout, net.minecraft.entity.player.EntityPlayer player, boolean maxTransfer, boolean doTransfer)
transferRecipe in interface IRecipeTransferHandler<net.minecraft.inventory.ContainerPlayer>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