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
FieldsModifier and TypeFieldDescriptionprotected final mezz.jei.api.gui.drawable.IDrawableFields inherited from class mezz.jei.library.gui.widgets.AbstractScrollWidget
area, contentsArea -
Constructor Summary
ConstructorsConstructorDescriptionCustomScrollGridRecipeWidget(int columns, int visibleRows, List<mezz.jei.api.gui.ingredient.IRecipeSlotDrawable> slots, mezz.jei.api.gui.drawable.IDrawable slotBackground) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddrawContents(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, setPositionMethods inherited from class mezz.jei.library.gui.widgets.AbstractScrollWidget
calculateScrollArea, calculateScrollbarMarkerArea, drawWidget, getArea, getPosition, getScrollBoxScrollbarExtraWidth, getScrollOffsetY, handleInput, handleMouseDragged, handleMouseScrolledMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface mezz.jei.api.gui.inputs.IJeiInputHandler
getArea, handleInput, handleMouseDragged, handleMouseMoved, handleMouseScrolledMethods inherited from interface mezz.jei.api.gui.placement.IPlaceable
setPositionMethods 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:
drawContentsin classmezz.jei.library.gui.widgets.ScrollGridRecipeWidget
-