public void func_75095_b(NBTTagCompound p_75095_1_) { if (p_75095_1_.func_74764_b("abilities")) { NBTTagCompound var2 = p_75095_1_.func_74775_l("abilities"); this.field_75102_a = var2.func_74767_n("invulnerable"); this.field_75100_b = var2.func_74767_n("flying"); this.field_75101_c = var2.func_74767_n("mayfly"); this.field_75098_d = var2.func_74767_n("instabuild"); if (var2.func_74764_b("flySpeed")) { this.field_75096_f = var2.func_74760_g("flySpeed"); this.field_75097_g = var2.func_74760_g("walkSpeed"); } if (var2.func_74764_b("mayBuild")) { this.field_75099_e = var2.func_74767_n("mayBuild"); } } }
protected void func_70037_a(NBTTagCompound p_70037_1_) { if (p_70037_1_.func_74767_n("CustomDisplayTile")) { this.func_94094_j(p_70037_1_.func_74762_e("DisplayTile")); this.func_94092_k(p_70037_1_.func_74762_e("DisplayData")); this.func_94086_l(p_70037_1_.func_74762_e("DisplayOffset")); } if (p_70037_1_.func_74764_b("CustomName") && p_70037_1_.func_74779_i("CustomName").length() > 0) { this.field_94102_c = p_70037_1_.func_74779_i("CustomName"); } }
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"); } } }