Class ForgeConfigSpec.BuilderContext

java.lang.Object
net.minecraftforge.common.ForgeConfigSpec.BuilderContext
Enclosing class:
ForgeConfigSpec

private static class ForgeConfigSpec.BuilderContext extends Object
  • Field Details

    • comment

      @Nonnull private String[] comment
    • langKey

      private String langKey
    • range

      private ForgeConfigSpec.Range<?> range
    • worldRestart

      private boolean worldRestart
    • clazz

      private Class<?> clazz
  • Constructor Details

    • BuilderContext

      private BuilderContext()
  • Method Details

    • setComment

      public void setComment(String... value)
    • hasComment

      public boolean hasComment()
    • getComment

      public String[] getComment()
    • buildComment

      public String buildComment()
    • setTranslationKey

      public void setTranslationKey(String value)
    • getTranslationKey

      public String getTranslationKey()
    • setRange

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

      public <V extends Comparable<? super V>> ForgeConfigSpec.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)