Class EntryButtonWidget

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

public class EntryButtonWidget extends com.supermartijn642.core.gui.widget.BaseWidget
Created 2/3/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
    EntryButtonWidget(int x, int y, int width, int height, Supplier<ChiselingEntry> entrySupplier, Supplier<ChiselingEntry> selectedEntrySupplier, Runnable onClick, Supplier<Boolean> connecting)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.network.chat.Component
     
    boolean
    mousePressed(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, addWidgets, charTyped, discard, getTooltips, height, initialize, isFocused, keyPressed, keyReleased, left, mouseReleased, 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

  • Method Details

    • 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