类 GameProfileCache
java.lang.Object
net.minecraft.server.players.GameProfileCache
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private Executor
private final File
private static final int
private static final int
private final com.google.gson.Gson
private static final org.slf4j.Logger
private final AtomicLong
private final com.mojang.authlib.GameProfileRepository
private final Map<String,
GameProfileCache.GameProfileInfo> private final Map<UUID,
GameProfileCache.GameProfileInfo> private final Map<String,
CompletableFuture<Optional<com.mojang.authlib.GameProfile>>> private static boolean
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
add
(com.mojang.authlib.GameProfile pGameProfile) void
private static DateFormat
Optional<com.mojang.authlib.GameProfile>
Optional<com.mojang.authlib.GameProfile>
void
private long
private Stream<GameProfileCache.GameProfileInfo>
getTopMRUProfiles
(int pLimit) load()
private static Optional<com.mojang.authlib.GameProfile>
lookupGameProfile
(com.mojang.authlib.GameProfileRepository pProfileRepo, String pName) private static Optional<GameProfileCache.GameProfileInfo>
readGameProfile
(com.google.gson.JsonElement pJson, DateFormat pDateFormat) private void
safeAdd
(GameProfileCache.GameProfileInfo p_10980_) void
save()
void
setExecutor
(Executor pExectutor) static void
setUsesAuthentication
(boolean pOnlineMode) private static boolean
private static com.google.gson.JsonElement
writeGameProfile
(GameProfileCache.GameProfileInfo pProfileInfo, DateFormat pDateFormat)
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
GAMEPROFILES_MRU_LIMIT
private static final int GAMEPROFILES_MRU_LIMIT- 另请参阅:
-
GAMEPROFILES_EXPIRATION_MONTHS
private static final int GAMEPROFILES_EXPIRATION_MONTHS- 另请参阅:
-
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
-
-
构造器详细资料
-
GameProfileCache
-
-
方法详细资料
-
safeAdd
-
lookupGameProfile
-
setUsesAuthentication
public static void setUsesAuthentication(boolean pOnlineMode) -
usesAuthentication
private static boolean usesAuthentication() -
add
public void add(com.mojang.authlib.GameProfile pGameProfile) -
getNextOperation
private long getNextOperation() -
get
-
getAsync
-
get
-
setExecutor
-
clearExecutor
public void clearExecutor() -
createDateFormat
-
load
-
save
public void save() -
getTopMRUProfiles
-
writeGameProfile
private static com.google.gson.JsonElement writeGameProfile(GameProfileCache.GameProfileInfo pProfileInfo, DateFormat pDateFormat) -
readGameProfile
private static Optional<GameProfileCache.GameProfileInfo> readGameProfile(com.google.gson.JsonElement pJson, DateFormat pDateFormat)
-