Class DungeonWrapper

java.lang.Object
jeresources.jei.dungeon.DungeonWrapper
All Implemented Interfaces:
mezz.jei.api.gui.ingredient.ITooltipCallback<net.minecraft.world.item.ItemStack>, mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension

public class DungeonWrapper extends Object implements mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension, mezz.jei.api.gui.ingredient.ITooltipCallback<net.minecraft.world.item.ItemStack>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    amountOfItems​(mezz.jei.api.recipe.IFocus<net.minecraft.world.item.ItemStack> focus)
     
    void
    drawInfo​(int recipeWidth, int recipeHeight, com.mojang.blaze3d.vertex.PoseStack poseStack, double mouseX, double mouseY)
    Draw additional info about the recipe.
    List<net.minecraft.world.item.ItemStack>
    getItems​(mezz.jei.api.recipe.IFocus<net.minecraft.world.item.ItemStack> focus, int slot, int slots)
     
    void
    onTooltip​(int slotIndex, boolean input, net.minecraft.world.item.ItemStack ingredient, List<net.minecraft.network.chat.Component> tooltip)
    Change the tooltip for an ingredient.
    void
     
    void
    setIngredients​(mezz.jei.api.ingredients.IIngredients ingredients)
    Gets all the recipe's ingredients by filling out an instance of IIngredients.

    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.extensions.IRecipeCategoryExtension

    getTooltipStrings, handleClick, handleInput
  • Field Details

  • Constructor Details

    • DungeonWrapper

      public DungeonWrapper​(DungeonEntry chest)
  • Method Details

    • setIngredients

      public void setIngredients​(@Nonnull mezz.jei.api.ingredients.IIngredients ingredients)
      Description copied from interface: mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension
      Gets all the recipe's ingredients by filling out an instance of IIngredients.
      Specified by:
      setIngredients in interface mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension
    • amountOfItems

      public int amountOfItems​(mezz.jei.api.recipe.IFocus<net.minecraft.world.item.ItemStack> focus)
    • getItems

      public List<net.minecraft.world.item.ItemStack> getItems​(mezz.jei.api.recipe.IFocus<net.minecraft.world.item.ItemStack> focus, int slot, int slots)
    • drawInfo

      public void drawInfo​(int recipeWidth, int recipeHeight, com.mojang.blaze3d.vertex.PoseStack poseStack, double mouseX, double mouseY)
      Description copied from interface: mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension
      Draw additional info about the recipe. Use the mouse position for things like button highlights. Tooltips are handled by IRecipeCategoryExtension.getTooltipStrings(double, double)
      Specified by:
      drawInfo in interface mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension
      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.
    • onTooltip

      public void onTooltip​(int slotIndex, boolean input, @Nonnull net.minecraft.world.item.ItemStack ingredient, @Nonnull List<net.minecraft.network.chat.Component> tooltip)
      Description copied from interface: mezz.jei.api.gui.ingredient.ITooltipCallback
      Change the tooltip for an ingredient.
      Specified by:
      onTooltip in interface mezz.jei.api.gui.ingredient.ITooltipCallback<net.minecraft.world.item.ItemStack>
    • resetLid

      public void resetLid()