public class BooleanConfigProperty extends ForgeConfigProperty implements IBooleanProperty
IBooleanProperty.WithStatepropertydescription, name| Constructor and Description |
|---|
BooleanConfigProperty(net.minecraftforge.common.config.Property configProperty) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolean()
Get the boolean value.
|
boolean |
isValidBoolean(boolean value)
Returns true if the boolean value is valid.
|
Element<ConfigGUI> |
provideElement(ConfigGUI gui,
float x,
float y) |
void |
setBoolean(boolean value)
Set the boolean value, regardless of it being a valid value or not.
|
factoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittrySetBooleanpublic BooleanConfigProperty(net.minecraftforge.common.config.Property configProperty)
public Element<ConfigGUI> provideElement(ConfigGUI gui, float x, float y)
provideElement in class ConfigPropertypublic boolean getBoolean()
IBooleanPropertygetBoolean in interface IBooleanPropertypublic void setBoolean(boolean value)
IBooleanPropertysetBoolean in interface IBooleanPropertyvalue - the boolean valuepublic boolean isValidBoolean(boolean value)
IBooleanPropertyisValidBoolean in interface IBooleanPropertyvalue - the boolean value