Package net.minecraft.util.com.mojang.authlib

Examples of net.minecraft.util.com.mojang.authlib.GameProfile


    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);
View Full Code Here


        }

        Iterator iterator = arraylist1.iterator();

        while (iterator.hasNext()) {
            GameProfile gameprofile = (GameProfile) iterator.next();
            UserCacheEntry usercacheentry = this.b(gameprofile.getId());

            if (usercacheentry != null) {
                arraylist.add(usercacheentry);
            }
        }
View Full Code Here

                for (int i = 0; i < agameprofile.length; ++i) {
                    JsonObject jsonobject1 = ChatDeserializer.l(jsonarray.get(i), "player[" + i + "]");
                    String s = ChatDeserializer.h(jsonobject1, "id");

                    agameprofile[i] = new GameProfile(UUID.fromString(s), ChatDeserializer.h(jsonobject1, "name"));
                }

                serverpingplayersample.a(agameprofile);
            }
        }
View Full Code Here

                icommandlistener.sendMessage(new ChatComponentText(a(astring1)));
                return;
            }

            GameProfile gameprofile;

            if (astring[0].equals("add")) {
                if (astring.length < 2) {
                    throw new ExceptionUsage("commands.whitelist.add.usage", new Object[0]);
                }
View Full Code Here

    public void a(PacketDataSerializer packetdataserializer) {
        this.a = packetdataserializer.a();
        UUID uuid = UUID.fromString(packetdataserializer.c(36));

        this.b = new GameProfile(uuid, packetdataserializer.c(16));
        int i = packetdataserializer.a();

        for (int j = 0; j < i; ++j) {
            String s = packetdataserializer.c(32767);
            String s1 = packetdataserializer.c(32767);
View Full Code Here

    public void a(PacketDataSerializer packetdataserializer) {
        String s = packetdataserializer.c(36);
        String s1 = packetdataserializer.c(16);
        UUID uuid = UUID.fromString(s);

        this.a = new GameProfile(uuid, s1);
    }
View Full Code Here

                        uuid = UUID.fromString(s);
                    } catch (Throwable throwable) {
                        return null;
                    }

                    UserCacheEntry usercacheentry = new UserCacheEntry(this.a, new GameProfile(uuid, s1), date, (GameProfileLookup) null);

                    return usercacheentry;
                } else {
                    return null;
                }
View Full Code Here

        this.i = nbttagcompound.getByte("Rot");
        if (this.a == 3) {
            if (nbttagcompound.hasKeyOfType("Owner", 10)) {
                this.j = GameProfileSerializer.deserialize(nbttagcompound.getCompound("Owner"));
            } else if (nbttagcompound.hasKeyOfType("ExtraType", 8) && !UtilColor.b(nbttagcompound.getString("ExtraType"))) {
                this.j = new GameProfile((UUID) null, nbttagcompound.getString("ExtraType"));
                this.d();
            }
        }
    }
View Full Code Here

    }

    private void d() {
        if (this.j != null && !UtilColor.b(this.j.getName())) {
            if (!this.j.isComplete() || !this.j.getProperties().containsKey("textures")) {
                GameProfile gameprofile = MinecraftServer.getServer().getUserCache().getProfile(this.j.getName());

                if (gameprofile != null) {
                    Property property = (Property) Iterables.getFirst(gameprofile.getProperties().get("textures"), null);

                    if (property == null) {
                        gameprofile = MinecraftServer.getServer().av().fillProfileProperties(gameprofile, true);
                    }
View Full Code Here

    }

    public void execute(ICommandListener icommandlistener, String[] astring) {
        if (astring.length == 1 && astring[0].length() > 0) {
            MinecraftServer minecraftserver = MinecraftServer.getServer();
            GameProfile gameprofile = minecraftserver.getPlayerList().getProfileBans().a(astring[0]);

            if (gameprofile == null) {
                throw new CommandException("commands.unban.failed", new Object[] { astring[0]});
            } else {
                minecraftserver.getPlayerList().getProfileBans().remove(gameprofile);
View Full Code Here

TOP

Related Classes of net.minecraft.util.com.mojang.authlib.GameProfile

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.