net.minecraft.server.players

public class CachedUserNameToIdResolver

implements UserNameToIdResolver

ayc
net.minecraft.server.players.CachedUserNameToIdResolver
net.minecraft.class_3312
net.minecraft.util.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 boolean
d
resolveOfflineUsers
field_61163
offlineMode
private final Map<String, CachedUserNameToIdResolver$GameProfileInfo>
e
profilesByName
field_14312
byName
private final Map<UUID, CachedUserNameToIdResolver$GameProfileInfo>
f
profilesByUUID
field_14310
byUuid
private final Map<String, CompletableFuture<Optional<NameAndId>>>
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

Constructor summary

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

Method summary

Modifier and TypeMethod
private void
a(ayc$a arg0)
safeAdd(CachedUserNameToIdResolver$GameProfileInfo arg0)
method_30164(class_3312$class_3313 arg0)
add(UserCache$Entry entry)
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)
private Optional<NameAndId>
c(String arg0)
createUnknownProfile(String arg0)
method_53912(String arg0)
getOfflinePlayerProfile(String arg0)
public void
a(boolean arg0)
resolveOfflineUsers(boolean arg0)
method_72367(boolean arg0)
setOfflineMode(boolean arg0)
public void
a(ayf arg0)
add(NameAndId arg0)
method_14508(class_11560 arg0)
add(PlayerConfigEntry arg0)
private CachedUserNameToIdResolver$GameProfileInfo
b(ayf arg0)
addInternal(NameAndId arg0)
method_72368(class_11560 arg0)
addToCache(PlayerConfigEntry player)
private long
b()
getNextOperation()
method_30169()
incrementAndGetAccessCount()
public Optional<NameAndId>
a(String arg0)
get(String arg0)
method_14515(String arg0)
findByName(String arg0)
public CompletableFuture<Optional<NameAndId>>
b(String arg0)
getAsync(String arg0)
method_37156(String arg0)
findByNameAsync(String arg0)
public Optional<NameAndId>
a(UUID arg0)
get(UUID arg0)
method_14512(UUID arg0)
getByUuid(UUID arg0)
private static DateFormat
c()
createDateFormat()
method_30170()
getDateFormat()
private List<CachedUserNameToIdResolver$GameProfileInfo>
d()
load()
method_14517()
load()
public void
a()
save()
method_14518()
save()
private Stream<CachedUserNameToIdResolver$GameProfileInfo>
a(int arg0)
getTopMRUProfiles(int arg0)
method_14516(int arg0)
getLastAccessedEntries(int limit)
private static com.google.gson.JsonElement
a(ayc$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)
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)