public class WidgetRadioButton extends net.minecraft.client.gui.widget.Widget implements ITooltipProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
WidgetRadioButton.Builder<T extends WidgetRadioButton>
Builder to manage creating a collection of related radio buttons.
|
| Modifier and Type | Field and Description |
|---|---|
int |
color |
boolean |
enabled |
| Constructor and Description |
|---|
WidgetRadioButton(int x,
int y,
int color,
net.minecraft.util.text.ITextComponent text) |
WidgetRadioButton(int x,
int y,
int color,
net.minecraft.util.text.ITextComponent text,
java.util.function.Consumer<WidgetRadioButton> pressable) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTooltip(double mouseX,
double mouseY,
java.util.List<net.minecraft.util.text.ITextComponent> curTooltip,
boolean shiftPressed) |
net.minecraft.client.renderer.Rectangle2d |
getBounds() |
boolean |
isChecked() |
void |
onClick(double mouseX,
double mouseY) |
void |
renderButton(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY,
float partialTicks) |
WidgetRadioButton |
setTooltip(net.minecraft.util.text.ITextComponent tooltip) |
WidgetRadioButton |
setTooltip(java.util.List<net.minecraft.util.text.ITextComponent> tooltip) |
changeFocus, clearFGColor, clicked, createNarrationMessage, getFGColor, getHeight, getMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, render, renderBg, renderToolTip, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidthblit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLinepublic WidgetRadioButton(int x,
int y,
int color,
net.minecraft.util.text.ITextComponent text,
java.util.function.Consumer<WidgetRadioButton> pressable)
public WidgetRadioButton(int x,
int y,
int color,
net.minecraft.util.text.ITextComponent text)
public void renderButton(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY,
float partialTicks)
renderButton in class net.minecraft.client.gui.widget.Widgetpublic boolean isChecked()
public net.minecraft.client.renderer.Rectangle2d getBounds()
public void onClick(double mouseX,
double mouseY)
onClick in class net.minecraft.client.gui.widget.Widgetpublic WidgetRadioButton setTooltip(net.minecraft.util.text.ITextComponent tooltip)
public WidgetRadioButton setTooltip(java.util.List<net.minecraft.util.text.ITextComponent> tooltip)
public void addTooltip(double mouseX,
double mouseY,
java.util.List<net.minecraft.util.text.ITextComponent> curTooltip,
boolean shiftPressed)
addTooltip in interface ITooltipProvider