类 ForgeConfigSpec.ConfigValue<T>
java.lang.Object
net.minecraftforge.common.ForgeConfigSpec.ConfigValue<T>
- 所有已实现的接口:
Supplier<T>
- 直接已知子类:
ForgeConfigSpec.BooleanValue
,ForgeConfigSpec.ByteValue
,ForgeConfigSpec.DoubleValue
,ForgeConfigSpec.EnumValue
,ForgeConfigSpec.FloatValue
,ForgeConfigSpec.IntValue
,ForgeConfigSpec.LongValue
,ForgeConfigSpec.ShortValue
- 封闭类:
ForgeConfigSpec
-
字段概要
字段修饰符和类型字段说明private T
private final ForgeConfigSpec.Builder
private ForgeConfigSpec
private static final boolean
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
get()
Returns the actual value for the configuration setting, throwing if the config has not yet been loaded.返回 the default value for the configuration setting。getPath()
protected T
getRaw
(com.electronwill.nightconfig.core.Config config, List<String> path, Supplier<T> defaultSupplier) next()
void
save()
void
-
字段详细资料
-
USE_CACHES
private static final boolean USE_CACHES- 另请参阅:
-
parent
-
path
-
defaultSupplier
-
cachedValue
-
spec
-
-
构造器详细资料
-
ConfigValue
ConfigValue(ForgeConfigSpec.Builder parent, List<String> path, Supplier<T> defaultSupplier)
-
-
方法详细资料
-
getPath
-
get
Returns the actual value for the configuration setting, throwing if the config has not yet been loaded.- 指定者:
get
在接口中Supplier<T>
- 返回:
- the actual value for the setting
- 抛出:
NullPointerException
- if theconfig spec
object that will contain this has not yet been builtIllegalStateException
- if the associated config has not yet been loaded
-
getRaw
-
getDefault
返回 the default value for the configuration setting。- 返回:
- the default value for the configuration setting
-
next
-
save
public void save() -
set
-
clearCache
public void clearCache()
-