Class CustomScrollGridRecipeWidget

java.lang.Object
mezz.jei.library.gui.widgets.AbstractScrollWidget
mezz.jei.library.gui.widgets.ScrollGridRecipeWidget
petrolpark.mc.library.compat.jei.widget.CustomScrollGridRecipeWidget
All Implemented Interfaces:
mezz.jei.api.gui.inputs.IJeiInputHandler, mezz.jei.api.gui.placement.IPlaceable<mezz.jei.api.gui.widgets.IScrollGridWidget>, mezz.jei.api.gui.widgets.IRecipeWidget, mezz.jei.api.gui.widgets.IScrollGridWidget, mezz.jei.api.gui.widgets.ISlottedRecipeWidget

public class CustomScrollGridRecipeWidget extends mezz.jei.library.gui.widgets.ScrollGridRecipeWidget
Modification of ScrollGridRecipeWidget to allow custom slot backgrounds
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final mezz.jei.api.gui.drawable.IDrawable
     

    Fields inherited from class mezz.jei.library.gui.widgets.AbstractScrollWidget

    area, contentsArea
  • Constructor Summary

    Constructors
    Constructor
    Description
    CustomScrollGridRecipeWidget(int columns, int visibleRows, List<mezz.jei.api.gui.ingredient.IRecipeSlotDrawable> slots, mezz.jei.api.gui.drawable.IDrawable slotBackground)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    drawContents(net.minecraft.client.gui.GuiGraphics guiGraphics, double mouseX, double mouseY, float scrollOffsetY)
     

    Methods inherited from class mezz.jei.library.gui.widgets.ScrollGridRecipeWidget

    calculateScrollAmount, calculateSize, create, getHeight, getHiddenAmount, getScreenRectangle, getSlotUnderMouse, getVisibleAmount, getWidth, setPosition

    Methods inherited from class mezz.jei.library.gui.widgets.AbstractScrollWidget

    calculateScrollArea, calculateScrollbarMarkerArea, drawWidget, getArea, getPosition, getScrollBoxScrollbarExtraWidth, getScrollOffsetY, handleInput, handleMouseDragged, handleMouseScrolled

    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.gui.inputs.IJeiInputHandler

    getArea, handleInput, handleMouseDragged, handleMouseMoved, handleMouseScrolled

    Methods inherited from interface mezz.jei.api.gui.placement.IPlaceable

    setPosition

    Methods inherited from interface mezz.jei.api.gui.widgets.IRecipeWidget

    draw, drawWidget, getPosition, getTooltip, tick
  • Field Details

    • slotBackground

      protected final mezz.jei.api.gui.drawable.IDrawable slotBackground
  • Constructor Details

    • CustomScrollGridRecipeWidget

      public CustomScrollGridRecipeWidget(int columns, int visibleRows, List<mezz.jei.api.gui.ingredient.IRecipeSlotDrawable> slots, mezz.jei.api.gui.drawable.IDrawable slotBackground)
  • Method Details

    • drawContents

      protected void drawContents(@Nonnull net.minecraft.client.gui.GuiGraphics guiGraphics, double mouseX, double mouseY, float scrollOffsetY)
      Overrides:
      drawContents in class mezz.jei.library.gui.widgets.ScrollGridRecipeWidget