private static class ForgeConfigSpec.BuilderContext
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.Class<?> |
clazz |
private java.lang.String[] |
comment |
private java.lang.String |
langKey |
private ForgeConfigSpec.Range<?> |
range |
private boolean |
worldRestart |
Modifier | Constructor and Description |
---|---|
private |
BuilderContext() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
buildComment() |
void |
ensureEmpty() |
java.lang.Class<?> |
getClazz() |
java.lang.String[] |
getComment() |
<V extends java.lang.Comparable<? super V>> |
getRange() |
java.lang.String |
getTranslationKey() |
boolean |
hasComment() |
boolean |
needsWorldRestart() |
void |
setClazz(java.lang.Class<?> clazz) |
void |
setComment(java.lang.String... value) |
<V extends java.lang.Comparable<? super V>> |
setRange(ForgeConfigSpec.Range<V> value) |
void |
setTranslationKey(java.lang.String value) |
private void |
validate(boolean value,
java.lang.String message) |
private void |
validate(java.lang.Object value,
java.lang.String message) |
void |
worldRestart() |
@Nonnull private java.lang.String[] comment
private java.lang.String langKey
private ForgeConfigSpec.Range<?> range
private boolean worldRestart
private java.lang.Class<?> clazz
public void setComment(java.lang.String... value)
public boolean hasComment()
public java.lang.String[] getComment()
public java.lang.String buildComment()
public void setTranslationKey(java.lang.String value)
public java.lang.String getTranslationKey()
public <V extends java.lang.Comparable<? super V>> void setRange(ForgeConfigSpec.Range<V> value)
public <V extends java.lang.Comparable<? super V>> ForgeConfigSpec.Range<V> getRange()
public void worldRestart()
public boolean needsWorldRestart()
public void setClazz(java.lang.Class<?> clazz)
public java.lang.Class<?> getClazz()
public void ensureEmpty()
private void validate(java.lang.Object value, java.lang.String message)
private void validate(boolean value, java.lang.String message)