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 @Nullable Class
<?> private @Nullable String
private @Nullable ModConfigSpec.Range
<?> private ModConfigSpec.RestartType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addComment
(String value) buildComment
(List<String> path) void
void
void
@Nullable Class
<?> getClazz()
<V extends Comparable<? super V>>
@Nullable ModConfigSpec.Range<V> getRange()
@Nullable String
boolean
void
<V extends Comparable<? super V>>
voidsetRange
(ModConfigSpec.Range<V> value) void
setTranslationKey
(@Nullable String value) private void
private void
void
-
Field Details
-
comment
-
langKey
-
range
-
restartType
-
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() -
gameRestart
public void gameRestart() -
restartType
-
setClazz
-
getClazz
-
ensureEmpty
public void ensureEmpty() -
validate
-
validate
-