类 ForgeConfigSpec.Builder
java.lang.Object
net.minecraftforge.common.ForgeConfigSpec.Builder
- 封闭类:
ForgeConfigSpec
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private ForgeConfigSpec.BuilderContext
private final com.electronwill.nightconfig.core.Config
private final List
<ForgeConfigSpec.ConfigValue<?>> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明build()
<T> org.apache.commons.lang3.tuple.Pair
<T, ForgeConfigSpec> configure
(Function<ForgeConfigSpec.Builder, T> consumer) <T> ForgeConfigSpec.ConfigValue
<T> <T> ForgeConfigSpec.ConfigValue
<T> <T> ForgeConfigSpec.ConfigValue
<T> <T> ForgeConfigSpec.ConfigValue
<T> <T> ForgeConfigSpec.ConfigValue
<T> <T> ForgeConfigSpec.ConfigValue
<T> define
(List<String> path, ForgeConfigSpec.ValueSpec value, Supplier<T> defaultSupplier) <T> ForgeConfigSpec.ConfigValue
<T> <T> ForgeConfigSpec.ConfigValue
<T> <V extends Enum<V>>
ForgeConfigSpec.EnumValue<V> defineEnum
(String path, Supplier<V> defaultSupplier, com.electronwill.nightconfig.core.EnumGetMethod converter, Predicate<Object> validator, Class<V> clazz) <V extends Enum<V>>
ForgeConfigSpec.EnumValue<V> <V extends Enum<V>>
ForgeConfigSpec.EnumValue<V> defineEnum
(String path, V defaultValue) <V extends Enum<V>>
ForgeConfigSpec.EnumValue<V> defineEnum
(String path, V defaultValue, com.electronwill.nightconfig.core.EnumGetMethod converter) <V extends Enum<V>>
ForgeConfigSpec.EnumValue<V> defineEnum
(String path, V defaultValue, com.electronwill.nightconfig.core.EnumGetMethod converter, Collection<V> acceptableValues) <V extends Enum<V>>
ForgeConfigSpec.EnumValue<V> defineEnum
(String path, V defaultValue, com.electronwill.nightconfig.core.EnumGetMethod converter, Predicate<Object> validator) <V extends Enum<V>>
ForgeConfigSpec.EnumValue<V> defineEnum
(String path, V defaultValue, com.electronwill.nightconfig.core.EnumGetMethod converter, V... acceptableValues) <V extends Enum<V>>
ForgeConfigSpec.EnumValue<V> defineEnum
(String path, V defaultValue, Collection<V> acceptableValues) <V extends Enum<V>>
ForgeConfigSpec.EnumValue<V> defineEnum
(String path, V defaultValue, Predicate<Object> validator) <V extends Enum<V>>
ForgeConfigSpec.EnumValue<V> defineEnum
(String path, V defaultValue, V... acceptableValues) <V extends Enum<V>>
ForgeConfigSpec.EnumValue<V> defineEnum
(List<String> path, Supplier<V> defaultSupplier, com.electronwill.nightconfig.core.EnumGetMethod converter, Predicate<Object> validator, Class<V> clazz) <V extends Enum<V>>
ForgeConfigSpec.EnumValue<V> defineEnum
(List<String> path, Supplier<V> defaultSupplier, Predicate<Object> validator, Class<V> clazz) <V extends Enum<V>>
ForgeConfigSpec.EnumValue<V> defineEnum
(List<String> path, V defaultValue) <V extends Enum<V>>
ForgeConfigSpec.EnumValue<V> defineEnum
(List<String> path, V defaultValue, com.electronwill.nightconfig.core.EnumGetMethod converter) <V extends Enum<V>>
ForgeConfigSpec.EnumValue<V> defineEnum
(List<String> path, V defaultValue, com.electronwill.nightconfig.core.EnumGetMethod converter, Collection<V> acceptableValues) <V extends Enum<V>>
ForgeConfigSpec.EnumValue<V> defineEnum
(List<String> path, V defaultValue, com.electronwill.nightconfig.core.EnumGetMethod converter, Predicate<Object> validator) <V extends Enum<V>>
ForgeConfigSpec.EnumValue<V> defineEnum
(List<String> path, V defaultValue, com.electronwill.nightconfig.core.EnumGetMethod converter, V... acceptableValues) <V extends Enum<V>>
ForgeConfigSpec.EnumValue<V> defineEnum
(List<String> path, V defaultValue, Collection<V> acceptableValues) <V extends Enum<V>>
ForgeConfigSpec.EnumValue<V> defineEnum
(List<String> path, V defaultValue, Predicate<Object> validator) <V extends Enum<V>>
ForgeConfigSpec.EnumValue<V> defineEnum
(List<String> path, V defaultValue, V... acceptableValues) <T> ForgeConfigSpec.ConfigValue
<T> defineInList
(String path, Supplier<T> defaultSupplier, Collection<? extends T> acceptableValues) <T> ForgeConfigSpec.ConfigValue
<T> defineInList
(String path, T defaultValue, Collection<? extends T> acceptableValues) <T> ForgeConfigSpec.ConfigValue
<T> defineInList
(List<String> path, Supplier<T> defaultSupplier, Collection<? extends T> acceptableValues) <T> ForgeConfigSpec.ConfigValue
<T> defineInList
(List<String> path, T defaultValue, Collection<? extends T> acceptableValues) defineInRange
(String path, byte defaultValue, byte min, byte max) defineInRange
(String path, double defaultValue, double min, double max) defineInRange
(String path, float defaultValue, float min, float max) defineInRange
(String path, int defaultValue, int min, int max) defineInRange
(String path, long defaultValue, long min, long max) defineInRange
(String path, short defaultValue, short min, short max) defineInRange
(String path, Supplier<Byte> defaultSupplier, byte min, byte max) defineInRange
(String path, Supplier<Double> defaultSupplier, double min, double max) defineInRange
(String path, Supplier<Float> defaultSupplier, float min, float max) defineInRange
(String path, Supplier<Integer> defaultSupplier, int min, int max) defineInRange
(String path, Supplier<Long> defaultSupplier, long min, long max) defineInRange
(String path, Supplier<Short> defaultSupplier, short min, short max) <V extends Comparable<? super V>>
ForgeConfigSpec.ConfigValue<V> defineInRange
(String path, Supplier<V> defaultSupplier, V min, V max, Class<V> clazz) <V extends Comparable<? super V>>
ForgeConfigSpec.ConfigValue<V> defineInRange
(String path, V defaultValue, V min, V max, Class<V> clazz) defineInRange
(List<String> path, byte defaultValue, byte min, byte max) defineInRange
(List<String> path, double defaultValue, double min, double max) defineInRange
(List<String> path, float defaultValue, float min, float max) defineInRange
(List<String> path, int defaultValue, int min, int max) defineInRange
(List<String> path, long defaultValue, long min, long max) defineInRange
(List<String> path, short defaultValue, short min, short max) defineInRange
(List<String> path, Supplier<Byte> defaultSupplier, byte min, byte max) defineInRange
(List<String> path, Supplier<Double> defaultSupplier, double min, double max) defineInRange
(List<String> path, Supplier<Float> defaultSupplier, float min, float max) defineInRange
(List<String> path, Supplier<Integer> defaultSupplier, int min, int max) defineInRange
(List<String> path, Supplier<Long> defaultSupplier, long min, long max) defineInRange
(List<String> path, Supplier<Short> defaultSupplier, short min, short max) <V extends Comparable<? super V>>
ForgeConfigSpec.ConfigValue<V> defineInRange
(List<String> path, Supplier<V> defaultSupplier, V min, V max, Class<V> clazz) <V extends Comparable<? super V>>
ForgeConfigSpec.ConfigValue<V> defineInRange
(List<String> path, V defaultValue, V min, V max, Class<V> clazz) <T> ForgeConfigSpec.ConfigValue
<List<? extends T>> defineList
(String path, Supplier<List<? extends T>> defaultSupplier, Predicate<Object> elementValidator) <T> ForgeConfigSpec.ConfigValue
<List<? extends T>> defineList
(String path, List<? extends T> defaultValue, Predicate<Object> elementValidator) <T> ForgeConfigSpec.ConfigValue
<List<? extends T>> defineList
(List<String> path, Supplier<List<? extends T>> defaultSupplier, Predicate<Object> elementValidator) <T> ForgeConfigSpec.ConfigValue
<List<? extends T>> <T> ForgeConfigSpec.ConfigValue
<List<? extends T>> defineListAllowEmpty
(String path, Supplier<List<? extends T>> defaultSupplier, Predicate<Object> elementValidator) <T> ForgeConfigSpec.ConfigValue
<List<? extends T>> defineListAllowEmpty
(String path, List<? extends T> defaultValue, Predicate<Object> elementValidator) <T> ForgeConfigSpec.ConfigValue
<List<? extends T>> defineListAllowEmpty
(List<String> path, Supplier<List<? extends T>> defaultSupplier, Predicate<Object> elementValidator) <T> ForgeConfigSpec.ConfigValue
<List<? extends T>> defineListAllowEmpty
(List<String> path, List<? extends T> defaultValue, Predicate<Object> elementValidator) pop()
pop
(int count) translation
(String translationKey)
-
字段详细资料
-
storage
private final com.electronwill.nightconfig.core.Config storage -
context
-
levelComments
-
levelTranslationKeys
-
currentPath
-
values
-
-
构造器详细资料
-
Builder
public Builder()
-
-
方法详细资料
-
define
-
define
-
define
public <T> ForgeConfigSpec.ConfigValue<T> define(String path, T defaultValue, Predicate<Object> validator) -
define
public <T> ForgeConfigSpec.ConfigValue<T> define(List<String> path, T defaultValue, Predicate<Object> validator) -
define
public <T> ForgeConfigSpec.ConfigValue<T> define(String path, Supplier<T> defaultSupplier, Predicate<Object> validator) -
define
-
define
-
define
public <T> ForgeConfigSpec.ConfigValue<T> define(List<String> path, ForgeConfigSpec.ValueSpec value, Supplier<T> defaultSupplier) -
defineInRange
public <V extends Comparable<? super V>> ForgeConfigSpec.ConfigValue<V> defineInRange(String path, V defaultValue, V min, V max, Class<V> clazz) -
defineInRange
public <V extends Comparable<? super V>> ForgeConfigSpec.ConfigValue<V> defineInRange(List<String> path, V defaultValue, V min, V max, Class<V> clazz) -
defineInRange
public <V extends Comparable<? super V>> ForgeConfigSpec.ConfigValue<V> defineInRange(String path, Supplier<V> defaultSupplier, V min, V max, Class<V> clazz) -
defineInRange
public <V extends Comparable<? super V>> ForgeConfigSpec.ConfigValue<V> defineInRange(List<String> path, Supplier<V> defaultSupplier, V min, V max, Class<V> clazz) -
defineInList
public <T> ForgeConfigSpec.ConfigValue<T> defineInList(String path, T defaultValue, Collection<? extends T> acceptableValues) -
defineInList
public <T> ForgeConfigSpec.ConfigValue<T> defineInList(String path, Supplier<T> defaultSupplier, Collection<? extends T> acceptableValues) -
defineInList
public <T> ForgeConfigSpec.ConfigValue<T> defineInList(List<String> path, T defaultValue, Collection<? extends T> acceptableValues) -
defineInList
public <T> ForgeConfigSpec.ConfigValue<T> defineInList(List<String> path, Supplier<T> defaultSupplier, Collection<? extends T> acceptableValues) -
defineList
-
defineList
-
defineList
-
defineList
-
defineListAllowEmpty
-
defineListAllowEmpty
-
defineListAllowEmpty
-
defineListAllowEmpty
-
defineEnum
-
defineEnum
public <V extends Enum<V>> ForgeConfigSpec.EnumValue<V> defineEnum(String path, V defaultValue, com.electronwill.nightconfig.core.EnumGetMethod converter) -
defineEnum
public <V extends Enum<V>> ForgeConfigSpec.EnumValue<V> defineEnum(List<String> path, V defaultValue) -
defineEnum
public <V extends Enum<V>> ForgeConfigSpec.EnumValue<V> defineEnum(List<String> path, V defaultValue, com.electronwill.nightconfig.core.EnumGetMethod converter) -
defineEnum
public <V extends Enum<V>> ForgeConfigSpec.EnumValue<V> defineEnum(String path, V defaultValue, V... acceptableValues) -
defineEnum
public <V extends Enum<V>> ForgeConfigSpec.EnumValue<V> defineEnum(String path, V defaultValue, com.electronwill.nightconfig.core.EnumGetMethod converter, V... acceptableValues) -
defineEnum
public <V extends Enum<V>> ForgeConfigSpec.EnumValue<V> defineEnum(List<String> path, V defaultValue, V... acceptableValues) -
defineEnum
public <V extends Enum<V>> ForgeConfigSpec.EnumValue<V> defineEnum(List<String> path, V defaultValue, com.electronwill.nightconfig.core.EnumGetMethod converter, V... acceptableValues) -
defineEnum
public <V extends Enum<V>> ForgeConfigSpec.EnumValue<V> defineEnum(String path, V defaultValue, Collection<V> acceptableValues) -
defineEnum
public <V extends Enum<V>> ForgeConfigSpec.EnumValue<V> defineEnum(String path, V defaultValue, com.electronwill.nightconfig.core.EnumGetMethod converter, Collection<V> acceptableValues) -
defineEnum
public <V extends Enum<V>> ForgeConfigSpec.EnumValue<V> defineEnum(List<String> path, V defaultValue, Collection<V> acceptableValues) -
defineEnum
public <V extends Enum<V>> ForgeConfigSpec.EnumValue<V> defineEnum(List<String> path, V defaultValue, com.electronwill.nightconfig.core.EnumGetMethod converter, Collection<V> acceptableValues) -
defineEnum
public <V extends Enum<V>> ForgeConfigSpec.EnumValue<V> defineEnum(String path, V defaultValue, Predicate<Object> validator) -
defineEnum
public <V extends Enum<V>> ForgeConfigSpec.EnumValue<V> defineEnum(String path, V defaultValue, com.electronwill.nightconfig.core.EnumGetMethod converter, Predicate<Object> validator) -
defineEnum
-
defineEnum
-
defineEnum
-
defineEnum
-
defineEnum
-
defineEnum
-
define
-
define
-
define
-
define
-
defineInRange
public ForgeConfigSpec.FloatValue defineInRange(String path, float defaultValue, float min, float max) -
defineInRange
public ForgeConfigSpec.FloatValue defineInRange(List<String> path, float defaultValue, float min, float max) -
defineInRange
public ForgeConfigSpec.FloatValue defineInRange(String path, Supplier<Float> defaultSupplier, float min, float max) -
defineInRange
public ForgeConfigSpec.FloatValue defineInRange(List<String> path, Supplier<Float> defaultSupplier, float min, float max) -
defineInRange
public ForgeConfigSpec.DoubleValue defineInRange(String path, double defaultValue, double min, double max) -
defineInRange
public ForgeConfigSpec.DoubleValue defineInRange(List<String> path, double defaultValue, double min, double max) -
defineInRange
public ForgeConfigSpec.DoubleValue defineInRange(String path, Supplier<Double> defaultSupplier, double min, double max) -
defineInRange
public ForgeConfigSpec.DoubleValue defineInRange(List<String> path, Supplier<Double> defaultSupplier, double min, double max) -
defineInRange
-
defineInRange
public ForgeConfigSpec.ByteValue defineInRange(List<String> path, byte defaultValue, byte min, byte max) -
defineInRange
public ForgeConfigSpec.ByteValue defineInRange(String path, Supplier<Byte> defaultSupplier, byte min, byte max) -
defineInRange
public ForgeConfigSpec.ByteValue defineInRange(List<String> path, Supplier<Byte> defaultSupplier, byte min, byte max) -
defineInRange
public ForgeConfigSpec.ShortValue defineInRange(String path, short defaultValue, short min, short max) -
defineInRange
public ForgeConfigSpec.ShortValue defineInRange(List<String> path, short defaultValue, short min, short max) -
defineInRange
public ForgeConfigSpec.ShortValue defineInRange(String path, Supplier<Short> defaultSupplier, short min, short max) -
defineInRange
public ForgeConfigSpec.ShortValue defineInRange(List<String> path, Supplier<Short> defaultSupplier, short min, short max) -
defineInRange
-
defineInRange
public ForgeConfigSpec.IntValue defineInRange(List<String> path, int defaultValue, int min, int max) -
defineInRange
public ForgeConfigSpec.IntValue defineInRange(String path, Supplier<Integer> defaultSupplier, int min, int max) -
defineInRange
public ForgeConfigSpec.IntValue defineInRange(List<String> path, Supplier<Integer> defaultSupplier, int min, int max) -
defineInRange
-
defineInRange
public ForgeConfigSpec.LongValue defineInRange(List<String> path, long defaultValue, long min, long max) -
defineInRange
public ForgeConfigSpec.LongValue defineInRange(String path, Supplier<Long> defaultSupplier, long min, long max) -
defineInRange
public ForgeConfigSpec.LongValue defineInRange(List<String> path, Supplier<Long> defaultSupplier, long min, long max) -
comment
-
comment
-
translation
-
worldRestart
-
push
-
push
-
pop
-
pop
-
configure
public <T> org.apache.commons.lang3.tuple.Pair<T,ForgeConfigSpec> configure(Function<ForgeConfigSpec.Builder, T> consumer) -
build
-