Package net.neoforged.neoforge.common
Class ModConfigSpec.BooleanValue
java.lang.Object
net.neoforged.neoforge.common.ModConfigSpec.ConfigValue<Boolean>
net.neoforged.neoforge.common.ModConfigSpec.BooleanValue
- All Implemented Interfaces:
BooleanSupplier
,Supplier<Boolean>
- Enclosing class:
ModConfigSpec
public static class ModConfigSpec.BooleanValue
extends ModConfigSpec.ConfigValue<Boolean>
implements BooleanSupplier
-
Constructor Summary
ConstructorDescriptionBooleanValue
(ModConfigSpec.Builder parent, List<String> path, Supplier<Boolean> defaultSupplier) -
Method Summary
Methods inherited from class net.neoforged.neoforge.common.ModConfigSpec.ConfigValue
clearCache, get, getDefault, getPath, getRaw, next, save, set
-
Constructor Details
-
BooleanValue
BooleanValue(ModConfigSpec.Builder parent, List<String> path, Supplier<Boolean> defaultSupplier)
-
-
Method Details
-
getAsBoolean
public boolean getAsBoolean()- Specified by:
getAsBoolean
in interfaceBooleanSupplier
-
isTrue
public boolean isTrue() -
isFalse
public boolean isFalse()
-