示例#1
0
  public void readExtraData(net.minecraft.nbt.NBTTagCompound nbttagcompound) {
    hasPlayedBefore = true;
    if (nbttagcompound.func_74764_b("bukkit")) {
      net.minecraft.nbt.NBTTagCompound data = nbttagcompound.func_74775_l("bukkit");

      if (data.func_74764_b("firstPlayed")) {
        firstPlayed = data.func_74763_f("firstPlayed");
        lastPlayed = data.func_74763_f("lastPlayed");
      }

      if (data.func_74764_b("newExp")) {
        net.minecraft.entity.player.EntityPlayerMP handle = getHandle();
        handle.newExp = data.func_74762_e("newExp");
        handle.newTotalExp = data.func_74762_e("newTotalExp");
        handle.newLevel = data.func_74762_e("newLevel");
        handle.expToDrop = data.func_74762_e("expToDrop");
        handle.keepLevel = data.func_74767_n("keepLevel");
      }
    }
  }