Class JEIPressureChamberRecipeCategory

java.lang.Object
me.desht.pneumaticcraft.common.thirdparty.jei.AbstractPNCCategory<PressureChamberRecipe>
me.desht.pneumaticcraft.common.thirdparty.jei.JEIPressureChamberRecipeCategory
All Implemented Interfaces:
mezz.jei.api.recipe.category.IRecipeCategory<PressureChamberRecipe>

public class JEIPressureChamberRecipeCategory extends AbstractPNCCategory<PressureChamberRecipe>
  • Method Details

    • getMatchingCycle

      protected static Optional<PressureChamberRecipe.SlotCycle> getMatchingCycle(PressureChamberRecipe recipe, mezz.jei.api.recipe.IFocus<net.minecraft.world.item.ItemStack> focus)
      Looks for the first slot that has more than one stack and has a match for the given item ignoring NBT.
      Returns:
      empty iff no match was found in a slot with more than one stack, or the matching slot cycle otherwise.
    • applyOverrides

      protected static List<List<net.minecraft.world.item.ItemStack>> applyOverrides(boolean isInput, List<List<net.minecraft.world.item.ItemStack>> slotCycles, Map<PressureChamberRecipe.RecipeSlot,List<Integer>> slotCycleOverrides)
      Returns:
      slot cycles with the overrides applied if applicable.
    • setRecipe

      public void setRecipe(mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, PressureChamberRecipe recipe, mezz.jei.api.recipe.IFocusGroup focuses)
    • draw

      public void draw(PressureChamberRecipe recipe, mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, com.mojang.blaze3d.vertex.PoseStack matrixStack, double mouseX, double mouseY)
    • getTooltipStrings

      public List<net.minecraft.network.chat.Component> getTooltipStrings(PressureChamberRecipe recipe, mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, double mouseX, double mouseY)