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) static class
UserCache.Entry
-
Field Summary
Fields Modifier and Type Field Description private Map<String,UserCache.Entry>
byName
private Map<UUID,UserCache.Entry>
byUuid
private File
cacheFile
private AtomicLong
field_25724
private static Logger
field_25805
private Gson
gson
private com.mojang.authlib.GameProfileRepository
profileRepository
private static boolean
useRemote
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
add(com.mojang.authlib.GameProfile gameProfile)
com.mojang.authlib.GameProfile
findByName(String string)
private static com.mojang.authlib.GameProfile
findProfileByName(com.mojang.authlib.GameProfileRepository repository, String name)
com.mojang.authlib.GameProfile
getByUuid(UUID uUID)
private Stream<UserCache.Entry>
getLastAccessedEntries(int int2)
List<UserCache.Entry>
load()
private void
method_30164(UserCache.Entry entry)
private static JsonElement
method_30165(UserCache.Entry entry, DateFormat dateFormat)
private static UserCache.Entry
method_30167(JsonElement jsonElement, DateFormat dateFormat)
private long
method_30169()
private static DateFormat
method_30170()
void
save()
static void
setUseRemote(boolean value)
private static boolean
shouldUseRemote()
-
Field Details
-
field_25805
-
useRemote
private static boolean useRemote -
byName
-
byUuid
-
profileRepository
private final com.mojang.authlib.GameProfileRepository profileRepository -
gson
-
cacheFile
-
field_25724
-
-
Constructor Details
-
UserCache
-
-
Method Details
-
method_30164
-
findProfileByName
-
setUseRemote
public static void setUseRemote(boolean value) -
shouldUseRemote
private static boolean shouldUseRemote() -
add
public void add(com.mojang.authlib.GameProfile gameProfile) -
method_30169
private long method_30169() -
findByName
-
getByUuid
-
method_30170
-
load
-
save
public void save() -
getLastAccessedEntries
-
method_30165
-
method_30167
@Nullable private static UserCache.Entry method_30167(JsonElement jsonElement, DateFormat dateFormat)
-