Class BetterStats

java.lang.Object
com.thecsdev.betterstats.BetterStats
Direct Known Subclasses:
BetterStatsClient, BetterStatsServer

public class BetterStats extends Object
The main Class representing this mod. This is the main "common" entry-point executed by all sides (client/server) and all loaders (fabric/neoforge).
  • Field Details

    • MOD_ID

      public static final String 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 LOGGER
      The primary Logger instance used by this mod. Intended for this mod's internal/personal use only.
  • Constructor Details

    • BetterStats

      protected BetterStats()
  • Method Details

    • getInstance

      public static final BetterStats getInstance()
      Returns the instance of this BetterStats.
    • getConfig

      public static final BetterStatsConfig 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

      public final String getModName()
      Returns the name of this mod.
    • getModVersion

      public final String getModVersion()
      Returns the version of this mod, in String form.