Class ConnectingToggleWidget

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

public class ConnectingToggleWidget extends com.supermartijn642.core.gui.widget.premade.AbstractButtonWidget
Created 26/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
    ConnectingToggleWidget(int x, int y, int width, int height, Supplier<Boolean> connecting, Supplier<ChiselingEntry> currentEntry, Runnable onPress)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.network.chat.Component
     
    protected void
    getTooltips(Consumer<net.minecraft.network.chat.Component> tooltips)
     
    void
    render(com.supermartijn642.core.gui.widget.WidgetRenderContext context, int mouseX, int mouseY)
     

    Methods inherited from class com.supermartijn642.core.gui.widget.premade.AbstractButtonWidget

    mousePressed, onPress, playClickSound

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

    addWidget, addWidgets, charTyped, discard, 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()
    • getTooltips

      protected void getTooltips(Consumer<net.minecraft.network.chat.Component> tooltips)
      Overrides:
      getTooltips in class com.supermartijn642.core.gui.widget.BaseWidget
    • 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