2015-08-29 14:33:25 +02:00
/ *
2016-05-16 22:52:27 +02:00
* This file ( " ConfigValues.java " ) is part of the Actually Additions mod for Minecraft .
2015-08-29 14:33:25 +02:00
* It is created and owned by Ellpeck and distributed
* under the Actually Additions License to be found at
2016-05-16 22:52:27 +02:00
* http : //ellpeck.de/actaddlicense
2015-08-29 14:33:25 +02:00
* View the source code at https : //github.com/Ellpeck/ActuallyAdditions
*
2016-05-16 22:54:42 +02:00
* © 2015 - 2016 Ellpeck
2015-08-29 14:33:25 +02:00
* /
2016-01-05 04:47:35 +01:00
package de.ellpeck.actuallyadditions.mod.config ;
2015-02-09 17:25:05 +01:00
2016-06-05 12:15:02 +02:00
import de.ellpeck.actuallyadditions.mod.config.values.* ;
2015-02-09 17:25:05 +01:00
import net.minecraftforge.common.config.Configuration ;
public class ConfigValues {
public static void defineConfigValues ( Configuration config ) {
2016-06-05 12:15:02 +02:00
for ( ConfigCrafting currConf : ConfigCrafting . values ( ) ) {
2015-11-28 19:02:01 +01:00
currConf . currentValue = config . get ( currConf . category , currConf . name , currConf . defaultValue , " If the Recipe for the " + currConf . name + " is Enabled " ) . getBoolean ( ) ;
2015-03-31 20:37:55 +02:00
}
2016-06-05 12:15:02 +02:00
for ( ConfigIntValues currConf : ConfigIntValues . values ( ) ) {
2015-10-01 12:52:03 +02:00
currConf . currentValue = config . get ( currConf . category , currConf . name , currConf . defaultValue , currConf . desc , currConf . min , currConf . max ) . getInt ( ) ;
2015-04-24 19:22:03 +02:00
}
2016-06-05 12:15:02 +02:00
for ( ConfigBoolValues currConf : ConfigBoolValues . values ( ) ) {
2015-10-01 12:52:03 +02:00
currConf . currentValue = config . get ( currConf . category , currConf . name , currConf . defaultValue , currConf . desc ) . getBoolean ( ) ;
2015-04-24 19:22:03 +02:00
}
2015-07-02 11:44:41 +02:00
2016-06-05 12:15:02 +02:00
for ( ConfigIntListValues currConf : ConfigIntListValues . values ( ) ) {
currConf . currentValue = config . get ( currConf . category , currConf . name , currConf . defaultValue , currConf . desc ) . getIntList ( ) ;
}
for ( ConfigStringListValues currConf : ConfigStringListValues . values ( ) ) {
currConf . currentValue = config . get ( currConf . category , currConf . name , currConf . defaultValue , currConf . desc ) . getStringList ( ) ;
}
2016-01-23 11:02:35 +01:00
2015-02-09 17:25:05 +01:00
}
}