Пример #1
0
  public void setExtraData(net.minecraft.nbt.NBTTagCompound nbttagcompound) {
    if (!nbttagcompound.func_74764_b("bukkit")) {
      nbttagcompound.func_74766_a("bukkit", new net.minecraft.nbt.NBTTagCompound());
    }

    net.minecraft.nbt.NBTTagCompound data = nbttagcompound.func_74775_l("bukkit");
    net.minecraft.entity.player.EntityPlayerMP handle = getHandle();
    data.func_74768_a("newExp", handle.newExp);
    data.func_74768_a("newTotalExp", handle.newTotalExp);
    data.func_74768_a("newLevel", handle.newLevel);
    data.func_74768_a("expToDrop", handle.expToDrop);
    data.func_74757_a("keepLevel", handle.keepLevel);
    data.func_74772_a("firstPlayed", getFirstPlayed());
    data.func_74772_a("lastPlayed", System.currentTimeMillis());
  }