Class PlayerProfileCache

java.lang.Object
net.minecraft.server.management.PlayerProfileCache

public class PlayerProfileCache extends Object
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • usesAuthentication

      private static boolean usesAuthentication
    • profilesByName

      private final Map<String,PlayerProfileCache.ProfileEntry> profilesByName
    • profilesByUUID

      private final Map<UUID,PlayerProfileCache.ProfileEntry> profilesByUUID
    • profileRepository

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

      private final com.google.gson.Gson gson
    • file

      private final File file
    • operationCount

      private final AtomicLong operationCount
  • Constructor Details

    • PlayerProfileCache

      public PlayerProfileCache(com.mojang.authlib.GameProfileRepository p_i46836_1_, File p_i46836_2_)
  • Method Details

    • safeAdd

      private void safeAdd(PlayerProfileCache.ProfileEntry p_242118_1_)
    • 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

      @Nullable public com.mojang.authlib.GameProfile get(String p_152655_1_)
    • get

      @Nullable public com.mojang.authlib.GameProfile get(UUID p_152652_1_)
    • createDateFormat

      private static DateFormat createDateFormat()
    • load

    • save

      public void save()
    • getTopMRUProfiles

      private Stream<PlayerProfileCache.ProfileEntry> getTopMRUProfiles(int p_242117_1_)
    • 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_)