Class EntryPreviewWidget

java.lang.Object
com.supermartijn642.core.gui.widget.BaseWidget
com.supermartijn642.rechiseled.screen.EntryPreviewWidget
All Implemented Interfaces:
com.supermartijn642.core.gui.widget.Widget

public class EntryPreviewWidget extends com.supermartijn642.core.gui.widget.BaseWidget
Created 25/12/2021 by SuperMartijn642
  • Field Summary

    Fields inherited from class com.supermartijn642.core.gui.widget.BaseWidget

    focusedWidget, height, nextNarration, widgets, width, x, y
  • Constructor Summary

    Constructors
    Constructor
    Description
    EntryPreviewWidget(int x, int y, int width, int height, Supplier<net.minecraft.world.item.Item> item, Supplier<Integer> previewMode)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    net.minecraft.network.chat.Component
     
    boolean
    mousePressed(int mouseX, int mouseY, int button, boolean hasBeenHandled)
     
    boolean
    mouseReleased(int mouseX, int mouseY, int button, boolean hasBeenHandled)
     
    void
    render(com.supermartijn642.core.gui.widget.WidgetRenderContext context, int mouseX, int mouseY)
     

    Methods inherited from class com.supermartijn642.core.gui.widget.BaseWidget

    addWidget, charTyped, discard, getTooltips, height, initialize, isFocused, keyPressed, keyReleased, left, mouseScrolled, removeWidget, renderBackground, renderForeground, renderOverlay, renderTooltips, setFocused, top, update, width

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EntryPreviewWidget

      public EntryPreviewWidget(int x, int y, int width, int height, Supplier<net.minecraft.world.item.Item> item, Supplier<Integer> previewMode)
  • Method Details

    • addWidgets

      protected void addWidgets()
      Overrides:
      addWidgets in class com.supermartijn642.core.gui.widget.BaseWidget
    • getNarrationMessage

      public net.minecraft.network.chat.Component getNarrationMessage()
    • render

      public void render(com.supermartijn642.core.gui.widget.WidgetRenderContext context, int mouseX, int mouseY)
      Specified by:
      render in interface com.supermartijn642.core.gui.widget.Widget
      Overrides:
      render in class com.supermartijn642.core.gui.widget.BaseWidget
    • mousePressed

      public boolean mousePressed(int mouseX, int mouseY, int button, boolean hasBeenHandled)
      Specified by:
      mousePressed in interface com.supermartijn642.core.gui.widget.Widget
      Overrides:
      mousePressed in class com.supermartijn642.core.gui.widget.BaseWidget
    • mouseReleased

      public boolean mouseReleased(int mouseX, int mouseY, int button, boolean hasBeenHandled)
      Specified by:
      mouseReleased in interface com.supermartijn642.core.gui.widget.Widget
      Overrides:
      mouseReleased in class com.supermartijn642.core.gui.widget.BaseWidget