Class PlayerProfileCache


  • public class PlayerProfileCache
    extends java.lang.Object
    • Field Detail

      • LOGGER

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

        private static boolean usesAuthentication
      • profileRepository

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

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

        private final java.io.File file
      • operationCount

        private final java.util.concurrent.atomic.AtomicLong operationCount
    • Constructor Detail

      • PlayerProfileCache

        public PlayerProfileCache​(com.mojang.authlib.GameProfileRepository p_i46836_1_,
                                  java.io.File p_i46836_2_)
    • Method Detail

      • lookupGameProfile

        @Nullable
        private static com.mojang.authlib.GameProfile lookupGameProfile​(com.mojang.authlib.GameProfileRepository p_187319_0_,
                                                                        java.lang.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​(java.lang.String p_152655_1_)
      • get

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

        private static java.text.DateFormat createDateFormat()
      • save

        public void save()
      • writeGameProfile

        private static com.google.gson.JsonElement writeGameProfile​(PlayerProfileCache.ProfileEntry p_242119_0_,
                                                                    java.text.DateFormat p_242119_1_)
      • readGameProfile

        @Nullable
        private static PlayerProfileCache.ProfileEntry readGameProfile​(com.google.gson.JsonElement p_242121_0_,
                                                                       java.text.DateFormat p_242121_1_)