net.minecraft.server.players

public class GameProfileCache

agj
net.minecraft.server.players.GameProfileCache
net.minecraft.class_3312
net.minecraft.util.UserCache
net.minecraft.src.C_90_
net.minecraft.server.players.UserCache

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
private void
a(agj$a arg0)
safeAdd(GameProfileCache$GameProfileInfo arg0)
method_30164(class_3312$class_3313 arg0)
add(UserCache$Entry entry)
m_10979_(C_90_$C_92_ arg0)
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)
m_10993_(com.mojang.authlib.GameProfileRepository p_10994_, String p_10995_)
public static void
a(boolean arg0)
setUsesAuthentication(boolean arg0)
method_14510(boolean arg0)
setUseRemote(boolean value)
m_11004_(boolean p_11005_)
private static boolean
d()
usesAuthentication()
method_14514()
shouldUseRemote()
m_11007_()
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)
m_10991_(com.mojang.authlib.GameProfile arg0)
private long
e()
getNextOperation()
method_30169()
incrementAndGetAccessCount()
m_11008_()
public Optional<com.mojang.authlib.GameProfile>
a(String arg0)
get(String arg0)
method_14515(String arg0)
findByName(String name)
m_10996_(String arg0)
public void
a(String arg0, Consumer<Optional<com.mojang.authlib.GameProfile>> arg1)
getAsync(String arg0, Consumer<Optional<com.mojang.authlib.GameProfile>> arg1)
method_37156(String arg0, Consumer<Optional<com.mojang.authlib.GameProfile>> arg1)
findByNameAsync(String username, Consumer<Optional<com.mojang.authlib.GameProfile>> consumer)
m_143967_(String p_143969_, Consumer<Optional<com.mojang.authlib.GameProfile>> arg1)
public Optional<com.mojang.authlib.GameProfile>
a(UUID arg0)
get(UUID arg0)
method_14512(UUID arg0)
getByUuid(UUID uuid)
m_11002_(UUID arg0)
public void
a(Executor arg0)
setExecutor(Executor arg0)
method_37157(Executor arg0)
setExecutor(Executor executor)
m_143974_(Executor arg0)
public void
a()
clearExecutor()
method_39753()
clearExecutor()
m_196559_()
private static DateFormat
f()
createDateFormat()
method_30170()
getDateFormat()
m_11009_()
public List<GameProfileCache$GameProfileInfo>
b()
load()
method_14517()
load()
m_10976_()
public void
c()
save()
method_14518()
save()
m_11006_()
private Stream<GameProfileCache$GameProfileInfo>
a(int arg0)
getTopMRUProfiles(int arg0)
method_14516(int arg0)
getLastAccessedEntries(int limit)
m_10977_(int arg0)
private static com.google.gson.JsonElement
a(agj$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)
m_10981_(C_90_$C_92_ p_10982_, DateFormat p_10983_)
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)
m_10988_(com.google.gson.JsonElement p_10989_, DateFormat p_10990_)