Class LootCategory

java.lang.Object
net.darkhax.simplelootviewer.common.impl.jei.LootCategory
All Implemented Interfaces:
mezz.jei.api.recipe.category.IRecipeCategory<TableInfo>

public class LootCategory extends Object implements mezz.jei.api.recipe.category.IRecipeCategory<TableInfo>
  • Constructor Summary

    Constructors
    Constructor
    Description
    LootCategory(mezz.jei.api.recipe.RecipeType<TableInfo> type, mezz.jei.api.helpers.IGuiHelper guiHelper, Function<mezz.jei.api.helpers.IGuiHelper,mezz.jei.api.gui.drawable.IDrawable> icon)
     
    LootCategory(mezz.jei.api.recipe.RecipeType<TableInfo> recipeType, LootType type, mezz.jei.api.helpers.IGuiHelper guiHelper)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    draw(@NotNull TableInfo recipe, @NotNull mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, @NotNull net.minecraft.client.gui.GuiGraphics graphics, double mouseX, double mouseY)
     
    int
     
    @Nullable mezz.jei.api.gui.drawable.IDrawable
     
    @NotNull mezz.jei.api.recipe.RecipeType<TableInfo>
     
    @NotNull net.minecraft.network.chat.Component
     
    int
     
    static String
    loopingString(String input, int maxLength)
     
    void
    setRecipe(@NotNull mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, @NotNull TableInfo recipe, @NotNull mezz.jei.api.recipe.IFocusGroup focuses)
     

    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

    createRecipeExtras, createRecipeExtras, getBackground, getCodec, getRegistryName, getTooltip, getTooltipStrings, handleInput, isHandled, needsRecipeBorder, onDisplayedIngredientsUpdate
  • Constructor Details

    • LootCategory

      public LootCategory(mezz.jei.api.recipe.RecipeType<TableInfo> recipeType, LootType type, mezz.jei.api.helpers.IGuiHelper guiHelper)
    • LootCategory

      public LootCategory(mezz.jei.api.recipe.RecipeType<TableInfo> type, mezz.jei.api.helpers.IGuiHelper guiHelper, Function<mezz.jei.api.helpers.IGuiHelper,mezz.jei.api.gui.drawable.IDrawable> icon)
  • Method Details

    • getRecipeType

      @NotNull public @NotNull mezz.jei.api.recipe.RecipeType<TableInfo> getRecipeType()
      Specified by:
      getRecipeType in interface mezz.jei.api.recipe.category.IRecipeCategory<TableInfo>
    • getTitle

      @NotNull public @NotNull net.minecraft.network.chat.Component getTitle()
      Specified by:
      getTitle in interface mezz.jei.api.recipe.category.IRecipeCategory<TableInfo>
    • getWidth

      public int getWidth()
      Specified by:
      getWidth in interface mezz.jei.api.recipe.category.IRecipeCategory<TableInfo>
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in interface mezz.jei.api.recipe.category.IRecipeCategory<TableInfo>
    • getIcon

      @Nullable public @Nullable mezz.jei.api.gui.drawable.IDrawable getIcon()
      Specified by:
      getIcon in interface mezz.jei.api.recipe.category.IRecipeCategory<TableInfo>
    • setRecipe

      public void setRecipe(@NotNull @NotNull mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, @NotNull @NotNull TableInfo recipe, @NotNull @NotNull mezz.jei.api.recipe.IFocusGroup focuses)
      Specified by:
      setRecipe in interface mezz.jei.api.recipe.category.IRecipeCategory<TableInfo>
    • draw

      public void draw(@NotNull @NotNull TableInfo recipe, @NotNull @NotNull mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, @NotNull @NotNull net.minecraft.client.gui.GuiGraphics graphics, double mouseX, double mouseY)
      Specified by:
      draw in interface mezz.jei.api.recipe.category.IRecipeCategory<TableInfo>
    • loopingString

      public static String loopingString(String input, int maxLength)