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