Package net.minecraftforge.common
Class ForgeConfigSpec.BuilderContext
- java.lang.Object
-
- net.minecraftforge.common.ForgeConfigSpec.BuilderContext
-
- Enclosing class:
- ForgeConfigSpec
private static class ForgeConfigSpec.BuilderContext extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Class<?>
clazz
private java.lang.String[]
comment
private java.lang.String
langKey
private ForgeConfigSpec.Range<?>
range
private boolean
worldRestart
-
Constructor Summary
Constructors Modifier Constructor Description private
BuilderContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
buildComment()
void
ensureEmpty()
java.lang.Class<?>
getClazz()
java.lang.String[]
getComment()
<V extends java.lang.Comparable<? super V>>
ForgeConfigSpec.Range<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>>
voidsetRange(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()
-
-
-
Field Detail
-
comment
@Nonnull private java.lang.String[] comment
-
langKey
private java.lang.String langKey
-
range
private ForgeConfigSpec.Range<?> range
-
worldRestart
private boolean worldRestart
-
clazz
private java.lang.Class<?> clazz
-
-
Method Detail
-
setComment
public void setComment(java.lang.String... value)
-
hasComment
public boolean hasComment()
-
getComment
public java.lang.String[] getComment()
-
buildComment
public java.lang.String buildComment()
-
setTranslationKey
public void setTranslationKey(java.lang.String value)
-
getTranslationKey
public java.lang.String getTranslationKey()
-
setRange
public <V extends java.lang.Comparable<? super V>> void setRange(ForgeConfigSpec.Range<V> value)
-
getRange
public <V extends java.lang.Comparable<? super V>> ForgeConfigSpec.Range<V> getRange()
-
worldRestart
public void worldRestart()
-
needsWorldRestart
public boolean needsWorldRestart()
-
setClazz
public void setClazz(java.lang.Class<?> clazz)
-
getClazz
public java.lang.Class<?> getClazz()
-
ensureEmpty
public void ensureEmpty()
-
validate
private void validate(java.lang.Object value, java.lang.String message)
-
validate
private void validate(boolean value, java.lang.String message)
-
-