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>
-
Method Summary
Modifier and TypeMethodDescriptionapplyOverrides(boolean isInput, List<List<net.minecraft.world.item.ItemStack>> slotCycles, Map<PressureChamberRecipe.RecipeSlot, List<Integer>> slotCycleOverrides) voiddraw(PressureChamberRecipe recipe, mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, com.mojang.blaze3d.vertex.PoseStack matrixStack, double mouseX, double mouseY) 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.List<net.minecraft.network.chat.Component>getTooltipStrings(PressureChamberRecipe recipe, mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, double mouseX, double mouseY) voidsetRecipe(mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, PressureChamberRecipe recipe, mezz.jei.api.recipe.IFocusGroup focuses) Methods inherited from class me.desht.pneumaticcraft.common.thirdparty.jei.AbstractPNCCategory
getBackground, getIcon, getRecipeType, getTitleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface mezz.jei.api.recipe.category.IRecipeCategory
getHeight, getRegistryName, getWidth, handleInput, isHandled
-
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)
-