public class WidgetKeybindCheckBox extends WidgetCheckBox implements ITooltipProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
WidgetKeybindCheckBox.KeyDispatcher |
checked| Modifier and Type | Method and Description |
|---|---|
void |
addTooltip(double mouseX,
double mouseY,
java.util.List<net.minecraft.util.text.ITextComponent> curTooltip,
boolean shiftPressed) |
static WidgetKeybindCheckBox |
forUpgrade(IArmorUpgradeClientHandler<?> handler) |
static WidgetKeybindCheckBox |
forUpgrade(IArmorUpgradeHandler<?> handler) |
static WidgetKeybindCheckBox |
get(net.minecraft.util.ResourceLocation upgradeID) |
static WidgetKeybindCheckBox |
getCoreComponents() |
static WidgetKeybindCheckBox |
getOrCreate(net.minecraft.util.ResourceLocation upgradeID,
int x,
int y,
int color,
java.util.function.Consumer<ICheckboxWidget> pressable) |
net.minecraft.util.ResourceLocation |
getUpgradeId()
Get the upgrade ID for this checkbox; the upgrade that is toggled when the checkbox is clicked.
|
static boolean |
isHandlerEnabled(IArmorUpgradeHandler<?> handler) |
boolean |
keyPressed(int keyCode,
int scanCode,
int modifiers) |
boolean |
mouseClicked(double x,
double y,
int button) |
ICheckboxWidget |
withOwnerUpgradeID(net.minecraft.util.ResourceLocation ownerUpgradeID)
Set the upgrade ID of the owning upgrade.
|
getTag, getTooltip, isChecked, onClick, renderButton, setChecked, setTooltip, setTooltipKey, withTagchangeFocus, clearFGColor, clicked, createNarrationMessage, getFGColor, getHeight, getMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, 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, vLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasWidgetpublic static WidgetKeybindCheckBox getOrCreate(net.minecraft.util.ResourceLocation upgradeID, int x, int y, int color, java.util.function.Consumer<ICheckboxWidget> pressable)
public static WidgetKeybindCheckBox get(net.minecraft.util.ResourceLocation upgradeID)
public static WidgetKeybindCheckBox forUpgrade(IArmorUpgradeHandler<?> handler)
public static WidgetKeybindCheckBox forUpgrade(IArmorUpgradeClientHandler<?> handler)
public static WidgetKeybindCheckBox getCoreComponents()
public ICheckboxWidget withOwnerUpgradeID(net.minecraft.util.ResourceLocation ownerUpgradeID)
ICheckboxWidgetwithOwnerUpgradeID in interface ICheckboxWidgetownerUpgradeID - the upgrade ID of the owning upgradepublic static boolean isHandlerEnabled(IArmorUpgradeHandler<?> handler)
public boolean mouseClicked(double x,
double y,
int button)
mouseClicked in interface net.minecraft.client.gui.IGuiEventListenermouseClicked in class net.minecraft.client.gui.widget.Widgetpublic boolean keyPressed(int keyCode,
int scanCode,
int modifiers)
keyPressed in interface net.minecraft.client.gui.IGuiEventListenerpublic void addTooltip(double mouseX,
double mouseY,
java.util.List<net.minecraft.util.text.ITextComponent> curTooltip,
boolean shiftPressed)
addTooltip in interface ITooltipProvideraddTooltip in class WidgetCheckBoxpublic net.minecraft.util.ResourceLocation getUpgradeId()
ICheckboxWidgetgetUpgradeId in interface ICheckboxWidget