Package net.neoforged.neoforge.common
Class ModConfigSpec.IntValue
java.lang.Object
net.neoforged.neoforge.common.ModConfigSpec.ConfigValue<Integer>
net.neoforged.neoforge.common.ModConfigSpec.IntValue
- All Implemented Interfaces:
IntSupplier
,Supplier<Integer>
- Enclosing class:
ModConfigSpec
public static class ModConfigSpec.IntValue
extends ModConfigSpec.ConfigValue<Integer>
implements IntSupplier
-
Constructor Summary
-
Method Summary
Methods inherited from class net.neoforged.neoforge.common.ModConfigSpec.ConfigValue
clearCache, get, getDefault, getPath, next, save, set
-
Constructor Details
-
IntValue
IntValue(ModConfigSpec.Builder parent, List<String> path, Supplier<Integer> defaultSupplier)
-
-
Method Details
-
getRaw
protected Integer getRaw(com.electronwill.nightconfig.core.Config config, List<String> path, Supplier<Integer> defaultSupplier) - Overrides:
getRaw
in classModConfigSpec.ConfigValue<Integer>
-
getAsInt
public int getAsInt()- Specified by:
getAsInt
in interfaceIntSupplier
-