Search in sources :

Example 26 with GameProfile

use of net.minecraft.util.com.mojang.authlib.GameProfile in project mc-dev by Bukkit.

the class UserCache method b.

private UserCacheEntry b(UUID uuid) {
    UserCacheEntry usercacheentry = (UserCacheEntry) this.d.get(uuid);
    if (usercacheentry != null) {
        GameProfile gameprofile = usercacheentry.a();
        LinkedList linkedlist = this.e;
        synchronized (this.e) {
            this.e.remove(gameprofile);
            this.e.addFirst(gameprofile);
        }
    }
    return usercacheentry;
}
Also used : GameProfile(net.minecraft.util.com.mojang.authlib.GameProfile) LinkedList(java.util.LinkedList)

Aggregations

GameProfile (net.minecraft.util.com.mojang.authlib.GameProfile)26 UUID (java.util.UUID)10 Iterator (java.util.Iterator)6 ArrayList (java.util.ArrayList)3 LinkedList (java.util.LinkedList)3 Property (net.minecraft.util.com.mojang.authlib.properties.Property)3 Date (java.util.Date)2 JsonObject (net.minecraft.util.com.google.gson.JsonObject)2 BigInteger (java.math.BigInteger)1 ParseException (java.text.ParseException)1 JsonArray (net.minecraft.util.com.google.gson.JsonArray)1 JsonElement (net.minecraft.util.com.google.gson.JsonElement)1 AuthenticationUnavailableException (net.minecraft.util.com.mojang.authlib.exceptions.AuthenticationUnavailableException)1