Package net.neoforged.neoforge.common
Class ModConfigSpec.BuilderContext
java.lang.Object
net.neoforged.neoforge.common.ModConfigSpec.BuilderContext
- Enclosing class:
ModConfigSpec
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Class<?> private Stringprivate ModConfigSpec.Range<?> private boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddComment(String value) buildComment(List<String> path) voidvoidClass<?> getClazz()<V extends Comparable<? super V>>
ModConfigSpec.Range<V> getRange()booleanbooleanvoid<V extends Comparable<? super V>>
voidsetRange(ModConfigSpec.Range<V> value) voidsetTranslationKey(String value) private voidprivate voidvoid
-
Field Details
-
comment
-
langKey
-
range
-
worldRestart
private boolean worldRestart -
clazz
-
-
Constructor Details
-
BuilderContext
private BuilderContext()
-
-
Method Details
-
addComment
-
clearComment
public void clearComment() -
hasComment
public boolean hasComment() -
buildComment
-
buildComment
-
setTranslationKey
-
getTranslationKey
-
setRange
-
getRange
-
worldRestart
public void worldRestart() -
needsWorldRestart
public boolean needsWorldRestart() -
setClazz
-
getClazz
-
ensureEmpty
public void ensureEmpty() -
validate
-
validate
-