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

Examples of net.minecraft.util.com.mojang.authlib.properties.Property


   * @param value - the value of the property.
   * @param signature - the BASE64-encoded signature of the value.
   * @return The signed property.
   */
  public WrappedSignedProperty(String name, String value, String signature) {
    this(new Property(name, value, signature));
  }
View Full Code Here


                    for (int i = 0; i < nbttaglist.size(); ++i) {
                        NBTTagCompound nbttagcompound2 = nbttaglist.get(i);
                        String s3 = nbttagcompound2.getString("Value");

                        if (nbttagcompound2.hasKeyOfType("Signature", 8)) {
                            gameprofile.getProperties().put(s2, new Property(s2, s3, nbttagcompound2.getString("Signature")));
                        } else {
                            gameprofile.getProperties().put(s2, new Property(s2, s3));
                        }
                    }
                }
            }
View Full Code Here

                NBTTagList nbttaglist = new NBTTagList();

                NBTTagCompound nbttagcompound2;

                for (Iterator iterator1 = gameprofile.getProperties().get(s).iterator(); iterator1.hasNext(); nbttaglist.add(nbttagcompound2)) {
                    Property property = (Property) iterator1.next();

                    nbttagcompound2 = new NBTTagCompound();
                    nbttagcompound2.setString("Value", property.getValue());
                    if (property.hasSignature()) {
                        nbttagcompound2.setString("Signature", property.getSignature());
                    }
                }

                nbttagcompound1.set(s, nbttaglist);
            }
View Full Code Here

        for (int j = 0; j < i; ++j) {
            String s = packetdataserializer.c(32767);
            String s1 = packetdataserializer.c(32767);
            String s2 = packetdataserializer.c(32767);

            this.b.getProperties().put(s, new Property(s, s1, s2));
        }

        this.c = packetdataserializer.readInt();
        this.d = packetdataserializer.readInt();
        this.e = packetdataserializer.readInt();
View Full Code Here

        packetdataserializer.a(this.b.getName());
        packetdataserializer.b(this.b.getProperties().size());
        Iterator iterator = this.b.getProperties().values().iterator();

        while (iterator.hasNext()) {
            Property property = (Property) iterator.next();

            packetdataserializer.a(property.getName());
            packetdataserializer.a(property.getValue());
            packetdataserializer.a(property.getSignature());
        }

        packetdataserializer.writeInt(this.c);
        packetdataserializer.writeInt(this.d);
        packetdataserializer.writeInt(this.e);
View Full Code Here

        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

TOP

Related Classes of net.minecraft.util.com.mojang.authlib.properties.Property

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.