Class LexiconfiguredValue<T>

java.lang.Object
com.codinglitch.lexiconfig.compat.configured.LexiconfiguredValue<T>
All Implemented Interfaces:
com.mrcrayfish.configured.api.IConfigValue<T>

public class LexiconfiguredValue<T> extends Object implements com.mrcrayfish.configured.api.IConfigValue<T>
  • Field Details

  • Constructor Details

  • Method Details

    • update

      public void update()
    • get

      public T get()
      Specified by:
      get in interface com.mrcrayfish.configured.api.IConfigValue<T>
    • getDefault

      public T getDefault()
      Specified by:
      getDefault in interface com.mrcrayfish.configured.api.IConfigValue<T>
    • set

      public void set(T value)
      Specified by:
      set in interface com.mrcrayfish.configured.api.IConfigValue<T>
    • isValid

      public boolean isValid(T value)
      Specified by:
      isValid in interface com.mrcrayfish.configured.api.IConfigValue<T>
    • isDefault

      public boolean isDefault()
      Specified by:
      isDefault in interface com.mrcrayfish.configured.api.IConfigValue<T>
    • isChanged

      public boolean isChanged()
      Specified by:
      isChanged in interface com.mrcrayfish.configured.api.IConfigValue<T>
    • restore

      public void restore()
      Specified by:
      restore in interface com.mrcrayfish.configured.api.IConfigValue<T>
    • getComment

      @Nullable public @Nullable net.minecraft.network.chat.Component getComment()
      Specified by:
      getComment in interface com.mrcrayfish.configured.api.IConfigValue<T>
    • getTranslationKey

      @Nullable public @Nullable String getTranslationKey()
      Specified by:
      getTranslationKey in interface com.mrcrayfish.configured.api.IConfigValue<T>
    • getValidationHint

      @Nullable public @Nullable net.minecraft.network.chat.Component getValidationHint()
      Specified by:
      getValidationHint in interface com.mrcrayfish.configured.api.IConfigValue<T>
    • getName

      public String getName()
      Specified by:
      getName in interface com.mrcrayfish.configured.api.IConfigValue<T>
    • cleanCache

      public void cleanCache()
      Specified by:
      cleanCache in interface com.mrcrayfish.configured.api.IConfigValue<T>
    • requiresWorldRestart

      public boolean requiresWorldRestart()
      Specified by:
      requiresWorldRestart in interface com.mrcrayfish.configured.api.IConfigValue<T>
    • requiresGameRestart

      public boolean requiresGameRestart()
      Specified by:
      requiresGameRestart in interface com.mrcrayfish.configured.api.IConfigValue<T>