Class ProgrammerTransferHandler
java.lang.Object
me.desht.pneumaticcraft.common.thirdparty.jei.transfer.ProgrammerTransferHandler
- All Implemented Interfaces:
mezz.jei.api.recipe.transfer.IRecipeTransferHandler<ProgrammerMenu,net.minecraft.world.item.crafting.Recipe>
public class ProgrammerTransferHandler
extends Object
implements mezz.jei.api.recipe.transfer.IRecipeTransferHandler<ProgrammerMenu,net.minecraft.world.item.crafting.Recipe>
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionProgrammerTransferHandler(mezz.jei.api.recipe.transfer.IRecipeTransferHandlerHelper transferHelper) -
Method Summary
Modifier and TypeMethodDescriptionThe container that this recipe transfer handler can use.Class<net.minecraft.world.item.crafting.Recipe>The recipe that this recipe transfer handler can use.@Nullable mezz.jei.api.recipe.transfer.IRecipeTransferErrortransferRecipe(ProgrammerMenu container, net.minecraft.world.item.crafting.Recipe recipe, mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlots, net.minecraft.world.entity.player.Player player, boolean maxTransfer, boolean doTransfer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface mezz.jei.api.recipe.transfer.IRecipeTransferHandler
transferRecipe
-
Constructor Details
-
ProgrammerTransferHandler
public ProgrammerTransferHandler(mezz.jei.api.recipe.transfer.IRecipeTransferHandlerHelper transferHelper)
-
-
Method Details
-
getContainerClass
Description copied from interface:mezz.jei.api.recipe.transfer.IRecipeTransferHandlerThe container that this recipe transfer handler can use.- Specified by:
getContainerClassin interfacemezz.jei.api.recipe.transfer.IRecipeTransferHandler<ProgrammerMenu,net.minecraft.world.item.crafting.Recipe>
-
getRecipeClass
Description copied from interface:mezz.jei.api.recipe.transfer.IRecipeTransferHandlerThe recipe that this recipe transfer handler can use.- Specified by:
getRecipeClassin interfacemezz.jei.api.recipe.transfer.IRecipeTransferHandler<ProgrammerMenu,net.minecraft.world.item.crafting.Recipe>
-
transferRecipe
@Nullable public @Nullable mezz.jei.api.recipe.transfer.IRecipeTransferError transferRecipe(ProgrammerMenu container, net.minecraft.world.item.crafting.Recipe recipe, mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlots, net.minecraft.world.entity.player.Player player, boolean maxTransfer, boolean doTransfer) - Specified by:
transferRecipein interfacemezz.jei.api.recipe.transfer.IRecipeTransferHandler<ProgrammerMenu,net.minecraft.world.item.crafting.Recipe> - Parameters:
container- the container to act onrecipe- the raw recipe instancerecipeSlots- the view of the recipe slots, 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- Returns:
- a recipe transfer error if the recipe can't be transferred. Return null on success.
-