Class UserCache

java.lang.Object
net.minecraft.util.UserCache

public class UserCache
extends Object
Mappings:
Namespace Name
official adg
intermediary net/minecraft/class_3312
named net/minecraft/util/UserCache
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Ladg;a:Lorg/apache/logging/log4j/Logger;
      intermediary field_25805 Lnet/minecraft/class_3312;field_25805:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/util/UserCache;LOGGER:Lorg/apache/logging/log4j/Logger;
    • useRemote

      private static boolean useRemote
      Mappings:
      Namespace Name Mixin selector
      official b Ladg;b:Z
      intermediary field_14313 Lnet/minecraft/class_3312;field_14313:Z
      named useRemote Lnet/minecraft/util/UserCache;useRemote:Z
    • byName

      private final Map<String,​UserCache.Entry> byName
      Mappings:
      Namespace Name Mixin selector
      official c Ladg;c:Ljava/util/Map;
      intermediary field_14312 Lnet/minecraft/class_3312;field_14312:Ljava/util/Map;
      named byName Lnet/minecraft/util/UserCache;byName:Ljava/util/Map;
    • byUuid

      private final Map<UUID,​UserCache.Entry> byUuid
      Mappings:
      Namespace Name Mixin selector
      official d Ladg;d:Ljava/util/Map;
      intermediary field_14310 Lnet/minecraft/class_3312;field_14310:Ljava/util/Map;
      named byUuid Lnet/minecraft/util/UserCache;byUuid:Ljava/util/Map;
    • profileRepository

      private final com.mojang.authlib.GameProfileRepository profileRepository
      Mappings:
      Namespace Name Mixin selector
      official e Ladg;e:Lcom/mojang/authlib/GameProfileRepository;
      intermediary field_14315 Lnet/minecraft/class_3312;field_14315:Lcom/mojang/authlib/GameProfileRepository;
      named profileRepository Lnet/minecraft/util/UserCache;profileRepository:Lcom/mojang/authlib/GameProfileRepository;
    • gson

      private final Gson gson
      Mappings:
      Namespace Name Mixin selector
      official f Ladg;f:Lcom/google/gson/Gson;
      intermediary field_14318 Lnet/minecraft/class_3312;field_14318:Lcom/google/gson/Gson;
      named gson Lnet/minecraft/util/UserCache;gson:Lcom/google/gson/Gson;
    • cacheFile

      private final File cacheFile
      Mappings:
      Namespace Name Mixin selector
      official g Ladg;g:Ljava/io/File;
      intermediary field_14314 Lnet/minecraft/class_3312;field_14314:Ljava/io/File;
      named cacheFile Lnet/minecraft/util/UserCache;cacheFile:Ljava/io/File;
    • field_25724

      private final AtomicLong field_25724
      Mappings:
      Namespace Name Mixin selector
      official h Ladg;h:Ljava/util/concurrent/atomic/AtomicLong;
      intermediary field_25724 Lnet/minecraft/class_3312;field_25724:Ljava/util/concurrent/atomic/AtomicLong;
      named field_25724 Lnet/minecraft/util/UserCache;field_25724:Ljava/util/concurrent/atomic/AtomicLong;
  • Constructor Details

    • UserCache

      public UserCache​(com.mojang.authlib.GameProfileRepository profileRepository, File cacheFile)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ladg;<init>(Lcom/mojang/authlib/GameProfileRepository;Ljava/io/File;)V
      intermediary <init> Lnet/minecraft/class_3312;<init>(Lcom/mojang/authlib/GameProfileRepository;Ljava/io/File;)V
      named <init> Lnet/minecraft/util/UserCache;<init>(Lcom/mojang/authlib/GameProfileRepository;Ljava/io/File;)V
  • Method Details

    • method_30164

      private void method_30164​(UserCache.Entry entry)
      Mappings:
      Namespace Name Mixin selector
      official a Ladg;a(Ladg$a;)V
      intermediary method_30164 Lnet/minecraft/class_3312;method_30164(Lnet/minecraft/class_3312$class_3313;)V
      named method_30164 Lnet/minecraft/util/UserCache;method_30164(Lnet/minecraft/util/UserCache$Entry;)V
    • findProfileByName

      @Nullable private static com.mojang.authlib.GameProfile findProfileByName​(com.mojang.authlib.GameProfileRepository repository, String name)
      Mappings:
      Namespace Name Mixin selector
      official a Ladg;a(Lcom/mojang/authlib/GameProfileRepository;Ljava/lang/String;)Lcom/mojang/authlib/GameProfile;
      intermediary method_14509 Lnet/minecraft/class_3312;method_14509(Lcom/mojang/authlib/GameProfileRepository;Ljava/lang/String;)Lcom/mojang/authlib/GameProfile;
      named findProfileByName Lnet/minecraft/util/UserCache;findProfileByName(Lcom/mojang/authlib/GameProfileRepository;Ljava/lang/String;)Lcom/mojang/authlib/GameProfile;
    • setUseRemote

      public static void setUseRemote​(boolean value)
      Mappings:
      Namespace Name Mixin selector
      official a Ladg;a(Z)V
      intermediary method_14510 Lnet/minecraft/class_3312;method_14510(Z)V
      named setUseRemote Lnet/minecraft/util/UserCache;setUseRemote(Z)V
    • shouldUseRemote

      private static boolean shouldUseRemote()
      Mappings:
      Namespace Name Mixin selector
      official c Ladg;c()Z
      intermediary method_14514 Lnet/minecraft/class_3312;method_14514()Z
      named shouldUseRemote Lnet/minecraft/util/UserCache;shouldUseRemote()Z
    • add

      public void add​(com.mojang.authlib.GameProfile gameProfile)
      Mappings:
      Namespace Name Mixin selector
      official a Ladg;a(Lcom/mojang/authlib/GameProfile;)V
      intermediary method_14508 Lnet/minecraft/class_3312;method_14508(Lcom/mojang/authlib/GameProfile;)V
      named add Lnet/minecraft/util/UserCache;add(Lcom/mojang/authlib/GameProfile;)V
    • method_30169

      private long method_30169()
      Mappings:
      Namespace Name Mixin selector
      official d Ladg;d()J
      intermediary method_30169 Lnet/minecraft/class_3312;method_30169()J
      named method_30169 Lnet/minecraft/util/UserCache;method_30169()J
    • findByName

      @Nullable public com.mojang.authlib.GameProfile findByName​(String name)
      Mappings:
      Namespace Name Mixin selector
      official a Ladg;a(Ljava/lang/String;)Lcom/mojang/authlib/GameProfile;
      intermediary method_14515 Lnet/minecraft/class_3312;method_14515(Ljava/lang/String;)Lcom/mojang/authlib/GameProfile;
      named findByName Lnet/minecraft/util/UserCache;findByName(Ljava/lang/String;)Lcom/mojang/authlib/GameProfile;
    • getByUuid

      @Nullable public com.mojang.authlib.GameProfile getByUuid​(UUID uuid)
      Mappings:
      Namespace Name Mixin selector
      official a Ladg;a(Ljava/util/UUID;)Lcom/mojang/authlib/GameProfile;
      intermediary method_14512 Lnet/minecraft/class_3312;method_14512(Ljava/util/UUID;)Lcom/mojang/authlib/GameProfile;
      named getByUuid Lnet/minecraft/util/UserCache;getByUuid(Ljava/util/UUID;)Lcom/mojang/authlib/GameProfile;
    • getDateFormat

      private static DateFormat getDateFormat()
      Mappings:
      Namespace Name Mixin selector
      official e Ladg;e()Ljava/text/DateFormat;
      intermediary method_30170 Lnet/minecraft/class_3312;method_30170()Ljava/text/DateFormat;
      named getDateFormat Lnet/minecraft/util/UserCache;getDateFormat()Ljava/text/DateFormat;
    • load

      public List<UserCache.Entry> load()
      Mappings:
      Namespace Name Mixin selector
      official a Ladg;a()Ljava/util/List;
      intermediary method_14517 Lnet/minecraft/class_3312;method_14517()Ljava/util/List;
      named load Lnet/minecraft/util/UserCache;load()Ljava/util/List;
    • save

      public void save()
      Mappings:
      Namespace Name Mixin selector
      official b Ladg;b()V
      intermediary method_14518 Lnet/minecraft/class_3312;method_14518()V
      named save Lnet/minecraft/util/UserCache;save()V
    • getLastAccessedEntries

      private Stream<UserCache.Entry> getLastAccessedEntries​(int int2)
      Mappings:
      Namespace Name Mixin selector
      official a Ladg;a(I)Ljava/util/stream/Stream;
      intermediary method_14516 Lnet/minecraft/class_3312;method_14516(I)Ljava/util/stream/Stream;
      named getLastAccessedEntries Lnet/minecraft/util/UserCache;getLastAccessedEntries(I)Ljava/util/stream/Stream;
    • method_30165

      private static JsonElement method_30165​(UserCache.Entry entry, DateFormat dateFormat)
      Mappings:
      Namespace Name Mixin selector
      official a Ladg;a(Ladg$a;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;
      named method_30165 Lnet/minecraft/util/UserCache;method_30165(Lnet/minecraft/util/UserCache$Entry;Ljava/text/DateFormat;)Lcom/google/gson/JsonElement;
    • method_30167

      @Nullable private static UserCache.Entry method_30167​(JsonElement jsonElement, DateFormat dateFormat)
      Mappings:
      Namespace Name Mixin selector
      official a Ladg;a(Lcom/google/gson/JsonElement;Ljava/text/DateFormat;)Ladg$a;
      intermediary method_30167 Lnet/minecraft/class_3312;method_30167(Lcom/google/gson/JsonElement;Ljava/text/DateFormat;)Lnet/minecraft/class_3312$class_3313;
      named method_30167 Lnet/minecraft/util/UserCache;method_30167(Lcom/google/gson/JsonElement;Ljava/text/DateFormat;)Lnet/minecraft/util/UserCache$Entry;