예제 #1
0
 public void a(NBTTagCompound nbttagcompound) {
   super.a(nbttagcompound);
   this.a = nbttagcompound.getByte("SkullType");
   this.i = nbttagcompound.getByte("Rot");
   if (this.a == 3) {
     if (nbttagcompound.hasKeyOfType("Owner", 10)) {
       this.j = GameProfileSerializer.a(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();
     }
   }
 }
예제 #2
0
  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().a(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);
          }

          this.j = gameprofile;
          this.update();
        }
      }
    }
  }