Package net.minecraft.util
Class UserCache
java.lang.Object
net.minecraft.util.UserCache
- Mappings:
Namespace Name named net/minecraft/util/UserCache
intermediary net/minecraft/class_3312
official aun
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final AtomicLong
private final Map
<String, UserCache.Entry> private final Map
<UUID, UserCache.Entry> private final File
private static final int
private final Gson
private static final Logger
private static final int
private final Map
<String, CompletableFuture<Optional<com.mojang.authlib.GameProfile>>> private final com.mojang.authlib.GameProfileRepository
private static boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(com.mojang.authlib.GameProfile profile) private void
add
(UserCache.Entry entry) void
private static Optional
<UserCache.Entry> entryFromJson
(JsonElement json, DateFormat dateFormat) private static JsonElement
entryToJson
(UserCache.Entry entry, DateFormat dateFormat) Optional
<com.mojang.authlib.GameProfile> findByName
(String name) CompletableFuture
<Optional<com.mojang.authlib.GameProfile>> findByNameAsync
(String username) private static Optional
<com.mojang.authlib.GameProfile> findProfileByName
(com.mojang.authlib.GameProfileRepository repository, String name) Optional
<com.mojang.authlib.GameProfile> private static DateFormat
private Stream
<UserCache.Entry> getLastAccessedEntries
(int limit) private static Optional
<com.mojang.authlib.GameProfile> private long
load()
void
save()
void
setExecutor
(Executor executor) static void
setUseRemote
(boolean value) private static boolean
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/util/UserCache;LOGGER:Lorg/slf4j/Logger;
intermediary field_25805
Lnet/minecraft/class_3312;field_25805:Lorg/slf4j/Logger;
official a
Laun;a:Lorg/slf4j/Logger;
-
MAX_SAVED_ENTRIES
private static final int MAX_SAVED_ENTRIES- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_SAVED_ENTRIES
Lnet/minecraft/util/UserCache;MAX_SAVED_ENTRIES:I
intermediary field_29788
Lnet/minecraft/class_3312;field_29788:I
official b
Laun;b:I
-
field_29789
private static final int field_29789- See Also:
- Mappings:
Namespace Name Mixin selector named field_29789
Lnet/minecraft/util/UserCache;field_29789:I
intermediary field_29789
Lnet/minecraft/class_3312;field_29789:I
official c
Laun;c:I
-
useRemote
private static boolean useRemote- Mappings:
Namespace Name Mixin selector named useRemote
Lnet/minecraft/util/UserCache;useRemote:Z
intermediary field_14313
Lnet/minecraft/class_3312;field_14313:Z
official d
Laun;d:Z
-
byName
- Mappings:
Namespace Name Mixin selector named byName
Lnet/minecraft/util/UserCache;byName:Ljava/util/Map;
intermediary field_14312
Lnet/minecraft/class_3312;field_14312:Ljava/util/Map;
official e
Laun;e:Ljava/util/Map;
-
byUuid
- Mappings:
Namespace Name Mixin selector named byUuid
Lnet/minecraft/util/UserCache;byUuid:Ljava/util/Map;
intermediary field_14310
Lnet/minecraft/class_3312;field_14310:Ljava/util/Map;
official f
Laun;f:Ljava/util/Map;
-
pendingRequests
private final Map<String,CompletableFuture<Optional<com.mojang.authlib.GameProfile>>> pendingRequests- Mappings:
Namespace Name Mixin selector named pendingRequests
Lnet/minecraft/util/UserCache;pendingRequests:Ljava/util/Map;
intermediary field_33860
Lnet/minecraft/class_3312;field_33860:Ljava/util/Map;
official g
Laun;g:Ljava/util/Map;
-
profileRepository
private final com.mojang.authlib.GameProfileRepository profileRepository- Mappings:
Namespace Name Mixin selector named profileRepository
Lnet/minecraft/util/UserCache;profileRepository:Lcom/mojang/authlib/GameProfileRepository;
intermediary field_14315
Lnet/minecraft/class_3312;field_14315:Lcom/mojang/authlib/GameProfileRepository;
official h
Laun;h:Lcom/mojang/authlib/GameProfileRepository;
-
gson
- Mappings:
Namespace Name Mixin selector named gson
Lnet/minecraft/util/UserCache;gson:Lcom/google/gson/Gson;
intermediary field_14318
Lnet/minecraft/class_3312;field_14318:Lcom/google/gson/Gson;
official i
Laun;i:Lcom/google/gson/Gson;
-
cacheFile
- Mappings:
Namespace Name Mixin selector named cacheFile
Lnet/minecraft/util/UserCache;cacheFile:Ljava/io/File;
intermediary field_14314
Lnet/minecraft/class_3312;field_14314:Ljava/io/File;
official j
Laun;j:Ljava/io/File;
-
accessCount
- Mappings:
Namespace Name Mixin selector named accessCount
Lnet/minecraft/util/UserCache;accessCount:Ljava/util/concurrent/atomic/AtomicLong;
intermediary field_25724
Lnet/minecraft/class_3312;field_25724:Ljava/util/concurrent/atomic/AtomicLong;
official k
Laun;k:Ljava/util/concurrent/atomic/AtomicLong;
-
executor
- Mappings:
Namespace Name Mixin selector named executor
Lnet/minecraft/util/UserCache;executor:Ljava/util/concurrent/Executor;
intermediary field_33861
Lnet/minecraft/class_3312;field_33861:Ljava/util/concurrent/Executor;
official l
Laun;l:Ljava/util/concurrent/Executor;
-
-
Constructor Details
-
UserCache
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/util/UserCache;<init>(Lcom/mojang/authlib/GameProfileRepository;Ljava/io/File;)V
intermediary <init>
Lnet/minecraft/class_3312;<init>(Lcom/mojang/authlib/GameProfileRepository;Ljava/io/File;)V
official <init>
Laun;<init>(Lcom/mojang/authlib/GameProfileRepository;Ljava/io/File;)V
-
-
Method Details
-
add
- Mappings:
Namespace Name Mixin selector named add
Lnet/minecraft/util/UserCache;add(Lnet/minecraft/util/UserCache$Entry;)V
intermediary method_30164
Lnet/minecraft/class_3312;method_30164(Lnet/minecraft/class_3312$class_3313;)V
official a
Laun;a(Laun$a;)V
-
findProfileByName
private static Optional<com.mojang.authlib.GameProfile> findProfileByName(com.mojang.authlib.GameProfileRepository repository, String name) - Mappings:
Namespace Name Mixin selector named findProfileByName
Lnet/minecraft/util/UserCache;findProfileByName(Lcom/mojang/authlib/GameProfileRepository;Ljava/lang/String;)Ljava/util/Optional;
intermediary method_14509
Lnet/minecraft/class_3312;method_14509(Lcom/mojang/authlib/GameProfileRepository;Ljava/lang/String;)Ljava/util/Optional;
official a
Laun;a(Lcom/mojang/authlib/GameProfileRepository;Ljava/lang/String;)Ljava/util/Optional;
-
getOfflinePlayerProfile
- Mappings:
Namespace Name Mixin selector named getOfflinePlayerProfile
Lnet/minecraft/util/UserCache;getOfflinePlayerProfile(Ljava/lang/String;)Ljava/util/Optional;
intermediary method_53912
Lnet/minecraft/class_3312;method_53912(Ljava/lang/String;)Ljava/util/Optional;
official c
Laun;c(Ljava/lang/String;)Ljava/util/Optional;
-
setUseRemote
public static void setUseRemote(boolean value) - Mappings:
Namespace Name Mixin selector named setUseRemote
Lnet/minecraft/util/UserCache;setUseRemote(Z)V
intermediary method_14510
Lnet/minecraft/class_3312;method_14510(Z)V
official a
Laun;a(Z)V
-
shouldUseRemote
private static boolean shouldUseRemote()- Mappings:
Namespace Name Mixin selector named shouldUseRemote
Lnet/minecraft/util/UserCache;shouldUseRemote()Z
intermediary method_14514
Lnet/minecraft/class_3312;method_14514()Z
official d
Laun;d()Z
-
add
public void add(com.mojang.authlib.GameProfile profile) - Mappings:
Namespace Name Mixin selector named add
Lnet/minecraft/util/UserCache;add(Lcom/mojang/authlib/GameProfile;)V
intermediary method_14508
Lnet/minecraft/class_3312;method_14508(Lcom/mojang/authlib/GameProfile;)V
official a
Laun;a(Lcom/mojang/authlib/GameProfile;)V
-
incrementAndGetAccessCount
private long incrementAndGetAccessCount()- Mappings:
Namespace Name Mixin selector named incrementAndGetAccessCount
Lnet/minecraft/util/UserCache;incrementAndGetAccessCount()J
intermediary method_30169
Lnet/minecraft/class_3312;method_30169()J
official e
Laun;e()J
-
findByName
- Mappings:
Namespace Name Mixin selector named findByName
Lnet/minecraft/util/UserCache;findByName(Ljava/lang/String;)Ljava/util/Optional;
intermediary method_14515
Lnet/minecraft/class_3312;method_14515(Ljava/lang/String;)Ljava/util/Optional;
official a
Laun;a(Ljava/lang/String;)Ljava/util/Optional;
-
findByNameAsync
- Mappings:
Namespace Name Mixin selector named findByNameAsync
Lnet/minecraft/util/UserCache;findByNameAsync(Ljava/lang/String;)Ljava/util/concurrent/CompletableFuture;
intermediary method_37156
Lnet/minecraft/class_3312;method_37156(Ljava/lang/String;)Ljava/util/concurrent/CompletableFuture;
official b
Laun;b(Ljava/lang/String;)Ljava/util/concurrent/CompletableFuture;
-
getByUuid
- Mappings:
Namespace Name Mixin selector named getByUuid
Lnet/minecraft/util/UserCache;getByUuid(Ljava/util/UUID;)Ljava/util/Optional;
intermediary method_14512
Lnet/minecraft/class_3312;method_14512(Ljava/util/UUID;)Ljava/util/Optional;
official a
Laun;a(Ljava/util/UUID;)Ljava/util/Optional;
-
setExecutor
- Mappings:
Namespace Name Mixin selector named setExecutor
Lnet/minecraft/util/UserCache;setExecutor(Ljava/util/concurrent/Executor;)V
intermediary method_37157
Lnet/minecraft/class_3312;method_37157(Ljava/util/concurrent/Executor;)V
official a
Laun;a(Ljava/util/concurrent/Executor;)V
-
clearExecutor
public void clearExecutor()- Mappings:
Namespace Name Mixin selector named clearExecutor
Lnet/minecraft/util/UserCache;clearExecutor()V
intermediary method_39753
Lnet/minecraft/class_3312;method_39753()V
official a
Laun;a()V
-
getDateFormat
- Mappings:
Namespace Name Mixin selector named getDateFormat
Lnet/minecraft/util/UserCache;getDateFormat()Ljava/text/DateFormat;
intermediary method_30170
Lnet/minecraft/class_3312;method_30170()Ljava/text/DateFormat;
official f
Laun;f()Ljava/text/DateFormat;
-
load
- Mappings:
Namespace Name Mixin selector named load
Lnet/minecraft/util/UserCache;load()Ljava/util/List;
intermediary method_14517
Lnet/minecraft/class_3312;method_14517()Ljava/util/List;
official b
Laun;b()Ljava/util/List;
-
save
public void save()- Mappings:
Namespace Name Mixin selector named save
Lnet/minecraft/util/UserCache;save()V
intermediary method_14518
Lnet/minecraft/class_3312;method_14518()V
official c
Laun;c()V
-
getLastAccessedEntries
- Mappings:
Namespace Name Mixin selector named getLastAccessedEntries
Lnet/minecraft/util/UserCache;getLastAccessedEntries(I)Ljava/util/stream/Stream;
intermediary method_14516
Lnet/minecraft/class_3312;method_14516(I)Ljava/util/stream/Stream;
official a
Laun;a(I)Ljava/util/stream/Stream;
-
entryToJson
- Mappings:
Namespace Name Mixin selector named entryToJson
Lnet/minecraft/util/UserCache;entryToJson(Lnet/minecraft/util/UserCache$Entry;Ljava/text/DateFormat;)Lcom/google/gson/JsonElement;
intermediary method_30165
Lnet/minecraft/class_3312;method_30165(Lnet/minecraft/class_3312$class_3313;Ljava/text/DateFormat;)Lcom/google/gson/JsonElement;
official a
Laun;a(Laun$a;Ljava/text/DateFormat;)Lcom/google/gson/JsonElement;
-
entryFromJson
- Mappings:
Namespace Name Mixin selector named entryFromJson
Lnet/minecraft/util/UserCache;entryFromJson(Lcom/google/gson/JsonElement;Ljava/text/DateFormat;)Ljava/util/Optional;
intermediary method_30167
Lnet/minecraft/class_3312;method_30167(Lcom/google/gson/JsonElement;Ljava/text/DateFormat;)Ljava/util/Optional;
official a
Laun;a(Lcom/google/gson/JsonElement;Ljava/text/DateFormat;)Ljava/util/Optional;
-