Class JEIBlockHeatPropertiesCategory

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

public class JEIBlockHeatPropertiesCategory extends AbstractPNCCategory<HeatPropertiesRecipe>
  • Constructor Details

    • JEIBlockHeatPropertiesCategory

      public JEIBlockHeatPropertiesCategory()
  • Method Details

    • getAllRecipes

      public static List<HeatPropertiesRecipe> getAllRecipes()
    • setRecipe

      public void setRecipe(mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, HeatPropertiesRecipe recipe, mezz.jei.api.recipe.IFocusGroup focuses)
      Description copied from interface: mezz.jei.api.recipe.category.IRecipeCategory
      Sets all the recipe's ingredients by filling out an instance of IRecipeLayoutBuilder. This is used by JEI for lookups, to figure out what ingredients are inputs and outputs for a recipe.
    • draw

      public void draw(HeatPropertiesRecipe recipe, mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, com.mojang.blaze3d.vertex.PoseStack matrixStack, double mouseX, double mouseY)
      Description copied from interface: mezz.jei.api.recipe.category.IRecipeCategory
      Draw extras or additional info about the recipe. Use the mouse position for things like button highlights. Tooltips are handled by IRecipeCategory.getTooltipStrings(Object, IRecipeSlotsView, double, double)
      Parameters:
      recipe - the current recipe being drawn.
      recipeSlotsView - a view of the current recipe slots being drawn.
      matrixStack - the current PoseStack for rendering.
      mouseX - the X position of the mouse, relative to the recipe.
      mouseY - the Y position of the mouse, relative to the recipe.
      See Also:
      • for a simple class for drawing things.
      • for useful functions.
      • for information about the ingredients that are currently being drawn.
    • handleInput

      public boolean handleInput(HeatPropertiesRecipe recipe, double mouseX, double mouseY, com.mojang.blaze3d.platform.InputConstants.Key input)
      Description copied from interface: mezz.jei.api.recipe.category.IRecipeCategory
      Called when a player clicks the recipe. Useful for implementing buttons, hyperlinks, and other interactions to your recipe.
      Parameters:
      recipe - the currently hovered recipe
      mouseX - the X position of the mouse, relative to the recipe.
      mouseY - the Y position of the mouse, relative to the recipe.
      input - the current input
      Returns:
      true if the input was handled, false otherwise
    • getTooltipStrings

      public List<net.minecraft.network.chat.Component> getTooltipStrings(HeatPropertiesRecipe recipe, mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, double mouseX, double mouseY)
      Description copied from interface: mezz.jei.api.recipe.category.IRecipeCategory
      Get the tooltip for whatever is under the mouse. Ingredient tooltips are already handled by JEI, this is for anything else. To add to ingredient tooltips, see IRecipeSlotBuilder.addTooltipCallback(IRecipeSlotTooltipCallback)
      Parameters:
      recipe - the current recipe being drawn.
      recipeSlotsView - a view of the current recipe slots being drawn.
      mouseX - the X position of the mouse, relative to the recipe.
      mouseY - the Y position of the mouse, relative to the recipe.
      Returns:
      tooltip strings. If there is no tooltip at this position, return an empty list.