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 -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanWhether this mod is allowed to display public-service-announcement messages in chat.final booleanWhether this mod's commands are to be registered.final booleanWhether experimental features are allowed to show up in-game.final @NotNull URIThe HTTP rest API endpointURIused by this mod.final booleanWhether entities rendered in client "mob stats" GUI should follow the cursor.protected final voidonLoad(@NonNull com.google.gson.JsonObject from) final voidsetAllowChatPsaMessages(boolean value) Sets whether this mod is allowed to display public-service-announcement messages in chat.final voidsetApiEndpoint(@NotNull URI value) Sets the HTTP rest API endpointURIused by this mod.final voidsetExperimentsEnabled(boolean value) Sets whether experimental features are allowed to show up in-game.final voidsetGuiMobsFollowCursor(boolean value) Sets whether entities rendered in client "mob stats" GUI should follow the cursor.final voidsetRegisterCommands(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
-
Constructor Details
-
BetterStatsConfig
public BetterStatsConfig()
-
-
Method Details
-
canRegisterCommands
public final boolean canRegisterCommands()Whether this mod's commands are to be registered. -
getApiEndpoint
-
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
Sets the HTTP rest API endpointURIused by this mod.- Parameters:
value- The new API endpointURI.- Throws:
NullPointerException- If the argument isnull.
-
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:
onLoadin classcom.thecsdev.common.config.JsonConfig
-