Package net.minecraft.util
Class UserCache
java.lang.Object
net.minecraft.util.UserCache
public class UserCache extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classUserCache.Entry(package private) classUserCache.JsonConverter -
Field Summary
Fields Modifier and Type Field Description private Deque<com.mojang.authlib.GameProfile>byAccessTimeprivate Map<String,UserCache.Entry>byNameprivate Map<UUID,UserCache.Entry>byUuidprivate FilecacheFileprivate static TypeToken<List<UserCache.Entry>>ENTRY_LIST_TYPEstatic SimpleDateFormatEXPIRATION_DATE_FORMATprotected Gsongsonprivate com.mojang.authlib.GameProfileRepositoryprofileRepositoryprivate static booleanuseRemote -
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidadd(com.mojang.authlib.GameProfile gameProfile)private voidadd(com.mojang.authlib.GameProfile profile, Date date)com.mojang.authlib.GameProfilefindByName(String string)private static com.mojang.authlib.GameProfilefindProfileByName(com.mojang.authlib.GameProfileRepository repository, String name)com.mojang.authlib.GameProfilegetByUuid(UUID uUID)private UserCache.EntrygetEntry(UUID uUID)private List<UserCache.Entry>getLastAccessedEntries(int int2)voidload()voidsave()static voidsetUseRemote(boolean value)private static booleanshouldUseRemote()
-
Field Details
-
EXPIRATION_DATE_FORMAT
-
useRemote
private static boolean useRemote -
ENTRY_LIST_TYPE
-
byName
-
byUuid
-
byAccessTime
-
profileRepository
private final com.mojang.authlib.GameProfileRepository profileRepository -
gson
-
cacheFile
-
-
Constructor Details
-
Method Details
-
findProfileByName
private static com.mojang.authlib.GameProfile findProfileByName(com.mojang.authlib.GameProfileRepository repository, String name) -
setUseRemote
public static void setUseRemote(boolean value) -
shouldUseRemote
private static boolean shouldUseRemote() -
add
public void add(com.mojang.authlib.GameProfile gameProfile) -
add
-
findByName
-
getByUuid
-
getEntry
-
load
public void load() -
save
public void save() -
getLastAccessedEntries
-