Package net.minecraftforge.common
Class ForgeConfigSpec.Builder
- java.lang.Object
-
- net.minecraftforge.common.ForgeConfigSpec.Builder
-
- Enclosing class:
- ForgeConfigSpec
public static class ForgeConfigSpec.Builder extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ForgeConfigSpec.Builder.BuilderConsumer
-
Field Summary
Fields Modifier and Type Field Description private ForgeConfigSpec.BuilderContext
context
private java.util.List<java.lang.String>
currentPath
private java.util.Map<java.util.List<java.lang.String>,java.lang.String>
levelComments
private com.electronwill.nightconfig.core.Config
storage
private java.util.List<ForgeConfigSpec.ConfigValue<?>>
values
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ForgeConfigSpec
build()
ForgeConfigSpec.Builder
comment(java.lang.String comment)
ForgeConfigSpec.Builder
comment(java.lang.String... comment)
<T> org.apache.commons.lang3.tuple.Pair<T,ForgeConfigSpec>
configure(java.util.function.Function<ForgeConfigSpec.Builder,T> consumer)
ForgeConfigSpec.BooleanValue
define(java.lang.String path, boolean defaultValue)
ForgeConfigSpec.BooleanValue
define(java.lang.String path, java.util.function.Supplier<java.lang.Boolean> defaultSupplier)
<T> ForgeConfigSpec.ConfigValue<T>
define(java.lang.String path, java.util.function.Supplier<T> defaultSupplier, java.util.function.Predicate<java.lang.Object> validator)
<T> ForgeConfigSpec.ConfigValue<T>
define(java.lang.String path, T defaultValue)
<T> ForgeConfigSpec.ConfigValue<T>
define(java.lang.String path, T defaultValue, java.util.function.Predicate<java.lang.Object> validator)
ForgeConfigSpec.BooleanValue
define(java.util.List<java.lang.String> path, boolean defaultValue)
ForgeConfigSpec.BooleanValue
define(java.util.List<java.lang.String> path, java.util.function.Supplier<java.lang.Boolean> defaultSupplier)
<T> ForgeConfigSpec.ConfigValue<T>
define(java.util.List<java.lang.String> path, java.util.function.Supplier<T> defaultSupplier, java.util.function.Predicate<java.lang.Object> validator)
<T> ForgeConfigSpec.ConfigValue<T>
define(java.util.List<java.lang.String> path, java.util.function.Supplier<T> defaultSupplier, java.util.function.Predicate<java.lang.Object> validator, java.lang.Class<?> clazz)
<T> ForgeConfigSpec.ConfigValue<T>
define(java.util.List<java.lang.String> path, ForgeConfigSpec.ValueSpec value, java.util.function.Supplier<T> defaultSupplier)
<T> ForgeConfigSpec.ConfigValue<T>
define(java.util.List<java.lang.String> path, T defaultValue)
<T> ForgeConfigSpec.ConfigValue<T>
define(java.util.List<java.lang.String> path, T defaultValue, java.util.function.Predicate<java.lang.Object> validator)
<V extends java.lang.Enum<V>>
ForgeConfigSpec.EnumValue<V>defineEnum(java.lang.String path, java.util.function.Supplier<V> defaultSupplier, com.electronwill.nightconfig.core.EnumGetMethod converter, java.util.function.Predicate<java.lang.Object> validator, java.lang.Class<V> clazz)
<V extends java.lang.Enum<V>>
ForgeConfigSpec.EnumValue<V>defineEnum(java.lang.String path, java.util.function.Supplier<V> defaultSupplier, java.util.function.Predicate<java.lang.Object> validator, java.lang.Class<V> clazz)
<V extends java.lang.Enum<V>>
ForgeConfigSpec.EnumValue<V>defineEnum(java.lang.String path, V defaultValue)
<V extends java.lang.Enum<V>>
ForgeConfigSpec.EnumValue<V>defineEnum(java.lang.String path, V defaultValue, com.electronwill.nightconfig.core.EnumGetMethod converter)
<V extends java.lang.Enum<V>>
ForgeConfigSpec.EnumValue<V>defineEnum(java.lang.String path, V defaultValue, com.electronwill.nightconfig.core.EnumGetMethod converter, java.util.Collection<V> acceptableValues)
<V extends java.lang.Enum<V>>
ForgeConfigSpec.EnumValue<V>defineEnum(java.lang.String path, V defaultValue, com.electronwill.nightconfig.core.EnumGetMethod converter, java.util.function.Predicate<java.lang.Object> validator)
<V extends java.lang.Enum<V>>
ForgeConfigSpec.EnumValue<V>defineEnum(java.lang.String path, V defaultValue, com.electronwill.nightconfig.core.EnumGetMethod converter, V... acceptableValues)
<V extends java.lang.Enum<V>>
ForgeConfigSpec.EnumValue<V>defineEnum(java.lang.String path, V defaultValue, java.util.Collection<V> acceptableValues)
<V extends java.lang.Enum<V>>
ForgeConfigSpec.EnumValue<V>defineEnum(java.lang.String path, V defaultValue, java.util.function.Predicate<java.lang.Object> validator)
<V extends java.lang.Enum<V>>
ForgeConfigSpec.EnumValue<V>defineEnum(java.lang.String path, V defaultValue, V... acceptableValues)
<V extends java.lang.Enum<V>>
ForgeConfigSpec.EnumValue<V>defineEnum(java.util.List<java.lang.String> path, java.util.function.Supplier<V> defaultSupplier, com.electronwill.nightconfig.core.EnumGetMethod converter, java.util.function.Predicate<java.lang.Object> validator, java.lang.Class<V> clazz)
<V extends java.lang.Enum<V>>
ForgeConfigSpec.EnumValue<V>defineEnum(java.util.List<java.lang.String> path, java.util.function.Supplier<V> defaultSupplier, java.util.function.Predicate<java.lang.Object> validator, java.lang.Class<V> clazz)
<V extends java.lang.Enum<V>>
ForgeConfigSpec.EnumValue<V>defineEnum(java.util.List<java.lang.String> path, V defaultValue)
<V extends java.lang.Enum<V>>
ForgeConfigSpec.EnumValue<V>defineEnum(java.util.List<java.lang.String> path, V defaultValue, com.electronwill.nightconfig.core.EnumGetMethod converter)
<V extends java.lang.Enum<V>>
ForgeConfigSpec.EnumValue<V>defineEnum(java.util.List<java.lang.String> path, V defaultValue, com.electronwill.nightconfig.core.EnumGetMethod converter, java.util.Collection<V> acceptableValues)
<V extends java.lang.Enum<V>>
ForgeConfigSpec.EnumValue<V>defineEnum(java.util.List<java.lang.String> path, V defaultValue, com.electronwill.nightconfig.core.EnumGetMethod converter, java.util.function.Predicate<java.lang.Object> validator)
<V extends java.lang.Enum<V>>
ForgeConfigSpec.EnumValue<V>defineEnum(java.util.List<java.lang.String> path, V defaultValue, com.electronwill.nightconfig.core.EnumGetMethod converter, V... acceptableValues)
<V extends java.lang.Enum<V>>
ForgeConfigSpec.EnumValue<V>defineEnum(java.util.List<java.lang.String> path, V defaultValue, java.util.Collection<V> acceptableValues)
<V extends java.lang.Enum<V>>
ForgeConfigSpec.EnumValue<V>defineEnum(java.util.List<java.lang.String> path, V defaultValue, java.util.function.Predicate<java.lang.Object> validator)
<V extends java.lang.Enum<V>>
ForgeConfigSpec.EnumValue<V>defineEnum(java.util.List<java.lang.String> path, V defaultValue, V... acceptableValues)
<T> ForgeConfigSpec.ConfigValue<T>
defineInList(java.lang.String path, java.util.function.Supplier<T> defaultSupplier, java.util.Collection<? extends T> acceptableValues)
<T> ForgeConfigSpec.ConfigValue<T>
defineInList(java.lang.String path, T defaultValue, java.util.Collection<? extends T> acceptableValues)
<T> ForgeConfigSpec.ConfigValue<T>
defineInList(java.util.List<java.lang.String> path, java.util.function.Supplier<T> defaultSupplier, java.util.Collection<? extends T> acceptableValues)
<T> ForgeConfigSpec.ConfigValue<T>
defineInList(java.util.List<java.lang.String> path, T defaultValue, java.util.Collection<? extends T> acceptableValues)
ForgeConfigSpec.DoubleValue
defineInRange(java.lang.String path, double defaultValue, double min, double max)
ForgeConfigSpec.IntValue
defineInRange(java.lang.String path, int defaultValue, int min, int max)
ForgeConfigSpec.LongValue
defineInRange(java.lang.String path, long defaultValue, long min, long max)
ForgeConfigSpec.DoubleValue
defineInRange(java.lang.String path, java.util.function.Supplier<java.lang.Double> defaultSupplier, double min, double max)
ForgeConfigSpec.IntValue
defineInRange(java.lang.String path, java.util.function.Supplier<java.lang.Integer> defaultSupplier, int min, int max)
ForgeConfigSpec.LongValue
defineInRange(java.lang.String path, java.util.function.Supplier<java.lang.Long> defaultSupplier, long min, long max)
<V extends java.lang.Comparable<? super V>>
ForgeConfigSpec.ConfigValue<V>defineInRange(java.lang.String path, java.util.function.Supplier<V> defaultSupplier, V min, V max, java.lang.Class<V> clazz)
<V extends java.lang.Comparable<? super V>>
ForgeConfigSpec.ConfigValue<V>defineInRange(java.lang.String path, V defaultValue, V min, V max, java.lang.Class<V> clazz)
ForgeConfigSpec.DoubleValue
defineInRange(java.util.List<java.lang.String> path, double defaultValue, double min, double max)
ForgeConfigSpec.IntValue
defineInRange(java.util.List<java.lang.String> path, int defaultValue, int min, int max)
ForgeConfigSpec.LongValue
defineInRange(java.util.List<java.lang.String> path, long defaultValue, long min, long max)
ForgeConfigSpec.DoubleValue
defineInRange(java.util.List<java.lang.String> path, java.util.function.Supplier<java.lang.Double> defaultSupplier, double min, double max)
ForgeConfigSpec.IntValue
defineInRange(java.util.List<java.lang.String> path, java.util.function.Supplier<java.lang.Integer> defaultSupplier, int min, int max)
ForgeConfigSpec.LongValue
defineInRange(java.util.List<java.lang.String> path, java.util.function.Supplier<java.lang.Long> defaultSupplier, long min, long max)
<V extends java.lang.Comparable<? super V>>
ForgeConfigSpec.ConfigValue<V>defineInRange(java.util.List<java.lang.String> path, java.util.function.Supplier<V> defaultSupplier, V min, V max, java.lang.Class<V> clazz)
<V extends java.lang.Comparable<? super V>>
ForgeConfigSpec.ConfigValue<V>defineInRange(java.util.List<java.lang.String> path, V defaultValue, V min, V max, java.lang.Class<V> clazz)
<T> ForgeConfigSpec.ConfigValue<java.util.List<? extends T>>
defineList(java.lang.String path, java.util.function.Supplier<java.util.List<? extends T>> defaultSupplier, java.util.function.Predicate<java.lang.Object> elementValidator)
<T> ForgeConfigSpec.ConfigValue<java.util.List<? extends T>>
defineList(java.lang.String path, java.util.List<? extends T> defaultValue, java.util.function.Predicate<java.lang.Object> elementValidator)
<T> ForgeConfigSpec.ConfigValue<java.util.List<? extends T>>
defineList(java.util.List<java.lang.String> path, java.util.function.Supplier<java.util.List<? extends T>> defaultSupplier, java.util.function.Predicate<java.lang.Object> elementValidator)
<T> ForgeConfigSpec.ConfigValue<java.util.List<? extends T>>
defineList(java.util.List<java.lang.String> path, java.util.List<? extends T> defaultValue, java.util.function.Predicate<java.lang.Object> elementValidator)
<T> ForgeConfigSpec.ConfigValue<java.util.List<? extends T>>
defineListAllowEmpty(java.util.List<java.lang.String> path, java.util.function.Supplier<java.util.List<? extends T>> defaultSupplier, java.util.function.Predicate<java.lang.Object> elementValidator)
ForgeConfigSpec.Builder
pop()
ForgeConfigSpec.Builder
pop(int count)
ForgeConfigSpec.Builder
push(java.lang.String path)
ForgeConfigSpec.Builder
push(java.util.List<java.lang.String> path)
ForgeConfigSpec.Builder
translation(java.lang.String translationKey)
ForgeConfigSpec.Builder
worldRestart()
-
-
-
Field Detail
-
storage
private final com.electronwill.nightconfig.core.Config storage
-
context
private ForgeConfigSpec.BuilderContext context
-
levelComments
private java.util.Map<java.util.List<java.lang.String>,java.lang.String> levelComments
-
currentPath
private java.util.List<java.lang.String> currentPath
-
values
private java.util.List<ForgeConfigSpec.ConfigValue<?>> values
-
-
Method Detail
-
define
public <T> ForgeConfigSpec.ConfigValue<T> define(java.lang.String path, T defaultValue)
-
define
public <T> ForgeConfigSpec.ConfigValue<T> define(java.util.List<java.lang.String> path, T defaultValue)
-
define
public <T> ForgeConfigSpec.ConfigValue<T> define(java.lang.String path, T defaultValue, java.util.function.Predicate<java.lang.Object> validator)
-
define
public <T> ForgeConfigSpec.ConfigValue<T> define(java.util.List<java.lang.String> path, T defaultValue, java.util.function.Predicate<java.lang.Object> validator)
-
define
public <T> ForgeConfigSpec.ConfigValue<T> define(java.lang.String path, java.util.function.Supplier<T> defaultSupplier, java.util.function.Predicate<java.lang.Object> validator)
-
define
public <T> ForgeConfigSpec.ConfigValue<T> define(java.util.List<java.lang.String> path, java.util.function.Supplier<T> defaultSupplier, java.util.function.Predicate<java.lang.Object> validator)
-
define
public <T> ForgeConfigSpec.ConfigValue<T> define(java.util.List<java.lang.String> path, java.util.function.Supplier<T> defaultSupplier, java.util.function.Predicate<java.lang.Object> validator, java.lang.Class<?> clazz)
-
define
public <T> ForgeConfigSpec.ConfigValue<T> define(java.util.List<java.lang.String> path, ForgeConfigSpec.ValueSpec value, java.util.function.Supplier<T> defaultSupplier)
-
defineInRange
public <V extends java.lang.Comparable<? super V>> ForgeConfigSpec.ConfigValue<V> defineInRange(java.lang.String path, V defaultValue, V min, V max, java.lang.Class<V> clazz)
-
defineInRange
public <V extends java.lang.Comparable<? super V>> ForgeConfigSpec.ConfigValue<V> defineInRange(java.util.List<java.lang.String> path, V defaultValue, V min, V max, java.lang.Class<V> clazz)
-
defineInRange
public <V extends java.lang.Comparable<? super V>> ForgeConfigSpec.ConfigValue<V> defineInRange(java.lang.String path, java.util.function.Supplier<V> defaultSupplier, V min, V max, java.lang.Class<V> clazz)
-
defineInRange
public <V extends java.lang.Comparable<? super V>> ForgeConfigSpec.ConfigValue<V> defineInRange(java.util.List<java.lang.String> path, java.util.function.Supplier<V> defaultSupplier, V min, V max, java.lang.Class<V> clazz)
-
defineInList
public <T> ForgeConfigSpec.ConfigValue<T> defineInList(java.lang.String path, T defaultValue, java.util.Collection<? extends T> acceptableValues)
-
defineInList
public <T> ForgeConfigSpec.ConfigValue<T> defineInList(java.lang.String path, java.util.function.Supplier<T> defaultSupplier, java.util.Collection<? extends T> acceptableValues)
-
defineInList
public <T> ForgeConfigSpec.ConfigValue<T> defineInList(java.util.List<java.lang.String> path, T defaultValue, java.util.Collection<? extends T> acceptableValues)
-
defineInList
public <T> ForgeConfigSpec.ConfigValue<T> defineInList(java.util.List<java.lang.String> path, java.util.function.Supplier<T> defaultSupplier, java.util.Collection<? extends T> acceptableValues)
-
defineList
public <T> ForgeConfigSpec.ConfigValue<java.util.List<? extends T>> defineList(java.lang.String path, java.util.List<? extends T> defaultValue, java.util.function.Predicate<java.lang.Object> elementValidator)
-
defineList
public <T> ForgeConfigSpec.ConfigValue<java.util.List<? extends T>> defineList(java.lang.String path, java.util.function.Supplier<java.util.List<? extends T>> defaultSupplier, java.util.function.Predicate<java.lang.Object> elementValidator)
-
defineList
public <T> ForgeConfigSpec.ConfigValue<java.util.List<? extends T>> defineList(java.util.List<java.lang.String> path, java.util.List<? extends T> defaultValue, java.util.function.Predicate<java.lang.Object> elementValidator)
-
defineList
public <T> ForgeConfigSpec.ConfigValue<java.util.List<? extends T>> defineList(java.util.List<java.lang.String> path, java.util.function.Supplier<java.util.List<? extends T>> defaultSupplier, java.util.function.Predicate<java.lang.Object> elementValidator)
-
defineListAllowEmpty
public <T> ForgeConfigSpec.ConfigValue<java.util.List<? extends T>> defineListAllowEmpty(java.util.List<java.lang.String> path, java.util.function.Supplier<java.util.List<? extends T>> defaultSupplier, java.util.function.Predicate<java.lang.Object> elementValidator)
-
defineEnum
public <V extends java.lang.Enum<V>> ForgeConfigSpec.EnumValue<V> defineEnum(java.lang.String path, V defaultValue)
-
defineEnum
public <V extends java.lang.Enum<V>> ForgeConfigSpec.EnumValue<V> defineEnum(java.lang.String path, V defaultValue, com.electronwill.nightconfig.core.EnumGetMethod converter)
-
defineEnum
public <V extends java.lang.Enum<V>> ForgeConfigSpec.EnumValue<V> defineEnum(java.util.List<java.lang.String> path, V defaultValue)
-
defineEnum
public <V extends java.lang.Enum<V>> ForgeConfigSpec.EnumValue<V> defineEnum(java.util.List<java.lang.String> path, V defaultValue, com.electronwill.nightconfig.core.EnumGetMethod converter)
-
defineEnum
public <V extends java.lang.Enum<V>> ForgeConfigSpec.EnumValue<V> defineEnum(java.lang.String path, V defaultValue, V... acceptableValues)
-
defineEnum
public <V extends java.lang.Enum<V>> ForgeConfigSpec.EnumValue<V> defineEnum(java.lang.String path, V defaultValue, com.electronwill.nightconfig.core.EnumGetMethod converter, V... acceptableValues)
-
defineEnum
public <V extends java.lang.Enum<V>> ForgeConfigSpec.EnumValue<V> defineEnum(java.util.List<java.lang.String> path, V defaultValue, V... acceptableValues)
-
defineEnum
public <V extends java.lang.Enum<V>> ForgeConfigSpec.EnumValue<V> defineEnum(java.util.List<java.lang.String> path, V defaultValue, com.electronwill.nightconfig.core.EnumGetMethod converter, V... acceptableValues)
-
defineEnum
public <V extends java.lang.Enum<V>> ForgeConfigSpec.EnumValue<V> defineEnum(java.lang.String path, V defaultValue, java.util.Collection<V> acceptableValues)
-
defineEnum
public <V extends java.lang.Enum<V>> ForgeConfigSpec.EnumValue<V> defineEnum(java.lang.String path, V defaultValue, com.electronwill.nightconfig.core.EnumGetMethod converter, java.util.Collection<V> acceptableValues)
-
defineEnum
public <V extends java.lang.Enum<V>> ForgeConfigSpec.EnumValue<V> defineEnum(java.util.List<java.lang.String> path, V defaultValue, java.util.Collection<V> acceptableValues)
-
defineEnum
public <V extends java.lang.Enum<V>> ForgeConfigSpec.EnumValue<V> defineEnum(java.util.List<java.lang.String> path, V defaultValue, com.electronwill.nightconfig.core.EnumGetMethod converter, java.util.Collection<V> acceptableValues)
-
defineEnum
public <V extends java.lang.Enum<V>> ForgeConfigSpec.EnumValue<V> defineEnum(java.lang.String path, V defaultValue, java.util.function.Predicate<java.lang.Object> validator)
-
defineEnum
public <V extends java.lang.Enum<V>> ForgeConfigSpec.EnumValue<V> defineEnum(java.lang.String path, V defaultValue, com.electronwill.nightconfig.core.EnumGetMethod converter, java.util.function.Predicate<java.lang.Object> validator)
-
defineEnum
public <V extends java.lang.Enum<V>> ForgeConfigSpec.EnumValue<V> defineEnum(java.util.List<java.lang.String> path, V defaultValue, java.util.function.Predicate<java.lang.Object> validator)
-
defineEnum
public <V extends java.lang.Enum<V>> ForgeConfigSpec.EnumValue<V> defineEnum(java.util.List<java.lang.String> path, V defaultValue, com.electronwill.nightconfig.core.EnumGetMethod converter, java.util.function.Predicate<java.lang.Object> validator)
-
defineEnum
public <V extends java.lang.Enum<V>> ForgeConfigSpec.EnumValue<V> defineEnum(java.lang.String path, java.util.function.Supplier<V> defaultSupplier, java.util.function.Predicate<java.lang.Object> validator, java.lang.Class<V> clazz)
-
defineEnum
public <V extends java.lang.Enum<V>> ForgeConfigSpec.EnumValue<V> defineEnum(java.lang.String path, java.util.function.Supplier<V> defaultSupplier, com.electronwill.nightconfig.core.EnumGetMethod converter, java.util.function.Predicate<java.lang.Object> validator, java.lang.Class<V> clazz)
-
defineEnum
public <V extends java.lang.Enum<V>> ForgeConfigSpec.EnumValue<V> defineEnum(java.util.List<java.lang.String> path, java.util.function.Supplier<V> defaultSupplier, java.util.function.Predicate<java.lang.Object> validator, java.lang.Class<V> clazz)
-
defineEnum
public <V extends java.lang.Enum<V>> ForgeConfigSpec.EnumValue<V> defineEnum(java.util.List<java.lang.String> path, java.util.function.Supplier<V> defaultSupplier, com.electronwill.nightconfig.core.EnumGetMethod converter, java.util.function.Predicate<java.lang.Object> validator, java.lang.Class<V> clazz)
-
define
public ForgeConfigSpec.BooleanValue define(java.lang.String path, boolean defaultValue)
-
define
public ForgeConfigSpec.BooleanValue define(java.util.List<java.lang.String> path, boolean defaultValue)
-
define
public ForgeConfigSpec.BooleanValue define(java.lang.String path, java.util.function.Supplier<java.lang.Boolean> defaultSupplier)
-
define
public ForgeConfigSpec.BooleanValue define(java.util.List<java.lang.String> path, java.util.function.Supplier<java.lang.Boolean> defaultSupplier)
-
defineInRange
public ForgeConfigSpec.DoubleValue defineInRange(java.lang.String path, double defaultValue, double min, double max)
-
defineInRange
public ForgeConfigSpec.DoubleValue defineInRange(java.util.List<java.lang.String> path, double defaultValue, double min, double max)
-
defineInRange
public ForgeConfigSpec.DoubleValue defineInRange(java.lang.String path, java.util.function.Supplier<java.lang.Double> defaultSupplier, double min, double max)
-
defineInRange
public ForgeConfigSpec.DoubleValue defineInRange(java.util.List<java.lang.String> path, java.util.function.Supplier<java.lang.Double> defaultSupplier, double min, double max)
-
defineInRange
public ForgeConfigSpec.IntValue defineInRange(java.lang.String path, int defaultValue, int min, int max)
-
defineInRange
public ForgeConfigSpec.IntValue defineInRange(java.util.List<java.lang.String> path, int defaultValue, int min, int max)
-
defineInRange
public ForgeConfigSpec.IntValue defineInRange(java.lang.String path, java.util.function.Supplier<java.lang.Integer> defaultSupplier, int min, int max)
-
defineInRange
public ForgeConfigSpec.IntValue defineInRange(java.util.List<java.lang.String> path, java.util.function.Supplier<java.lang.Integer> defaultSupplier, int min, int max)
-
defineInRange
public ForgeConfigSpec.LongValue defineInRange(java.lang.String path, long defaultValue, long min, long max)
-
defineInRange
public ForgeConfigSpec.LongValue defineInRange(java.util.List<java.lang.String> path, long defaultValue, long min, long max)
-
defineInRange
public ForgeConfigSpec.LongValue defineInRange(java.lang.String path, java.util.function.Supplier<java.lang.Long> defaultSupplier, long min, long max)
-
defineInRange
public ForgeConfigSpec.LongValue defineInRange(java.util.List<java.lang.String> path, java.util.function.Supplier<java.lang.Long> defaultSupplier, long min, long max)
-
comment
public ForgeConfigSpec.Builder comment(java.lang.String comment)
-
comment
public ForgeConfigSpec.Builder comment(java.lang.String... comment)
-
translation
public ForgeConfigSpec.Builder translation(java.lang.String translationKey)
-
worldRestart
public ForgeConfigSpec.Builder worldRestart()
-
push
public ForgeConfigSpec.Builder push(java.lang.String path)
-
push
public ForgeConfigSpec.Builder push(java.util.List<java.lang.String> path)
-
pop
public ForgeConfigSpec.Builder pop()
-
pop
public ForgeConfigSpec.Builder pop(int count)
-
configure
public <T> org.apache.commons.lang3.tuple.Pair<T,ForgeConfigSpec> configure(java.util.function.Function<ForgeConfigSpec.Builder,T> consumer)
-
build
public ForgeConfigSpec build()
-
-