public void a(World world, Block block, BlockPos blockpos, EntityPlayer entityplayer) { boolean flag0 = this.d.a(this, world, block, blockpos, entityplayer); if (flag0) { entityplayer.b(StatList.J[Item.b(this.d)]); } }
public void a(EntityLivingBase entitylivingbase, EntityPlayer entityplayer) { boolean flag0 = this.d.a(this, entitylivingbase, (EntityLivingBase) entityplayer); if (flag0) { entityplayer.b(StatList.J[Item.b(this.d)]); } }
@Override public void a(class_aco var1, class_ago var2, EntityLiving var3, int var4) { if (var3 instanceof class_yu) { class_yu var5 = (class_yu) var3; boolean var6 = var5.bI.d || (class_afl.a(class_afn.w, var1) > 0); int var7 = this.a(var5.bq); if (var6 || (var7 > -1)) { class_aco var8 = var7 > -1 ? var5.bq.a(var7) : null; if (var8 == null) { var8 = new class_aco(Items.g); } class_aax var9 = ((class_aax) (var8.b() instanceof class_aax ? var8.b() : Items.g)); int var10 = this.e(var1) - var4; float var11 = b(var10); if (var11 >= 0.1D) { EntityArrow var12 = var9.a(var2, var8, var5); var12.a(var5.z, var5.y, 0.0F, var11 * 3.0F, 1.0F); if (var11 == 1.0F) { var12.a(true); } int var13 = class_afl.a(class_afn.t, var1); if (var13 > 0) { var12.b(var12.j() + (var13 * 0.5D) + 0.5D); } int var14 = class_afl.a(class_afn.u, var1); if (var14 > 0) { var12.a(var14); } if (class_afl.a(class_afn.v, var1) > 0) { var12.e(100); } var1.a(1, var5); var2.a( (Entity) var5, "random.bow", 1.0F, (1.0F / ((h.nextFloat() * 0.4F) + 1.2F)) + (var11 * 0.5F)); if (var6) { var12.c = 2; } else { var5.bq.a(var7, 1); } var5.b(StatisticList.c(Item.b(this))); if (!var2.D) { var2.a(var12); } } } } }
public boolean a( EntityPlayer entityplayer, World world, BlockPos blockpos, EnumFacing enumfacing, float f0, float f1, float f2) { boolean flag0 = this.b().a(this, entityplayer, world, blockpos, enumfacing, f0, f1, f2); if (flag0) { entityplayer.b(StatList.J[Item.b(this.d)]); } return flag0; }
public void c(NBTTagCompound nbttagcompound) { if (nbttagcompound.b("id", 8)) { this.d = Item.d(nbttagcompound.j("id")); } else { this.d = Item.b(nbttagcompound.e("id")); } this.b = nbttagcompound.d("Count"); this.f = nbttagcompound.e("Damage"); if (this.f < 0) { this.f = 0; } if (nbttagcompound.b("tag", 10)) { this.e = nbttagcompound.m("tag"); if (this.d != null) { this.d.a(this.e); } } }
public void a(int i0, EntityLivingBase entitylivingbase) { if (!(entitylivingbase instanceof EntityPlayer) || !((EntityPlayer) entitylivingbase).by.d) { if (this.e()) { if (this.a(i0, entitylivingbase.bb())) { entitylivingbase.b(this); --this.b; if (entitylivingbase instanceof EntityPlayer) { EntityPlayer entityplayer = (EntityPlayer) entitylivingbase; entityplayer.b(StatList.K[Item.b(this.d)]); if (this.b == 0 && this.b() instanceof ItemBow) { entityplayer.bZ(); } } if (this.b < 0) { this.b = 0; } this.f = 0; } } } }
@Override public class_px a(class_aco var1, class_ago var2, class_yu var3, class_pu var4) { var3.a(var1); var3.b(class_nh.c(Item.b(this))); return new class_px(class_pw.a, var1); }
public void a(World world, EntityPlayer entityplayer, int i0) { entityplayer.a(StatList.I[Item.b(this.d)], i0); this.d.d(this, world, entityplayer); }