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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    The 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.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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface mezz.jei.api.recipe.transfer.IRecipeTransferHandler

    transferRecipe
  • Constructor Details

    • BlueprintTransferHandler

      public BlueprintTransferHandler()
  • Method Details

    • getContainerClass

      public Class<BlueprintContainer> getContainerClass()
      Description copied from interface: mezz.jei.api.recipe.transfer.IRecipeTransferHandler
      The container that this recipe transfer handler can use.
      Specified by:
      getContainerClass in interface mezz.jei.api.recipe.transfer.IRecipeTransferHandler<BlueprintContainer,net.minecraft.world.item.crafting.CraftingRecipe>
    • getRecipeClass

      public Class<net.minecraft.world.item.crafting.CraftingRecipe> getRecipeClass()
      Description copied from interface: mezz.jei.api.recipe.transfer.IRecipeTransferHandler
      The recipe that this recipe transfer handler can use.
      Specified by:
      getRecipeClass in interface mezz.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:
      transferRecipe in interface mezz.jei.api.recipe.transfer.IRecipeTransferHandler<BlueprintContainer,net.minecraft.world.item.crafting.CraftingRecipe>
      Parameters:
      container - the container to act on
      craftingRecipe - the raw recipe instance
      recipeSlots - the view of the recipe slots, with information about the ingredients
      player - the player, to do the slot manipulation
      maxTransfer - if true, transfer as many items as possible. if false, transfer one set
      doTransfer - 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.