Class ToggleRotationButton

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

public class ToggleRotationButton extends com.supermartijn642.core.gui.widget.premade.AbstractButtonWidget
Created 20/04/2023 by SuperMartijn642
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static boolean
     

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

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

    Constructors
    Constructor
    Description
    ToggleRotationButton(int x, int y, int width, int height)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.network.chat.Component
     
    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, 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
  • Field Details

    • rotate

      public static boolean rotate
  • Constructor Details

    • ToggleRotationButton

      public ToggleRotationButton(int x, int y, int width, int height)
  • Method Details

    • 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
    • getNarrationMessage

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