public interface IKeybindingButton
IPneumaticHelmetRegistry.makeKeybindingButton(int, KeyBinding) to get an instance of a keybinding
button widget.
See also IOptionPage.getKeybindingButton(), which should be overridden to return this button instance
if it exists in this screen.
| Modifier and Type | Method and Description |
|---|---|
default net.minecraft.client.gui.widget.Widget |
asWidget()
Convenience method to get this button as a widget, suitable for passing to
IGuiScreen.addWidget(Widget) |
boolean |
receiveKey(net.minecraft.client.util.InputMappings.Type type,
int keyCode) |
void |
receiveKeyReleased() |
boolean receiveKey(net.minecraft.client.util.InputMappings.Type type,
int keyCode)
void receiveKeyReleased()
default net.minecraft.client.gui.widget.Widget asWidget()
IGuiScreen.addWidget(Widget)