public class JEIPressureChamberRecipeCategory extends AbstractPNCCategory<PressureChamberRecipe>
| Modifier and Type | Method and Description |
|---|---|
protected static java.util.List<java.util.List<net.minecraft.item.ItemStack>> |
applyOverrides(boolean isInput,
java.util.List<java.util.List<net.minecraft.item.ItemStack>> slotCycles,
java.util.Map<PressureChamberRecipe.RecipeSlot,java.util.List<java.lang.Integer>> slotCycleOverrides) |
void |
draw(PressureChamberRecipe recipe,
com.mojang.blaze3d.matrix.MatrixStack matrixStack,
double mouseX,
double mouseY)
Draw extras or additional info about the recipe.
|
protected static java.util.Optional<PressureChamberRecipe.SlotCycle> |
getMatchingCycle(mezz.jei.api.ingredients.IIngredients ingredients,
mezz.jei.api.recipe.IFocus<net.minecraft.item.ItemStack> focus)
Looks for the first slot that has more than one stack and has a match for the given item ignoring NBT.
|
java.util.List<net.minecraft.util.text.ITextComponent> |
getTooltipStrings(PressureChamberRecipe recipe,
double mouseX,
double mouseY)
Get the tooltip for whatever's under the mouse.
|
void |
setIngredients(PressureChamberRecipe recipe,
mezz.jei.api.ingredients.IIngredients ingredients)
Sets all the recipe's ingredients by filling out an instance of
IIngredients. |
void |
setRecipe(mezz.jei.api.gui.IRecipeLayout recipeLayout,
PressureChamberRecipe recipe,
mezz.jei.api.ingredients.IIngredients ingredients)
Set the
IRecipeLayout properties from the recipe. |
getBackground, getIcon, getRecipeClass, getTitle, getTitleAsTextComponent, getUidprotected static java.util.Optional<PressureChamberRecipe.SlotCycle> getMatchingCycle(mezz.jei.api.ingredients.IIngredients ingredients, mezz.jei.api.recipe.IFocus<net.minecraft.item.ItemStack> focus)
protected static java.util.List<java.util.List<net.minecraft.item.ItemStack>> applyOverrides(boolean isInput,
java.util.List<java.util.List<net.minecraft.item.ItemStack>> slotCycles,
java.util.Map<PressureChamberRecipe.RecipeSlot,java.util.List<java.lang.Integer>> slotCycleOverrides)
public void setIngredients(PressureChamberRecipe recipe, mezz.jei.api.ingredients.IIngredients ingredients)
mezz.jei.api.recipe.category.IRecipeCategoryIIngredients.
This is used by JEI for lookups, to figure out what ingredients are inputs and outputs for a recipe.public void setRecipe(mezz.jei.api.gui.IRecipeLayout recipeLayout,
PressureChamberRecipe recipe,
mezz.jei.api.ingredients.IIngredients ingredients)
mezz.jei.api.recipe.category.IRecipeCategoryIRecipeLayout properties from the recipe.recipeLayout - the layout that needs its properties set.recipe - the recipe, for extra information.ingredients - the ingredients, already set earlier by IRecipeCategory.setIngredients(T, mezz.jei.api.ingredients.IIngredients)public void draw(PressureChamberRecipe recipe, com.mojang.blaze3d.matrix.MatrixStack matrixStack, double mouseX, double mouseY)
mezz.jei.api.recipe.category.IRecipeCategoryIRecipeCategory.getTooltipStrings(Object, double, double)mouseX - the X position of the mouse, relative to the recipe.mouseY - the Y position of the mouse, relative to the recipe.for a simple class for drawing things.,
for useful functions.public java.util.List<net.minecraft.util.text.ITextComponent> getTooltipStrings(PressureChamberRecipe recipe, double mouseX, double mouseY)
mezz.jei.api.recipe.category.IRecipeCategoryIGuiIngredientGroup.addTooltipCallback(ITooltipCallback)mouseX - the X position of the mouse, relative to the recipe.mouseY - the Y position of the mouse, relative to the recipe.