net.minecraft.server.players

public class GameProfileCache

awe
net.minecraft.server.players.GameProfileCache
net.minecraft.class_3312
net.minecraft.util.UserCache
net.minecraft.server.players.UserCache

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
a
LOGGER
field_25805
LOGGER
private static final int
b
GAMEPROFILES_MRU_LIMIT
field_29788
MAX_SAVED_ENTRIES
private static final int
c
GAMEPROFILES_EXPIRATION_MONTHS
field_29789
field_29789
private static boolean
d
usesAuthentication
field_14313
useRemote
private final Map<String, GameProfileCache$GameProfileInfo>
e
profilesByName
field_14312
byName
private final Map<UUID, GameProfileCache$GameProfileInfo>
f
profilesByUUID
field_14310
byUuid
private final Map<String, CompletableFuture<Optional<com.mojang.authlib.GameProfile>>>
g
requests
field_33860
pendingRequests
private final com.mojang.authlib.GameProfileRepository
h
profileRepository
field_14315
profileRepository
private final com.google.gson.Gson
i
gson
field_14318
gson
private final File
j
file
field_14314
cacheFile
private final AtomicLong
k
operationCount
field_25724
accessCount
private Executor
l
executor
field_33861
executor

Constructor summary

ModifierConstructor
public (com.mojang.authlib.GameProfileRepository profileRepository, File cacheFile)

Method summary

Modifier and TypeMethod
private void
a(awe$a arg0)
safeAdd(GameProfileCache$GameProfileInfo arg0)
method_30164(class_3312$class_3313 arg0)
add(UserCache$Entry entry)
private static Optional<com.mojang.authlib.GameProfile>
a(com.mojang.authlib.GameProfileRepository arg0, String arg1)
lookupGameProfile(com.mojang.authlib.GameProfileRepository arg0, String arg1)
method_14509(com.mojang.authlib.GameProfileRepository arg0, String arg1)
findProfileByName(com.mojang.authlib.GameProfileRepository repository, String name)
private static Optional<com.mojang.authlib.GameProfile>
c(String arg0)
createUnknownProfile(String arg0)
method_53912(String arg0)
getOfflinePlayerProfile(String name)
public static void
a(boolean arg0)
setUsesAuthentication(boolean arg0)
method_14510(boolean arg0)
setUseRemote(boolean value)
private static boolean
d()
usesAuthentication()
method_14514()
shouldUseRemote()
public void
a(com.mojang.authlib.GameProfile arg0)
add(com.mojang.authlib.GameProfile arg0)
method_14508(com.mojang.authlib.GameProfile arg0)
add(com.mojang.authlib.GameProfile profile)
private long
e()
getNextOperation()
method_30169()
incrementAndGetAccessCount()
public Optional<com.mojang.authlib.GameProfile>
a(String arg0)
get(String arg0)
method_14515(String arg0)
findByName(String name)
public CompletableFuture<Optional<com.mojang.authlib.GameProfile>>
b(String arg0)
getAsync(String arg0)
method_37156(String arg0)
findByNameAsync(String username)
public Optional<com.mojang.authlib.GameProfile>
a(UUID arg0)
get(UUID arg0)
method_14512(UUID arg0)
getByUuid(UUID uuid)
public void
a(Executor arg0)
setExecutor(Executor arg0)
method_37157(Executor arg0)
setExecutor(Executor executor)
public void
a()
clearExecutor()
method_39753()
clearExecutor()
private static DateFormat
f()
createDateFormat()
method_30170()
getDateFormat()
public List<GameProfileCache$GameProfileInfo>
b()
load()
method_14517()
load()
public void
c()
save()
method_14518()
save()
private Stream<GameProfileCache$GameProfileInfo>
a(int arg0)
getTopMRUProfiles(int arg0)
method_14516(int arg0)
getLastAccessedEntries(int limit)
private static com.google.gson.JsonElement
a(awe$a arg0, DateFormat arg1)
writeGameProfile(GameProfileCache$GameProfileInfo arg0, DateFormat arg1)
method_30165(class_3312$class_3313 arg0, DateFormat arg1)
entryToJson(UserCache$Entry entry, DateFormat dateFormat)
private static Optional<GameProfileCache$GameProfileInfo>
a(com.google.gson.JsonElement arg0, DateFormat arg1)
readGameProfile(com.google.gson.JsonElement arg0, DateFormat arg1)
method_30167(com.google.gson.JsonElement arg0, DateFormat arg1)
entryFromJson(com.google.gson.JsonElement json, DateFormat dateFormat)