public class PreviewModeButtonWidget
extends com.supermartijn642.core.gui.widget.premade.AbstractButtonWidget
| Constructor and Description |
|---|
PreviewModeButtonWidget(int x,
int y,
int width,
int height,
int mode,
java.util.function.Supplier<java.lang.Integer> currentMode,
java.util.function.Supplier<java.lang.Boolean> enabled,
java.lang.Runnable onPress) |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.util.text.ITextComponent |
getNarrationMessage() |
void |
render(int mouseX,
int mouseY) |
mousePressed, onPress, playClickSoundaddWidget, addWidgets, charTyped, discard, getTooltips, height, initialize, isFocused, keyPressed, keyReleased, left, mouseReleased, mouseScrolled, removeWidget, renderBackground, renderForeground, renderOverlay, renderTooltips, setFocused, top, update, widthpublic PreviewModeButtonWidget(int x,
int y,
int width,
int height,
int mode,
java.util.function.Supplier<java.lang.Integer> currentMode,
java.util.function.Supplier<java.lang.Boolean> enabled,
java.lang.Runnable onPress)
public net.minecraft.util.text.ITextComponent getNarrationMessage()
public void render(int mouseX,
int mouseY)
render in interface com.supermartijn642.core.gui.widget.Widgetrender in class com.supermartijn642.core.gui.widget.BaseWidget