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 classUserCache.Entry -
Field Summary
Fields Modifier and Type Field Description private Map<String,UserCache.Entry>byNameprivate Map<UUID,UserCache.Entry>byUuidprivate FilecacheFileprivate AtomicLongfield_25724private static Loggerfield_25805private Gsongsonprivate com.mojang.authlib.GameProfileRepositoryprofileRepositoryprivate static booleanuseRemote -
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidadd(com.mojang.authlib.GameProfile gameProfile)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 Stream<UserCache.Entry>getLastAccessedEntries(int int2)List<UserCache.Entry>load()private voidmethod_30164(UserCache.Entry entry)private static JsonElementmethod_30165(UserCache.Entry entry, DateFormat dateFormat)private static UserCache.Entrymethod_30167(JsonElement jsonElement, DateFormat dateFormat)private longmethod_30169()private static DateFormatmethod_30170()voidsave()static voidsetUseRemote(boolean value)private static booleanshouldUseRemote()
-
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)
-