Class ModConfigSpec.BuilderContext

java.lang.Object
net.neoforged.neoforge.common.ModConfigSpec.BuilderContext
Enclosing class:
ModConfigSpec

private static class ModConfigSpec.BuilderContext extends Object
  • Field Details

  • Constructor Details

    • BuilderContext

      private BuilderContext()
  • Method Details

    • addComment

      public void addComment(String value)
    • clearComment

      public void clearComment()
    • hasComment

      public boolean hasComment()
    • buildComment

      public String buildComment()
    • buildComment

      public String buildComment(List<String> path)
    • setTranslationKey

      public void setTranslationKey(String value)
    • getTranslationKey

      public String getTranslationKey()
    • setRange

      public <V extends Comparable<? super V>> void setRange(ModConfigSpec.Range<V> value)
    • getRange

      public <V extends Comparable<? super V>> ModConfigSpec.Range<V> getRange()
    • worldRestart

      public void worldRestart()
    • needsWorldRestart

      public boolean needsWorldRestart()
    • setClazz

      public void setClazz(Class<?> clazz)
    • getClazz

      public Class<?> getClazz()
    • ensureEmpty

      public void ensureEmpty()
    • validate

      private void validate(Object value, String message)
    • validate

      private void validate(boolean value, String message)