Class UserCache

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

public class UserCache
extends Object
  • Field Details

    • field_25805

      private static final Logger field_25805
    • useRemote

      private static boolean useRemote
    • byName

      private final Map<String,​UserCache.Entry> byName
    • byUuid

      private final Map<UUID,​UserCache.Entry> byUuid
    • profileRepository

      private final com.mojang.authlib.GameProfileRepository profileRepository
    • gson

      private final Gson gson
    • cacheFile

      private final File cacheFile
    • field_25724

      private final AtomicLong field_25724
  • Constructor Details

    • UserCache

      public UserCache​(com.mojang.authlib.GameProfileRepository profileRepository, File cacheFile)
  • Method Details

    • method_30164

      private void method_30164​(UserCache.Entry entry)
    • findProfileByName

      @Nullable private static com.mojang.authlib.GameProfile findProfileByName​(com.mojang.authlib.GameProfileRepository repository, String name)
    • setUseRemote

      public static void setUseRemote​(boolean value)
    • shouldUseRemote

      private static boolean shouldUseRemote()
    • add

      public void add​(com.mojang.authlib.GameProfile gameProfile)
    • method_30169

      private long method_30169()
    • findByName

      @Nullable public com.mojang.authlib.GameProfile findByName​(String string)
    • getByUuid

      @Nullable public com.mojang.authlib.GameProfile getByUuid​(UUID uUID)
    • method_30170

      private static DateFormat method_30170()
    • load

      public List<UserCache.Entry> load()
    • save

      public void save()
    • getLastAccessedEntries

      private Stream<UserCache.Entry> getLastAccessedEntries​(int int2)
    • method_30165

      private static JsonElement method_30165​(UserCache.Entry entry, DateFormat dateFormat)
    • method_30167

      @Nullable private static UserCache.Entry method_30167​(JsonElement jsonElement, DateFormat dateFormat)