net.minecraft.server.players

public class CachedUserNameToIdResolver

implements UserNameToIdResolver

bay
net.minecraft.server.players.CachedUserNameToIdResolver
net.minecraft.class_3312
net.minecraft.util.UserCache
net.minecraft.src.C_411351_
net.minecraft.server.players.CachedUserNameToIdResolver

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
a
LOGGER
field_25805
LOGGER
f_411529_
private static final int
b
GAMEPROFILES_MRU_LIMIT
field_29788
MAX_SAVED_ENTRIES
f_412041_
private static final int
c
GAMEPROFILES_EXPIRATION_MONTHS
field_29789
field_29789
f_413356_
private boolean
d
resolveOfflineUsers
field_61163
offlineMode
f_413216_
private final Map<String, CachedUserNameToIdResolver$GameProfileInfo>
e
profilesByName
field_14312
byName
f_412027_
private final Map<UUID, CachedUserNameToIdResolver$GameProfileInfo>
f
profilesByUUID
field_14310
byUuid
f_413834_
private final com.mojang.authlib.GameProfileRepository
g
profileRepository
field_14315
profileRepository
f_414071_
private final com.google.gson.Gson
h
gson
field_14318
gson
f_413681_
private final File
i
file
field_14314
cacheFile
f_411764_
private final AtomicLong
j
operationCount
field_25724
accessCount
f_413536_

Constructor summary

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

Method summary

Modifier and TypeMethod
private void
a(bay$a arg0)
safeAdd(CachedUserNameToIdResolver$GameProfileInfo arg0)
method_30164(class_3312$class_3313 arg0)
add(UserCache$Entry entry)
m_420168_(C_411351_$C_411234_ arg0)
private Optional<NameAndId>
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 arg1)
m_416180_(com.mojang.authlib.GameProfileRepository p_428400_, String arg1)
private Optional<NameAndId>
b(String arg0)
createUnknownProfile(String arg0)
method_53912(String arg0)
getOfflinePlayerProfile(String arg0)
m_414957_(String arg0)
public void
a(boolean arg0)
resolveOfflineUsers(boolean arg0)
method_72367(boolean arg0)
setOfflineMode(boolean arg0)
m_416219_(boolean arg0)
public void
a(bbb arg0)
add(NameAndId arg0)
method_14508(class_11560 arg0)
add(PlayerConfigEntry arg0)
m_416269_(C_410914_ arg0)
private CachedUserNameToIdResolver$GameProfileInfo
b(bbb arg0)
addInternal(NameAndId arg0)
method_72368(class_11560 arg0)
addToCache(PlayerConfigEntry player)
m_416371_(C_410914_ arg0)
private long
b()
getNextOperation()
method_30169()
incrementAndGetAccessCount()
m_419842_()
public Optional<NameAndId>
a(String arg0)
get(String arg0)
method_14515(String arg0)
findByName(String arg0)
m_415490_(String arg0)
public Optional<NameAndId>
a(UUID arg0)
get(UUID arg0)
method_14512(UUID arg0)
getByUuid(UUID arg0)
m_415584_(UUID arg0)
private static DateFormat
c()
createDateFormat()
method_30170()
getDateFormat()
m_417546_()
private List<CachedUserNameToIdResolver$GameProfileInfo>
d()
load()
method_14517()
load()
m_420466_()
public void
a()
save()
method_14518()
save()
m_417247_()
private Stream<CachedUserNameToIdResolver$GameProfileInfo>
a(int arg0)
getTopMRUProfiles(int arg0)
method_14516(int arg0)
getLastAccessedEntries(int limit)
m_415193_(int arg0)
private static com.google.gson.JsonElement
a(bay$a arg0, DateFormat arg1)
writeGameProfile(CachedUserNameToIdResolver$GameProfileInfo arg0, DateFormat arg1)
method_30165(class_3312$class_3313 arg0, DateFormat arg1)
entryToJson(UserCache$Entry entry, DateFormat dateFormat)
m_418184_(C_411351_$C_411234_ p_426654_, DateFormat p_431612_)
private static Optional<CachedUserNameToIdResolver$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_420450_(com.google.gson.JsonElement p_427116_, DateFormat p_423404_)