Package net.minecraft.server.management
Class PlayerProfileCache
java.lang.Object
net.minecraft.server.management.PlayerProfileCache
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final File
private final com.google.gson.Gson
private static final org.apache.logging.log4j.Logger
private final AtomicLong
private final com.mojang.authlib.GameProfileRepository
private final Map<String,
PlayerProfileCache.ProfileEntry> private final Map<UUID,
PlayerProfileCache.ProfileEntry> private static boolean
-
Constructor Summary
ConstructorDescriptionPlayerProfileCache
(com.mojang.authlib.GameProfileRepository p_i46836_1_, File p_i46836_2_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(com.mojang.authlib.GameProfile p_152649_1_) private static DateFormat
com.mojang.authlib.GameProfile
com.mojang.authlib.GameProfile
private long
private Stream<PlayerProfileCache.ProfileEntry>
getTopMRUProfiles
(int p_242117_1_) load()
private static com.mojang.authlib.GameProfile
lookupGameProfile
(com.mojang.authlib.GameProfileRepository p_187319_0_, String p_187319_1_) private static PlayerProfileCache.ProfileEntry
readGameProfile
(com.google.gson.JsonElement p_242121_0_, DateFormat p_242121_1_) private void
safeAdd
(PlayerProfileCache.ProfileEntry p_242118_1_) void
save()
static void
setUsesAuthentication
(boolean p_187320_0_) private static boolean
private static com.google.gson.JsonElement
writeGameProfile
(PlayerProfileCache.ProfileEntry p_242119_0_, DateFormat p_242119_1_)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
usesAuthentication
private static boolean usesAuthentication -
profilesByName
-
profilesByUUID
-
profileRepository
private final com.mojang.authlib.GameProfileRepository profileRepository -
gson
private final com.google.gson.Gson gson -
file
-
operationCount
-
-
Constructor Details
-
PlayerProfileCache
-
-
Method Details
-
safeAdd
-
lookupGameProfile
@Nullable private static com.mojang.authlib.GameProfile lookupGameProfile(com.mojang.authlib.GameProfileRepository p_187319_0_, String p_187319_1_) -
setUsesAuthentication
public static void setUsesAuthentication(boolean p_187320_0_) -
usesAuthentication
private static boolean usesAuthentication() -
add
public void add(com.mojang.authlib.GameProfile p_152649_1_) -
getNextOperation
private long getNextOperation() -
get
-
get
-
createDateFormat
-
load
-
save
public void save() -
getTopMRUProfiles
-
writeGameProfile
private static com.google.gson.JsonElement writeGameProfile(PlayerProfileCache.ProfileEntry p_242119_0_, DateFormat p_242119_1_) -
readGameProfile
@Nullable private static PlayerProfileCache.ProfileEntry readGameProfile(com.google.gson.JsonElement p_242121_0_, DateFormat p_242121_1_)
-