Class BetterStatsConfig

java.lang.Object
com.thecsdev.common.config.JsonConfig
com.thecsdev.commonmc.api.config.ModConfig
com.thecsdev.betterstats.BetterStatsConfig

public final class BetterStatsConfig extends com.thecsdev.commonmc.api.config.ModConfig
The configuration ModConfig for the BetterStats mod.
  • Field Summary

    Fields inherited from class com.thecsdev.common.config.JsonConfig

    configFile, GSON
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Whether this mod is allowed to display public-service-announcement messages in chat.
    final boolean
    Whether this mod's commands are to be registered.
    final boolean
    Whether experimental features are allowed to show up in-game.
    final @NotNull URI
    The HTTP rest API endpoint URI used by this mod.
    final boolean
    Whether entities rendered in client "mob stats" GUI should follow the cursor.
    protected final void
    onLoad(@NonNull com.google.gson.JsonObject from)
     
    final void
    setAllowChatPsaMessages(boolean value)
    Sets whether this mod is allowed to display public-service-announcement messages in chat.
    final void
    setApiEndpoint(@NotNull URI value)
    Sets the HTTP rest API endpoint URI used by this mod.
    final void
    setExperimentsEnabled(boolean value)
    Sets whether experimental features are allowed to show up in-game.
    final void
    setGuiMobsFollowCursor(boolean value)
    Sets whether entities rendered in client "mob stats" GUI should follow the cursor.
    final void
    setRegisterCommands(boolean value)
    Sets whether this mod's commands are to be registered.

    Methods inherited from class com.thecsdev.common.config.JsonConfig

    getConfigFile, getDeserializableProperties, getProperties, getPropertyNames, getSerializableProperties, loadFromFile, loadFromJson, onSave, saveToFile, saveToJson, saveToJson, setConfigFile

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BetterStatsConfig

      public BetterStatsConfig()
  • Method Details

    • canRegisterCommands

      public final boolean canRegisterCommands()
      Whether this mod's commands are to be registered.
    • getApiEndpoint

      @NotNull public final @NotNull URI getApiEndpoint()
      The HTTP rest API endpoint URI used by this mod.
    • getGuiMobsFollowCursor

      public final boolean getGuiMobsFollowCursor()
      Whether entities rendered in client "mob stats" GUI should follow the cursor.
    • allowsChatPsaMessages

      public final boolean allowsChatPsaMessages()
      Whether this mod is allowed to display public-service-announcement messages in chat.
    • experimentsEnabled

      public final boolean experimentsEnabled()
      Whether experimental features are allowed to show up in-game.
    • setRegisterCommands

      public final void setRegisterCommands(boolean value)
      Sets whether this mod's commands are to be registered.
    • setApiEndpoint

      public final void setApiEndpoint(@NotNull @NotNull URI value) throws NullPointerException
      Sets the HTTP rest API endpoint URI used by this mod.
      Parameters:
      value - The new API endpoint URI.
      Throws:
      NullPointerException - If the argument is null.
    • setGuiMobsFollowCursor

      public final void setGuiMobsFollowCursor(boolean value)
      Sets whether entities rendered in client "mob stats" GUI should follow the cursor.
    • setAllowChatPsaMessages

      public final void setAllowChatPsaMessages(boolean value)
      Sets whether this mod is allowed to display public-service-announcement messages in chat.
    • setExperimentsEnabled

      public final void setExperimentsEnabled(boolean value)
      Sets whether experimental features are allowed to show up in-game.
    • onLoad

      protected final void onLoad(@NonNull com.google.gson.JsonObject from)
      Overrides:
      onLoad in class com.thecsdev.common.config.JsonConfig