public class KeybindingButton extends WidgetButtonExtended implements IKeybindingButton
WidgetButtonExtended.IconPositionNO_TOOLTIP, onPress, onTooltip| Constructor and Description |
|---|
KeybindingButton(int startX,
int startY,
int xSize,
int ySize,
net.minecraft.util.text.ITextComponent buttonText,
net.minecraft.client.settings.KeyBinding keyBinding) |
| Modifier and Type | Method and Description |
|---|---|
void |
onPress() |
boolean |
receiveKey(net.minecraft.client.util.InputMappings.Type type,
int keyCode) |
void |
receiveKeyReleased() |
addTooltip, getHeight, getTag, getTooltip, getWidth, hasTooltip, renderButton, setIconPosition, setIconSpacing, setInvisibleHoverColor, setRenderedIcon, setRenderStacks, setTexture, setTooltipKey, setTooltipText, setTooltipText, setVisible, withTagkeyPressed, onClickchangeFocus, clearFGColor, clicked, createNarrationMessage, getFGColor, getMessage, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, render, renderBg, 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 KeybindingButton(int startX,
int startY,
int xSize,
int ySize,
net.minecraft.util.text.ITextComponent buttonText,
net.minecraft.client.settings.KeyBinding keyBinding)
public void onPress()
onPress in class WidgetButtonExtendedpublic boolean receiveKey(net.minecraft.client.util.InputMappings.Type type,
int keyCode)
receiveKey in interface IKeybindingButtonpublic void receiveKeyReleased()
receiveKeyReleased in interface IKeybindingButton