1
0
forked from xjboss/KCauldronX

Initial commit (Forge 1291).

This commit is contained in:
gamerforEA
2015-03-22 20:38:04 +03:00
commit 16773ead6a
611 changed files with 64826 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
package net.minecraftforge.cauldron.configuration;
public class IntSetting extends Setting<Integer>
{
private Integer value;
private ConfigBase config;
public IntSetting(ConfigBase config, String path, Integer def, String description)
{
super(path, def, description);
this.value = def;
this.config = config;
}
@Override
public Integer getValue()
{
return value;
}
@Override
public void setValue(String value)
{
this.value = org.apache.commons.lang.math.NumberUtils.toInt(value, def);
config.set(path, this.value);
}
}