public class ColorConfigProperty extends ForgeConfigProperty implements IIntProperty
IIntProperty.WithStatepropertydescription, name| Constructor and Description |
|---|
ColorConfigProperty(net.minecraftforge.common.config.Property configProperty) |
| Modifier and Type | Method and Description |
|---|---|
int |
getInt()
Get the int value.
|
boolean |
isValidInt(int value)
Returns true if the int value is valid.
|
Element<ConfigGUI> |
provideElement(ConfigGUI gui,
float x,
float y) |
void |
setInt(int value)
Set the int value, regardless of it being a valid value or not.
|
factoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittrySetIntpublic ColorConfigProperty(net.minecraftforge.common.config.Property configProperty)
public Element<ConfigGUI> provideElement(ConfigGUI gui, float x, float y)
provideElement in class ConfigPropertypublic int getInt()
IIntPropertygetInt in interface IIntPropertypublic void setInt(int value)
IIntPropertysetInt in interface IIntPropertyvalue - the int valuepublic boolean isValidInt(int value)
IIntPropertyisValidInt in interface IIntPropertyvalue - the int value