public class IntRangeConfigProperty extends ForgeConfigProperty implements IIntRangeProperty
IIntRangeProperty.WithStatepropertydescription, name| Constructor and Description |
|---|
IntRangeConfigProperty(net.minecraftforge.common.config.Property property) |
| Modifier and Type | Method and Description |
|---|---|
int |
getInt()
Get the int value.
|
int |
getMaxIntValue()
Get the inclusive max int value.
|
int |
getMinIntValue()
Get the inclusive min int value.
|
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, waitgetIntValueRange, isValidInttrySetIntpublic IntRangeConfigProperty(net.minecraftforge.common.config.Property property)
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 int getMinIntValue()
IIntRangePropertygetMinIntValue in interface IIntRangePropertypublic int getMaxIntValue()
IIntRangePropertygetMaxIntValue in interface IIntRangeProperty