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