Package com.simibubi.create.compat.jei
Class BlueprintTransferHandler
java.lang.Object
com.simibubi.create.compat.jei.BlueprintTransferHandler
- All Implemented Interfaces:
mezz.jei.api.recipe.transfer.IRecipeTransferHandler<BlueprintContainer,net.minecraft.world.item.crafting.CraftingRecipe>
@ParametersAreNonnullByDefault
public class BlueprintTransferHandler
extends Object
implements mezz.jei.api.recipe.transfer.IRecipeTransferHandler<BlueprintContainer,net.minecraft.world.item.crafting.CraftingRecipe>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe container that this recipe transfer handler can use.Class<net.minecraft.world.item.crafting.CraftingRecipe>The recipe that this recipe transfer handler can use.@Nullable mezz.jei.api.recipe.transfer.IRecipeTransferErrortransferRecipe(BlueprintContainer container, net.minecraft.world.item.crafting.CraftingRecipe craftingRecipe, 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
-
BlueprintTransferHandler
public BlueprintTransferHandler()
-
-
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<BlueprintContainer,net.minecraft.world.item.crafting.CraftingRecipe>
-
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<BlueprintContainer,net.minecraft.world.item.crafting.CraftingRecipe>
-
transferRecipe
@Nullable public @Nullable mezz.jei.api.recipe.transfer.IRecipeTransferError transferRecipe(BlueprintContainer container, net.minecraft.world.item.crafting.CraftingRecipe craftingRecipe, 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<BlueprintContainer,net.minecraft.world.item.crafting.CraftingRecipe> - Parameters:
container- the container to act oncraftingRecipe- 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.
-