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
FieldsFields inherited from class com.supermartijn642.core.gui.widget.BaseWidget
focusedWidget, height, nextNarration, widgets, width, x, y -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.network.chat.Componentvoidrender(com.supermartijn642.core.gui.widget.WidgetRenderContext context, int mouseX, int mouseY) Methods inherited from class com.supermartijn642.core.gui.widget.premade.AbstractButtonWidget
mousePressed, onPress, playClickSoundMethods 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
-
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:
renderin interfacecom.supermartijn642.core.gui.widget.Widget- Overrides:
renderin classcom.supermartijn642.core.gui.widget.BaseWidget
-
getNarrationMessage
public net.minecraft.network.chat.Component getNarrationMessage()
-