Package net.minecraft.server.players
Class GameProfileCache
java.lang.Object
net.minecraft.server.players.GameProfileCache
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Executorprivate Fileprivate static intprivate static intprivate com.google.gson.Gsonprivate static org.apache.logging.log4j.Loggerprivate AtomicLongprivate com.mojang.authlib.GameProfileRepositoryprivate Map<String,GameProfileCache.GameProfileInfo>private Map<UUID,GameProfileCache.GameProfileInfo>private Map<String,CompletableFuture<Optional<com.mojang.authlib.GameProfile>>>private static boolean -
Constructor Summary
ConstructorsConstructorDescriptionGameProfileCache(com.mojang.authlib.GameProfileRepository p_10974_, File p_10975_) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(com.mojang.authlib.GameProfile p_10992_)private static DateFormatOptional<com.mojang.authlib.GameProfile>Optional<com.mojang.authlib.GameProfile>voidprivate longprivate Stream<GameProfileCache.GameProfileInfo>getTopMRUProfiles(int p_10978_)load()private static Optional<com.mojang.authlib.GameProfile>lookupGameProfile(com.mojang.authlib.GameProfileRepository p_10994_, String p_10995_)private static Optional<GameProfileCache.GameProfileInfo>readGameProfile(com.google.gson.JsonElement p_10989_, DateFormat p_10990_)private voidsafeAdd(GameProfileCache.GameProfileInfo p_10980_)voidsave()voidsetExecutor(Executor p_143975_)static voidsetUsesAuthentication(boolean p_11005_)private static booleanprivate static com.google.gson.JsonElementwriteGameProfile(GameProfileCache.GameProfileInfo p_10982_, DateFormat p_10983_)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
GAMEPROFILES_MRU_LIMIT
private static final int GAMEPROFILES_MRU_LIMIT- See Also:
- Constant Field Values
-
GAMEPROFILES_EXPIRATION_MONTHS
private static final int GAMEPROFILES_EXPIRATION_MONTHS- See Also:
- Constant Field Values
-
usesAuthentication
private static boolean usesAuthentication -
profilesByName
-
profilesByUUID
-
requests
-
profileRepository
private final com.mojang.authlib.GameProfileRepository profileRepository -
gson
private final com.google.gson.Gson gson -
file
-
operationCount
-
executor
-
-
Constructor Details
-
GameProfileCache
-
-
Method Details
-
safeAdd
-
lookupGameProfile
-
setUsesAuthentication
public static void setUsesAuthentication(boolean p_11005_) -
usesAuthentication
private static boolean usesAuthentication() -
add
public void add(com.mojang.authlib.GameProfile p_10992_) -
getNextOperation
private long getNextOperation() -
get
-
getAsync
-
get
-
setExecutor
-
createDateFormat
-
load
-
save
public void save() -
getTopMRUProfiles
-
writeGameProfile
private static com.google.gson.JsonElement writeGameProfile(GameProfileCache.GameProfileInfo p_10982_, DateFormat p_10983_) -
readGameProfile
private static Optional<GameProfileCache.GameProfileInfo> readGameProfile(com.google.gson.JsonElement p_10989_, DateFormat p_10990_)
-