Class PlayerStats

java.lang.Object
studio.magemonkey.fabled.data.PlayerStats
All Implemented Interfaces:
studio.magemonkey.codex.mccore.scoreboard.StatHolder

public class PlayerStats extends Object implements studio.magemonkey.codex.mccore.scoreboard.StatHolder
Stat provider for the MCCore stat scoreboard
  • Constructor Details

    • PlayerStats

      public PlayerStats(PlayerClass player)
      Constructor
      Parameters:
      player - player to show stats for
  • Method Details

    • init

      public static void init()
      Initializes the offline players used by the scoreboard. This is done by the API on startup so do not call this method.
    • clear

      public static void clear()
      Clears the initialized offline players. This is done by the API upon disable so do not call this method.
    • getNames

      public List<String> getNames()
      Specified by:
      getNames in interface studio.magemonkey.codex.mccore.scoreboard.StatHolder
      Returns:
      list of stats for the scoreboard
    • getValues

      public ArrayList<Integer> getValues()
      Specified by:
      getValues in interface studio.magemonkey.codex.mccore.scoreboard.StatHolder
      Returns:
      populated list of values