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