/** Drops the block items with a specified chance of dropping the specified items */ public void dropBlockAsItemWithChance( World par1World, int par2, int par3, int par4, int par5, float par6, int par7) { if (!par1World.isRemote) { super.dropBlockAsItemWithChance(par1World, par2, par3, par4, par5, par6, 0); } }
/** Spawns this Block's drops into the World as EntityItems. */ public void dropBlockAsItemWithChance( World worldIn, BlockPos pos, IBlockState state, float chance, int fortune) { if (!worldIn.isRemote) { super.dropBlockAsItemWithChance(worldIn, pos, state, chance, 0); } }
/** Drops the block items with a specified chance of dropping the specified items */ public void dropBlockAsItemWithChance( World par1World, int par2, int par3, int par4, int par5, float par6, int par7) { super.dropBlockAsItemWithChance(par1World, par2, par3, par4, par5, par6, par7); int var8 = 15 + par1World.rand.nextInt(15) + par1World.rand.nextInt(15); this.dropXpOnBlockBreak(par1World, par2, par3, par4, var8); }