Class WorldGenCategory

java.lang.Object
jeresources.jei.BlankJEIRecipeCategory<WorldGenWrapper>
jeresources.jei.worldgen.WorldGenCategory
All Implemented Interfaces:
mezz.jei.api.recipe.category.IRecipeCategory<WorldGenWrapper>

public class WorldGenCategory extends BlankJEIRecipeCategory<WorldGenWrapper>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static int
     
    protected static int
     
    protected static int
     
    protected static int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    draw​(WorldGenWrapper recipe, com.mojang.blaze3d.vertex.PoseStack poseStack, double mouseX, double mouseY)
    Draw extras or additional info about the recipe.
    mezz.jei.api.gui.drawable.IDrawable
    Returns the drawable background for a single recipe in this category.
     
    net.minecraft.network.chat.Component
    Returns a text component representing the name of this recipe type.
    net.minecraft.resources.ResourceLocation
    Returns a unique ID for this recipe category.
    void
    setRecipe​(mezz.jei.api.gui.IRecipeLayout recipeLayout, WorldGenWrapper recipeWrapper, mezz.jei.api.ingredients.IIngredients ingredients)
    Set the IRecipeLayout properties from the recipe.

    Methods inherited from class jeresources.jei.BlankJEIRecipeCategory

    getIcon, getTooltipStrings, setIngredients

    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

    handleClick, handleInput, isHandled
  • Field Details

  • Constructor Details

    • WorldGenCategory

      public WorldGenCategory()
  • Method Details

    • getUid

      @Nonnull public 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.
      See Also:
      for vanilla examples
    • getTitle

      @Nonnull public 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.
    • getBackground

      @Nonnull public 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.
    • getRecipeClass

      public Class<? extends WorldGenWrapper> getRecipeClass()
    • draw

      public void draw​(WorldGenWrapper recipe, com.mojang.blaze3d.vertex.PoseStack poseStack, 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, double, double)
      Specified by:
      draw in interface mezz.jei.api.recipe.category.IRecipeCategory<WorldGenWrapper>
      Overrides:
      draw in class BlankJEIRecipeCategory<WorldGenWrapper>
      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.
    • setRecipe

      public void setRecipe​(@Nonnull mezz.jei.api.gui.IRecipeLayout recipeLayout, @Nonnull WorldGenWrapper recipeWrapper, @Nonnull mezz.jei.api.ingredients.IIngredients ingredients)
      Description copied from interface: mezz.jei.api.recipe.category.IRecipeCategory
      Set the IRecipeLayout properties from the recipe.
      Parameters:
      recipeLayout - the layout that needs its properties set.
      recipeWrapper - the recipe, for extra information.
      ingredients - the ingredients, already set earlier by IRecipeCategory.setIngredients(T, mezz.jei.api.ingredients.IIngredients)