public class PlayerProfileCache
extends java.lang.Object
修飾子とタイプ | フィールドと説明 |
---|---|
static java.text.SimpleDateFormat |
DATE_FORMAT |
protected com.google.gson.Gson |
gson |
コンストラクタと説明 |
---|
PlayerProfileCache(com.mojang.authlib.GameProfileRepository profileRepoIn,
java.io.File usercacheFileIn) |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
addEntry(com.mojang.authlib.GameProfile gameProfile)
Add an entry to this cache
|
com.mojang.authlib.GameProfile |
getGameProfileForUsername(java.lang.String username)
Get a player's GameProfile given their username.
|
com.mojang.authlib.GameProfile |
getProfileByUUID(java.util.UUID uuid)
Get a player's
GameProfile given their UUID |
void |
load()
Load the cached profiles from disk
|
void |
save()
Save the cached profiles to disk
|
static void |
setOnlineMode(boolean onlineModeIn) |
public static final java.text.SimpleDateFormat DATE_FORMAT
protected final com.google.gson.Gson gson
public PlayerProfileCache(com.mojang.authlib.GameProfileRepository profileRepoIn, java.io.File usercacheFileIn)
public static void setOnlineMode(boolean onlineModeIn)
public void addEntry(com.mojang.authlib.GameProfile gameProfile)
@Nullable public com.mojang.authlib.GameProfile getGameProfileForUsername(java.lang.String username)
@Nullable public com.mojang.authlib.GameProfile getProfileByUUID(java.util.UUID uuid)
GameProfile
given their UUIDpublic void load()
public void save()