public class PlayerProfileCache
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.text.SimpleDateFormat |
DATE_FORMAT |
protected Gson |
gson |
Constructor and Description |
---|
PlayerProfileCache(GameProfileRepository profileRepoIn,
java.io.File usercacheFileIn) |
Modifier and Type | Method and Description |
---|---|
void |
addEntry(GameProfile gameProfile) |
GameProfile |
getGameProfileForUsername(java.lang.String username) |
GameProfile |
getProfileByUUID(java.util.UUID uuid) |
java.lang.String[] |
getUsernames() |
void |
load() |
void |
save() |
static void |
setOnlineMode(boolean onlineModeIn) |
public static final java.text.SimpleDateFormat DATE_FORMAT
protected final Gson gson
public PlayerProfileCache(GameProfileRepository profileRepoIn, java.io.File usercacheFileIn)
public static void setOnlineMode(boolean onlineModeIn)
public void addEntry(GameProfile gameProfile)
public GameProfile getGameProfileForUsername(java.lang.String username)
public java.lang.String[] getUsernames()
public GameProfile getProfileByUUID(java.util.UUID uuid)
public void load()
public void save()