Class BetterStats
java.lang.Object
com.thecsdev.betterstats.BetterStats
- Direct Known Subclasses:
BetterStatsClient, BetterStatsServer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final BetterStatsConfigReturns the configuration data for this mod.static final BetterStatsReturns the instance of thisBetterStats.final StringReturns the name of this mod.final StringReturns the version of this mod, inStringform.static final StringgetProperty(@NotNull String key) Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
MOD_ID
The value of this variable MUST accurately reflect the same value as 'mod.id' from 'gradle.properties'.- See Also:
-
LOGGER
public static final org.slf4j.Logger LOGGERThe primaryLoggerinstance used by this mod. Intended for this mod's internal/personal use only.
-
-
Constructor Details
-
BetterStats
protected BetterStats()
-
-
Method Details
-
getInstance
Returns the instance of thisBetterStats. -
getConfig
Returns the configuration data for this mod. -
getProperty
@Deprecated(forRemoval=true) public static final String getProperty(@NotNull @NotNull String key) throws IllegalStateException Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of a given key from this mod's 'gradle.properties'.- Parameters:
key- The property key to look for.- Throws:
IllegalStateException- If this mod is not yet initialized.
-
getModName
Returns the name of this mod. -
getModVersion
-