Package studio.magemonkey.fabled.data
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
PlayerStats
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
- Specified by:
getNames
in interfacestudio.magemonkey.codex.mccore.scoreboard.StatHolder
- Returns:
- list of stats for the scoreboard
-
getValues
- Specified by:
getValues
in interfacestudio.magemonkey.codex.mccore.scoreboard.StatHolder
- Returns:
- populated list of values
-