Class BrainsweepRecipeCategory

java.lang.Object
at.petrak.hexcasting.forge.interop.jei.BrainsweepRecipeCategory
All Implemented Interfaces:
mezz.jei.api.recipe.category.IRecipeCategory<at.petrak.hexcasting.common.recipe.BrainsweepRecipe>

public class BrainsweepRecipeCategory extends Object implements mezz.jei.api.recipe.category.IRecipeCategory<at.petrak.hexcasting.common.recipe.BrainsweepRecipe>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.resources.ResourceLocation
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    BrainsweepRecipeCategory(mezz.jei.api.helpers.IGuiHelper guiHelper)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    draw(@NotNull at.petrak.hexcasting.common.recipe.BrainsweepRecipe recipe, @NotNull mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, @NotNull com.mojang.blaze3d.vertex.PoseStack stack, double mouseX, double mouseY)
    Draw extras or additional info about the recipe.
    @NotNull mezz.jei.api.gui.drawable.IDrawable
    Returns the drawable background for a single recipe in this category.
    @NotNull mezz.jei.api.gui.drawable.IDrawable
    Icon for the category tab.
    @NotNull Class<? extends at.petrak.hexcasting.common.recipe.BrainsweepRecipe>
    Returns the class of recipes that this recipe category handles.
    @NotNull mezz.jei.api.recipe.RecipeType<at.petrak.hexcasting.common.recipe.BrainsweepRecipe>
     
    @NotNull net.minecraft.network.chat.Component
    Returns a text component representing the name of this recipe type.
    @NotNull List<net.minecraft.network.chat.Component>
    getTooltipStrings(@NotNull at.petrak.hexcasting.common.recipe.BrainsweepRecipe recipe, @NotNull mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, double mouseX, double mouseY)
    Get the tooltip for whatever is under the mouse.
    @NotNull net.minecraft.resources.ResourceLocation
    Returns a unique ID for this recipe category.
    void
    setRecipe(@NotNull mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, @NotNull at.petrak.hexcasting.common.recipe.BrainsweepRecipe recipe, @NotNull mezz.jei.api.recipe.IFocusGroup focuses)
    Sets all the recipe's ingredients by filling out an instance of IRecipeLayoutBuilder.

    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.category.IRecipeCategory

    draw, getRegistryName, getTooltipStrings, handleClick, handleInput, isHandled, setIngredients, setRecipe, setRecipe
  • Field Details

    • UID

      public static final net.minecraft.resources.ResourceLocation UID
  • Constructor Details

    • BrainsweepRecipeCategory

      public BrainsweepRecipeCategory(mezz.jei.api.helpers.IGuiHelper guiHelper)
  • Method Details

    • getTitle

      @NotNull public @NotNull net.minecraft.network.chat.Component getTitle()
      Description copied from interface: mezz.jei.api.recipe.category.IRecipeCategory
      Returns a text component representing the name of this recipe type. Drawn at the top of the recipe GUI pages for this category.
      Specified by:
      getTitle in interface mezz.jei.api.recipe.category.IRecipeCategory<at.petrak.hexcasting.common.recipe.BrainsweepRecipe>
    • getBackground

      @NotNull public @NotNull mezz.jei.api.gui.drawable.IDrawable getBackground()
      Description copied from interface: mezz.jei.api.recipe.category.IRecipeCategory
      Returns the drawable background for a single recipe in this category. The size of the background determines how recipes are laid out by JEI, make sure it is the right size to contains everything being displayed.
      Specified by:
      getBackground in interface mezz.jei.api.recipe.category.IRecipeCategory<at.petrak.hexcasting.common.recipe.BrainsweepRecipe>
    • getIcon

      @NotNull public @NotNull mezz.jei.api.gui.drawable.IDrawable getIcon()
      Description copied from interface: mezz.jei.api.recipe.category.IRecipeCategory
      Icon for the category tab. You can use IGuiHelper.createDrawableIngredient(IIngredientType, Object) to create a drawable from an ingredient.
      Specified by:
      getIcon in interface mezz.jei.api.recipe.category.IRecipeCategory<at.petrak.hexcasting.common.recipe.BrainsweepRecipe>
      Returns:
      icon to draw on the category tab, max size is 16x16 pixels.
    • getTooltipStrings

      @NotNull public @NotNull List<net.minecraft.network.chat.Component> getTooltipStrings(@NotNull @NotNull at.petrak.hexcasting.common.recipe.BrainsweepRecipe recipe, @NotNull @NotNull 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)
      Specified by:
      getTooltipStrings in interface mezz.jei.api.recipe.category.IRecipeCategory<at.petrak.hexcasting.common.recipe.BrainsweepRecipe>
      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.
    • draw

      public void draw(@NotNull @NotNull at.petrak.hexcasting.common.recipe.BrainsweepRecipe recipe, @NotNull @NotNull mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, @NotNull @NotNull com.mojang.blaze3d.vertex.PoseStack stack, 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)
      Specified by:
      draw in interface mezz.jei.api.recipe.category.IRecipeCategory<at.petrak.hexcasting.common.recipe.BrainsweepRecipe>
      Parameters:
      recipe - the current recipe being drawn.
      recipeSlotsView - a view of the current recipe slots being drawn.
      stack - 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.
    • setRecipe

      public void setRecipe(@NotNull @NotNull mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, @NotNull @NotNull at.petrak.hexcasting.common.recipe.BrainsweepRecipe recipe, @NotNull @NotNull 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.
      Specified by:
      setRecipe in interface mezz.jei.api.recipe.category.IRecipeCategory<at.petrak.hexcasting.common.recipe.BrainsweepRecipe>
    • getRecipeType

      @NotNull public @NotNull mezz.jei.api.recipe.RecipeType<at.petrak.hexcasting.common.recipe.BrainsweepRecipe> getRecipeType()
      Specified by:
      getRecipeType in interface mezz.jei.api.recipe.category.IRecipeCategory<at.petrak.hexcasting.common.recipe.BrainsweepRecipe>
      Returns:
      the type of recipe that this category handles.
    • getUid

      @NotNull public @NotNull net.minecraft.resources.ResourceLocation getUid()
      Description copied from interface: mezz.jei.api.recipe.category.IRecipeCategory
      Returns a unique ID for this recipe category. Referenced from recipes to identify which recipe category they belong to.
      Specified by:
      getUid in interface mezz.jei.api.recipe.category.IRecipeCategory<at.petrak.hexcasting.common.recipe.BrainsweepRecipe>
    • getRecipeClass

      @NotNull public @NotNull Class<? extends at.petrak.hexcasting.common.recipe.BrainsweepRecipe> getRecipeClass()
      Description copied from interface: mezz.jei.api.recipe.category.IRecipeCategory
      Returns the class of recipes that this recipe category handles.
      Specified by:
      getRecipeClass in interface mezz.jei.api.recipe.category.IRecipeCategory<at.petrak.hexcasting.common.recipe.BrainsweepRecipe>