public interface ICheckboxWidget
Do not implement this class yourself; you can create & retrieve instances of it via
IPneumaticHelmetRegistry.makeKeybindingCheckBox(ResourceLocation, int, int, int, Consumer). This would
typically be done in IOptionPage.populateGui(IGuiScreen).
| Modifier and Type | Method and Description |
|---|---|
default net.minecraft.client.gui.widget.Widget |
asWidget()
Convenience method to cast this to a Widget, suitable for passing to
IGuiScreen.addWidget(Widget), or
calling other Widget methods on it. |
default net.minecraft.util.ResourceLocation |
getUpgradeId()
Get the upgrade ID for this checkbox; the upgrade that is toggled when the checkbox is clicked.
|
boolean |
isChecked()
Is this checkbox currently checked?
|
default ICheckboxWidget |
withOwnerUpgradeID(net.minecraft.util.ResourceLocation owningId)
Set the upgrade ID of the owning upgrade.
|
boolean isChecked()
default net.minecraft.client.gui.widget.Widget asWidget()
IGuiScreen.addWidget(Widget), or
calling other Widget methods on it.default net.minecraft.util.ResourceLocation getUpgradeId()
default ICheckboxWidget withOwnerUpgradeID(net.minecraft.util.ResourceLocation owningId)
owningId - the upgrade ID of the owning upgrade